|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.VariableArgumentApplicationLoggingImpl atg.nucleus.GenericService atg.security.GenericAccountInitializer
public class GenericAccountInitializer
A service that copies accounts between two account managers. This is used as a way of initializing the live account database with a set of standard accounts that might be extended by layered products or new product versions.
This will obtain a list of accounts from the "from" account manager and check to see if they exist on the "to" account manager. Any accounts that are not found in the "to" account manager will be created.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
|
Fields inherited from class atg.nucleus.GenericService |
---|
SERVICE_INFO_KEY |
Fields inherited from interface atg.security.AccountTypes |
---|
ANY_ACCOUNT, GROUP_ACCOUNT, LOGIN_ACCOUNT, PRIVILEGE_ACCOUNT |
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
---|
DEFAULT_LOG_TRACE_STATUS |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
---|---|
GenericAccountInitializer()
|
Method Summary | |
---|---|
void |
createAccounts(AccountManager toManager,
int accountType)
This creates any accounts of the given account type present in the source but missing in the target. |
boolean |
getEncryptPasswords()
Returns true if source account passwords should be encrypted using the destination account manager's password hasher. |
boolean |
getForceCreation()
Returns true if all accounts should be created even if there are already accounts in the account manager. |
AccountManager |
getFromManager()
Returns the account manager that will be used as the source of the account data. |
void |
initializeAccounts(AccountManager toManager)
Sets up accounts in the indicated account manager. |
boolean |
isEnabled()
Returns true if the initializer is enabled, false if not. |
void |
setEnabled(boolean b)
If set to true, the initializer is enabled and will attempt to copy accounts on startup. |
void |
setEncryptPasswords(boolean b)
If true, source account passwords should be encrypted using the destination account manager's password hasher. |
void |
setForceCreation(boolean b)
If set to true, all accounts will be created if they do not exist even if there are accounts already in the account manager. |
void |
setFromManager(AccountManager newManager)
Changes the account manager that will be used as the source of the account data. |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public GenericAccountInitializer()
Method Detail |
---|
public boolean isEnabled()
public void setEnabled(boolean b)
public boolean getEncryptPasswords()
public void setEncryptPasswords(boolean b)
public boolean getForceCreation()
public void setForceCreation(boolean b)
public AccountManager getFromManager()
public void setFromManager(AccountManager newManager)
public void createAccounts(AccountManager toManager, int accountType)
public void initializeAccounts(AccountManager toManager)
initializeAccounts
in interface AccountInitializer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |