|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface GlobalConfigurationEngine
Global configuration interface. Stores parameters valid for all divisions and the division configuration itself.
| Method Summary | |
|---|---|
void |
clearDivisionCache()
Clear the division cache. |
void |
create()
JMX management method. |
DivisionData |
createDivisionData(int divisionId,
java.lang.String dataSource,
java.lang.String domainRegEx)
Tests the database connection for the given dataSource JNDI name and returns a DivisionData object with the current database vendor and version values. |
void |
destroy()
JMX management method. |
DivisionData |
getDivisionData(int division)
Returns the configuration data for a given division ID. |
int |
getDivisionId(java.lang.String serverName)
Returns the first matching division for the given server name, or -1 if no division was found. |
int[] |
getDivisionIds()
Return all configured division IDs. |
DivisionData[] |
getDivisions()
Return the division data for all configured divisions. |
java.lang.String |
getRootLogin()
Return the root user name. |
java.lang.String |
getRootPassword()
Get the SHA1-hashed root password. |
boolean |
isMatchingRootPassword(java.lang.String userPassword)
Return true if the given plain-text password matches the stored (and hashed) password. |
void |
registerCacheMBean(javax.management.ObjectName name)
|
void |
saveDivisions(java.util.List<? extends DivisionData> divisions)
Replaces the existing division configuration. |
void |
setRootLogin(java.lang.String value)
Set the root user name. |
void |
setRootPassword(java.lang.String value)
Set the root password. |
| Methods inherited from interface com.flexive.shared.interfaces.GenericConfigurationEngine |
|---|
get, get, get, getAll, getAll, getAllWithXStream, getKeys, put, put, remove, remove, removeAll, tryGet |
| Method Detail |
|---|
void create()
throws java.lang.Exception
java.lang.Exception - if an error occured
void destroy()
throws java.lang.Exception
java.lang.Exception - if an error occured
java.lang.String getRootLogin()
throws FxApplicationException
FxApplicationException - TODO
FxLoadException - if a database error occured
FxNotFoundException - if the root login is not set in the configuration
void setRootLogin(java.lang.String value)
throws FxApplicationException
value - the new root user name
FxApplicationException - TODO
FxUpdateException - if the user name could not be updated
FxNoAccessException - if the calling user is not permitted to change to root long
java.lang.String getRootPassword()
throws FxApplicationException
FxApplicationException - TODO
FxLoadException - if the parameter could not be loaded successfully
FxNotFoundException - if the root login is not set
boolean isMatchingRootPassword(java.lang.String userPassword)
throws FxApplicationException
userPassword - the password to be checked
FxApplicationException - TODO
FxLoadException - if the root password could not be loaded
FxNotFoundException - if the root password is not set in the global configuration
void setRootPassword(java.lang.String value)
throws FxApplicationException
value - the root password in plain-text.
FxApplicationException - TODO
FxUpdateException - if the password could not be updated
FxNoAccessException - if the calling user is not permitted to change the password
DivisionData getDivisionData(int division)
throws FxApplicationException
division - the division ID.
FxApplicationException - TODO
FxLoadException - if an error occured reading the division configuration
FxNotFoundException - if the division was not found
int getDivisionId(java.lang.String serverName)
throws FxApplicationException
serverName - the server name to be matched
FxApplicationException - TODO
FxLoadException - if an error occured reading the division configuration
int[] getDivisionIds()
throws FxApplicationException
FxApplicationException - TODO
FxLoadException - if an error occured reading the division configuration
DivisionData[] getDivisions()
throws FxApplicationException
FxApplicationException - TODO
FxLoadException - if an error occured reading the division configurationvoid clearDivisionCache()
void registerCacheMBean(javax.management.ObjectName name)
throws javax.management.MBeanRegistrationException,
javax.management.NotCompliantMBeanException,
javax.management.InstanceAlreadyExistsException
javax.management.MBeanRegistrationException
javax.management.NotCompliantMBeanException
javax.management.InstanceAlreadyExistsException
DivisionData createDivisionData(int divisionId,
java.lang.String dataSource,
java.lang.String domainRegEx)
DivisionData object with the current database vendor and version values.
divisionId - the division IDdataSource - the datasource JNDI pathdomainRegEx - the regular expression used for matching domains
DivisionData object with database information
void saveDivisions(java.util.List<? extends DivisionData> divisions)
throws FxApplicationException
divisions - the new division data
FxApplicationException - if the divisions could not be updated.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||