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
- See Also:
-
Field Summary
Fields inherited from class GenericHandler
LOG -
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) Retrieves aPropertyby a given key.getByKeyPrefix(UserContext uc, String keyPrefix) Retrives aListofSystemPropertys by a given key prefix.getByKeys(UserContext uc, List<String> keys) Gets the Multi-Factor Authentication (MFA) settings for the system.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 GenericHandler
create, create, delete, delete, deleteBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getById, getEntityRefs, getSingleAttributes, getSingleAttributes, resultTotalCount, serializableList, update, updateMethods inherited from class AMSApiHandler
getNameMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IAPIHandler
getNameMethods inherited from interface IGenericHandler
create, create, delete, delete, deleteBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getById, getEntityRefs, getSingleAttributes, getSingleAttributes, resultTotalCount, update, update
-
Constructor Details
-
SystemPropertyHandler
public SystemPropertyHandler()
-
-
Method Details
-
getBooleanValue
Description copied from interface:ISystemPropertyHandlerReturns 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:
getBooleanValuein 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.
-
getByKey
Description copied from interface:ISystemPropertyHandlerRetrieves aPropertyby a given key.- Specified by:
getByKeyin interfaceISystemPropertyHandler- Parameters:
uc- theUserContextto usekey- the system property key- Returns:
- a
SystemProperty
-
getByKeyPrefix
Description copied from interface:ISystemPropertyHandlerRetrives aListofSystemPropertys by a given key prefix.- Specified by:
getByKeyPrefixin interfaceISystemPropertyHandler- Parameters:
uc- theUserContextto usekeyPrefix- a prefix for all keys to search for- Returns:
- a
ListofSystemPropertys
-
getByKeys
Description copied from interface:ISystemPropertyHandler- Specified by:
getByKeysin interfaceISystemPropertyHandler- Parameters:
uc- theUserContextto usekeys- aListof keys- Returns:
- a
ListofSystemPropertys
-
getMfaSettings
Description copied from interface:ISystemPropertyHandlerGets the Multi-Factor Authentication (MFA) settings for the system.- Specified by:
getMfaSettingsin interfaceISystemPropertyHandler- Parameters:
uc- theUserContextto use- Returns:
- The MFA settings for the system.
-
getStringValue
Description copied from interface:ISystemPropertyHandlerReturns 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:
getStringValuein 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.
-