atg.security
Class SerializedAccountManager
java.lang.Object
   atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
       atg.nucleus.GenericService
atg.nucleus.GenericService
           atg.nucleus.RegisteredService
atg.nucleus.RegisteredService
               atg.security.GenericUserAuthority
atg.security.GenericUserAuthority
                   atg.security.GenericAccountManager
atg.security.GenericAccountManager
                       atg.security.SerializedAccountManager
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:
 
  - Every modification to an account triggers a complete rewrite of the
      serialized account file.  If you have a lot of accounts this could
      take awhile.
  
- No locking is done on the serialized file, and no checking is done
      for on-the-fly changes to the file, so you do not want to use this
      in a clustered server arrangement unless the file is read-only.
 
 
 
 
 
| Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging | 
| DEFAULT_LOG_TRACE_STATUS | 
 
 
 
| 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 | 
 
 
 
CLASS_VERSION
public static java.lang.String CLASS_VERSION
SerializedAccountManager
public SerializedAccountManager()
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:
- doStartServicein 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:
- newAccountin 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:
- removeAccountin interface- AccountManager
- Overrides:
- removeAccountin class- GenericAccountManager
 
- 
- Throws:
- NoSuchAccountException