atg.security
Class SerializedAccountManager

java.lang.Object
  extended by atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
      extended by atg.nucleus.GenericService
          extended by atg.nucleus.RegisteredService
              extended by atg.security.GenericUserAuthority
                  extended by atg.security.GenericAccountManager
                      extended by atg.security.SerializedAccountManager
All Implemented Interfaces:
atg.naming.AbsoluteNameable, NameContextBindingListener, NameContextElement, atg.naming.NameContextParentable, NameResolver, AdminableService, atg.nucleus.Configured, ApplicationLogging, atg.nucleus.logging.ApplicationLoggingSender, atg.nucleus.logging.TraceApplicationLogging, VariableArgumentApplicationLogging, ComponentNameResolver, Service, ServiceListener, AccountManager, AccountTypes, atg.security.I18nAccountManager, IdUserAuthority, LoginUserAuthority, UserAuthority, UserAuthority2, java.util.EventListener

public class SerializedAccountManager
extends GenericAccountManager
implements LoginUserAuthority

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.security.GenericAccountManager
addAccount, clear, createAccount, getAccount, getAccountInitializer, getAccountIterator, getAttributeResourceBundle, getDefaultLoginGroups, getDescriptionAttribute, getDisplayNameForAttribute, getFirstNameAttribute, getLastNameAttribute, getPasswordAttribute, getPasswordHasher, getPersona, listAccounts, listMatchingAccounts, login, setAccountInitializer, setAccountMatchFields, setAttributeResourceBundle, setDefaultLoginGroups, setDescriptionAttribute, setFirstNameAttribute, setLastNameAttribute, setPasswordAttribute, setPasswordHasher, setPersonaeFor, setUserAuthorityName
 
Methods inherited from class atg.security.GenericUserAuthority
addAuthenticationFailedListener, addAuthenticationSucceededListener, addSpecialPersona, fireAuthenticationFailedEvent, fireAuthenticationSucceededEvent, getProxyUserAuthorities, getSpecialPersonae, getSupportsEveryone, getUserAuthorityName, removeAuthenticationFailedListener, removeAuthenticationSucceededListener, removeSpecialPersona, setProxyUserAuthorities, setSpecialPersonae, setSupportsEveryone, userDestroyed
 
Methods inherited from class atg.nucleus.RegisteredService
addToRegistry, getRegistry, getRegistryName, getServiceName, removeFromRegistry, setRegistryName, setServiceName, startService, stopService
 
Methods inherited from class atg.nucleus.GenericService
addLogListener, createAdminServlet, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo
 
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, 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

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Constructor Detail

SerializedAccountManager

public SerializedAccountManager()
Method Detail

getFileName

public java.lang.String getFileName()
Returns the name of the file into which the account information will be serialized.


setFileName

public void setFileName(java.lang.String pNewName)
Changes the name of the file into which the account information will be serialized.


doStartService

public void doStartService()
Description copied from class: GenericAccountManager
When this service starts up, we may want to punch in some new accounts.

Overrides:
doStartService in class GenericAccountManager

newAccount

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.

Overrides:
newAccount in class GenericAccountManager

removeAccount

public void removeAccount(java.lang.String pAccountName)
                   throws NoSuchAccountException
Overrides the standard removeAccount() method with one that will save the modification.

Specified by:
removeAccount in interface AccountManager
Overrides:
removeAccount in class GenericAccountManager
Throws:
NoSuchAccountException