Package de.xima.fc.handler.entity
Class SystemPropertyHandler
- java.lang.Object
-
- de.xima.fc.handler.AMSApiHandler
-
- de.xima.fc.handler.entity.GenericHandler
-
- de.xima.fc.handler.entity.SystemPropertyHandler
-
- All Implemented Interfaces:
IAPIHandler
,IGenericHandler
,ISystemPropertyHandler
,Serializable
public class SystemPropertyHandler extends GenericHandler implements ISystemPropertyHandler
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class de.xima.fc.handler.entity.GenericHandler
LOG
-
-
Constructor Summary
Constructors Constructor Description SystemPropertyHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getBooleanValue(UserContext uc, String key, boolean defaultValue)
Returns the boolean value of the system property with the given key if it exists.SystemProperty
getByKey(UserContext uc, String key)
Retrieves aProperty
by a given key.List<SystemProperty>
getByKeyPrefix(UserContext uc, String keyPrefix)
Retrives aList
ofSystemProperty
s by a given key prefix.List<SystemProperty>
getByKeys(UserContext uc, List<String> keys)
String
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.handler.entity.GenericHandler
create, create, delete, delete, deleteBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getById, getEntityRefs, getSingleAttributes, getSingleAttributes, resultTotalCount, serializableList, update, update
-
Methods inherited from class de.xima.fc.handler.AMSApiHandler
getName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.xima.fc.com.interfaces.IAPIHandler
getName
-
Methods inherited from interface de.xima.fc.handler.interfaces.entity.IGenericHandler
create, create, delete, delete, deleteBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getById, getEntityRefs, getSingleAttributes, getSingleAttributes, resultTotalCount, update, update
-
-
-
-
Method Detail
-
getByKey
public SystemProperty getByKey(UserContext uc, String key)
Description copied from interface:ISystemPropertyHandler
Retrieves aProperty
by a given key.- Specified by:
getByKey
in interfaceISystemPropertyHandler
- Parameters:
uc
- theUserContext
to usekey
- the system property key- Returns:
- a
SystemProperty
-
getByKeyPrefix
public List<SystemProperty> getByKeyPrefix(UserContext uc, String keyPrefix)
Description copied from interface:ISystemPropertyHandler
Retrives aList
ofSystemProperty
s by a given key prefix.- Specified by:
getByKeyPrefix
in interfaceISystemPropertyHandler
- Parameters:
uc
- theUserContext
to usekeyPrefix
- a prefix for all keys to search for- Returns:
- a
List
ofSystemProperty
s
-
getByKeys
public List<SystemProperty> getByKeys(UserContext uc, List<String> keys)
Description copied from interface:ISystemPropertyHandler
- Specified by:
getByKeys
in interfaceISystemPropertyHandler
- Parameters:
uc
- theUserContext
to usekeys
- aList
of keys- Returns:
- a
List
ofSystemProperty
s
-
getStringValue
public String getStringValue(UserContext uc, String key, String defaultValue)
Description copied from interface:ISystemPropertyHandler
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.- Specified by:
getStringValue
in interfaceISystemPropertyHandler
- 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
public boolean getBooleanValue(UserContext uc, String key, boolean defaultValue)
Description copied from interface:ISystemPropertyHandler
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.- Specified by:
getBooleanValue
in interfaceISystemPropertyHandler
- 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.
-
-