|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - The ID typepublic interface CustomDomainConfigurationEngine<T extends java.io.Serializable>
Extension of GenericConfigurationEngine configurations with an arbitrary domain field
(e.g. user ID).
GenericConfigurationEngine, the domain is automatically determined
(e.g. the current user ID). This interface adds methods to store parameters for a specific domain that
is not the own. For these methods, additional access restraints apply. Usually the calling user must be
a global supervisors to read or update any foreign domain.
| Method Summary | ||
|---|---|---|
|
get(T domain,
Parameter<PT> parameter,
java.lang.String key,
boolean ignoreDefault)
Retrieves the value for the given parameter using the given key, for a specific domain. |
|
java.util.Map<ParameterData,java.io.Serializable> |
getAll(T domain)
Return all configuration properties for a specific domain. |
|
java.util.Map<ParameterData,java.io.Serializable> |
getAllWithXStream(T domain,
java.util.Map<java.lang.String,com.thoughtworks.xstream.XStream> instances)
Return all configuration properties for a specific domain using the provided XStream instance for conversions.. |
|
java.util.List<T> |
getDomains()
Retrieves all domains that have configuration entries. |
|
java.util.List<T> |
getDomains(Parameter parameter)
Retrieves the domains that have configuration entries for the given parameter. |
|
java.util.List<T> |
getDomains(Parameter parameter,
java.lang.String key)
Retrieves the domains that have configuration entries for the given parameter. |
|
|
put(T domain,
Parameter<PT> parameter,
java.lang.String key,
PT value)
Set a parameter containing a value of type T using
the given key. |
|
|
remove(T domain,
Parameter<PT> parameter,
java.lang.String key)
Removes a parameter from the database using the given key. |
|
|
removeAll(T domain,
Parameter<PT> parameter)
Remove all parameters stored under this parameter's path. |
|
| Methods inherited from interface com.flexive.shared.interfaces.GenericConfigurationEngine |
|---|
get, get, get, getAll, getAll, getAllWithXStream, getKeys, put, put, remove, remove, removeAll, tryGet |
| Method Detail |
|---|
java.util.List<T> getDomains()
throws FxApplicationException
FxApplicationException - on errors
FxNoAccessException - if the caller may not retrieve the list of domains
java.util.List<T> getDomains(Parameter parameter)
throws FxApplicationException
parameter - parameter data containing the path and key
FxApplicationException - on errors
FxLoadException - if the domains could not be loaded
FxNoAccessException - if the caller may not retrieve the list of domains
java.util.List<T> getDomains(Parameter parameter,
java.lang.String key)
throws FxApplicationException
parameter - parameter data containing the pathkey - the parameter key to be used. If null, all keys in the parameter path will be included.
FxApplicationException - on errors
FxLoadException - if the domains could not be loaded
FxNoAccessException - if the caller may not retrieve the list of domains
<PT extends java.io.Serializable> PT get(T domain,
Parameter<PT> parameter,
java.lang.String key,
boolean ignoreDefault)
throws FxApplicationException
GenericConfigurationEngine.getAll(com.flexive.shared.configuration.Parameter) instead.
The default value may be disabled through the ignoreDefault parameter,
making this method more useful for checking if a parameter exists.
PT - value type of the parameterdomain - the target domainparameter - parameter data containing the pathkey - key to be usedignoreDefault - if the parameter's default value should be used default
FxApplicationException - TODO
FxLoadException - if the value could not be loaded
FxNotFoundException - if the parameter is not set
java.util.Map<ParameterData,java.io.Serializable> getAll(T domain)
throws FxApplicationException
domain - the requested domain
FxApplicationException
java.util.Map<ParameterData,java.io.Serializable> getAllWithXStream(T domain,
java.util.Map<java.lang.String,com.thoughtworks.xstream.XStream> instances)
throws FxApplicationException
domain - the requested domaininstances - XStream instances to use for conversions (mapped to class names - a wildcard parameter can be used for prefix matches (e.g. "my.config.*"))
FxApplicationException
<PT extends java.io.Serializable> void put(T domain,
Parameter<PT> parameter,
java.lang.String key,
PT value)
throws FxApplicationException
T using
the given key. This method is useful for setting aggregate parameters with
varying keys.
Use getParameters(Parameter<T&g;t parameter) to retrieve a
map with all keys stored under the path of the given parameter.
Note that usually only superusers may update parameters for foreign domains (e.g. foreign users
or applications).
PT - value type to be setdomain - the target domainparameter - parameter data containing the pathkey - key to be used for this valuevalue - value to be set
FxApplicationException - TODO
FxUpdateException - if the value could not be updated
FxNoAccessException - if the caller is not allowed to update/set this parameter
<PT extends java.io.Serializable> void remove(T domain,
Parameter<PT> parameter,
java.lang.String key)
throws FxApplicationException
PT - value type of the parameterdomain - the target domainparameter - parameter containing the path to be removedkey - the key to be removed
FxApplicationException - TODO
FxRemoveException - if the parameter could not be removed
FxNoAccessException - if the caller is not allowed to remove this parameter
<PT extends java.io.Serializable> void removeAll(T domain,
Parameter<PT> parameter)
throws FxApplicationException
PT - value type of the parameterdomain - the target domainparameter - the parameter to be removed
FxApplicationException - TODO
FxRemoveException - if the parameters could not be removed
FxNoAccessException - if the caller is not allowed to remove this parameter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||