|
|||||||||
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.nucleus.RegisteredService atg.security.GenericUserAuthority atg.security.GenericAccountManager atg.security.SerializedAccountManager
public class SerializedAccountManager
An account manager whose persistence is accomplished via serialization to a file. This is intended to be used in situations where simplicity is favored over performance.
Its limitations are:
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
|
Fields inherited from class atg.security.GenericAccountManager |
---|
AUTHENTICATED, BAD_ACCOUNT_FAILURE, BAD_PASSWORD_FAILURE, CREATED_ACCOUNT, DEFAULT_GROUP_DOESNT_EXIST, INVALID_ACCOUNT, LOGIN_DISABLED_FAILURE, NO_PASSWORD_FAILURE, REMOVED_ACCOUNT |
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 | |
---|---|
SerializedAccountManager()
|
Method Summary | |
---|---|
void |
doStartService()
When this service starts up, we may want to punch in some new accounts. |
java.lang.String |
getFileName()
Returns the name of the file into which the account information will be serialized. |
protected Account |
newAccount(java.lang.String pAccountName,
int pType,
java.util.Map pAttributes)
Override standard account creation method with one that creates slightly smarter account objects. |
void |
removeAccount(java.lang.String pAccountName)
Overrides the standard removeAccount() method with one that will save the modification. |
void |
setFileName(java.lang.String pNewName)
Changes the name of the file into which the account information will be serialized. |
Methods inherited from class atg.nucleus.RegisteredService |
---|
addToRegistry, getRegistry, getRegistryName, getServiceName, removeFromRegistry, setRegistryName, setServiceName, startService, stopService |
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 |
Methods inherited from interface atg.security.LoginUserAuthority |
---|
getPasswordHasher, login |
Methods inherited from interface atg.security.UserAuthority |
---|
addAuthenticationFailedListener, addAuthenticationSucceededListener, getPersona, getUserAuthorityName, removeAuthenticationFailedListener, removeAuthenticationSucceededListener, userDestroyed |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public SerializedAccountManager()
Method Detail |
---|
public java.lang.String getFileName()
public void setFileName(java.lang.String pNewName)
public void doStartService()
GenericAccountManager
doStartService
in class GenericAccountManager
protected Account newAccount(java.lang.String pAccountName, int pType, java.util.Map pAttributes)
newAccount
in class GenericAccountManager
public void removeAccount(java.lang.String pAccountName) throws NoSuchAccountException
removeAccount
in interface AccountManager
removeAccount
in class GenericAccountManager
NoSuchAccountException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |