Interface ISystemPropertyHandler
-
- All Superinterfaces:
IAPIHandler,IGenericHandler,Serializable
- All Known Implementing Classes:
SystemPropertyHandler
public interface ISystemPropertyHandler extends IGenericHandler
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleangetBooleanValue(UserContext uc, String key, boolean defaultValue)Returns the boolean value of the system property with the given key if it exists.SystemPropertygetByKey(UserContext uc, String key)Retrieves aPropertyby a given key.List<SystemProperty>getByKeyPrefix(UserContext uc, String keyPrefix)Retrives aListofSystemPropertys by a given key prefix.List<SystemProperty>getByKeys(UserContext uc, List<String> keys)IMfaSettingsgetMfaSettings(UserContext uc)Gets the Multi-Factor Authentication (MFA) settings for the system.StringgetStringValue(UserContext uc, String key, String defaultValue)Returns the String value of the system property with the given key if it exists.-
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
-
getBooleanValue
boolean getBooleanValue(UserContext uc, String key, boolean defaultValue)
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.
-
getByKey
SystemProperty getByKey(UserContext uc, String key)
Retrieves aPropertyby a given key.- Parameters:
uc- theUserContextto usekey- the system property key- Returns:
- a
SystemProperty
-
getByKeyPrefix
List<SystemProperty> getByKeyPrefix(UserContext uc, String keyPrefix)
Retrives aListofSystemPropertys by a given key prefix.- Parameters:
uc- theUserContextto usekeyPrefix- a prefix for all keys to search for- Returns:
- a
ListofSystemPropertys
-
getByKeys
List<SystemProperty> getByKeys(UserContext uc, List<String> keys)
- Parameters:
uc- theUserContextto usekeys- aListof keys- Returns:
- a
ListofSystemPropertys
-
getMfaSettings
IMfaSettings getMfaSettings(UserContext uc)
Gets the Multi-Factor Authentication (MFA) settings for the system.- Parameters:
uc- theUserContextto use- Returns:
- The MFA settings for the system.
- Since:
- 8.4.0
-
getStringValue
String getStringValue(UserContext uc, String key, String defaultValue)
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.
-
-