Package de.xima.fc.api.entity
Class SystemPropertyAPI
-
Field Summary
Fields inherited from class de.xima.fc.api.entity.AEntityAPI
entityClass -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetBooleanValue(UserContext uc, String key, boolean defaultValue) Returns the boolean value of the system property with the given key if it exists.getByKey(UserContext uc, String key) Method for determining aSystemPropertys by a given key.getByKeyPrefix(UserContext uc, String keyPrefix) Method for determining aListofSystemPropertys that have the given key prefix.getByKeys(UserContext uc, List<String> keys) getStringValue(UserContext uc, String key, String defaultValue) Returns the String value of the system property with the given key if it exists.Methods inherited from class de.xima.fc.api.entity.AEntityAPI
create, create, delete, delete, deleteAllBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getEntityRefs, getSingleAttributes, getSingleAttributes, resultTotalCount, resultTotalCount, update, updateMethods inherited from class de.xima.fc.api.ASubAPI
getHandlerProvider
-
Constructor Details
-
SystemPropertyAPI
public SystemPropertyAPI()
-
-
Method Details
-
getByKey
Method for determining aSystemPropertys by a given key.- Parameters:
uc-UserContextthe user context in which the action is to be performed.key- the system property key- Returns:
- a
SystemProperty
-
getByKeyPrefix
Method for determining aListofSystemPropertys that have the given key prefix.- Parameters:
uc-UserContextthe user context in which the action is to be performed.keyPrefix- the used key prefix- Returns:
- a
ListofSystemPropertys
-
getByKeys
- Parameters:
uc-UserContextthe user context in which the action is to be performed.keys- aListof keys to search for- Returns:
- a
ListofSystemPropertys
-
getStringValue
Returns the String value of the system property with the given key if it exists. If the system property does not exists the provided default value will be returned.- Parameters:
uc- user context for database transactions.key- of the system property.defaultValue- to return if no system property was found for the given key.- Returns:
- the String value of the system property with the given key if it exists and the provided default value otherwise.
-
getBooleanValue
Returns the boolean value of the system property with the given key if it exists. If the system property does not exists the provided default value will be returned.- Parameters:
uc- user context for database transactions.key- of the system property.defaultValue- to return if no system property was found for the given key.- Returns:
- the boolean value of the system property with the given key if it exists and the provided default value otherwise.
-