atg.security
Class LDAPRepositoryAccountManager.SecurityCache

java.lang.Object
  extended by atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
      extended by atg.nucleus.GenericService
          extended by atg.service.scheduler.SchedulableService
              extended by atg.security.LDAPRepositoryAccountManager.SecurityCache
All Implemented Interfaces:
NameContextBindingListener, NameContextElement, NameResolver, AdminableService, ApplicationLogging, atg.nucleus.logging.ApplicationLoggingSender, atg.nucleus.logging.TraceApplicationLogging, atg.nucleus.logging.VariableArgumentApplicationLogging, ComponentNameResolver, Service, ServiceListener, Schedulable, java.util.EventListener
Enclosing class:
LDAPRepositoryAccountManager

public class LDAPRepositoryAccountManager.SecurityCache
extends SchedulableService

The cache of security permissions associated with this account manager


Field Summary
 
Fields inherited from class atg.service.scheduler.SchedulableService
CLASS_VERSION, mJobId
 
Fields inherited from class atg.nucleus.GenericService
SERVICE_INFO_KEY
 
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
 
Method Summary
 void doStartService()
          Pre load the cache on start-up
protected  java.util.Iterator get(java.lang.String pKey)
          Generic impl of a get command for this cache
protected  void invalidate()
          invalidates the cache
protected  void load()
          loads the cache
 void performScheduledTask(Scheduler pScheduler, ScheduledJob pJob)
          Called by the scheduler when it is time for this service to perform its function.
protected  void reload()
          reload call for the interface
protected  void reload(boolean pForce)
          reload call for the interface
protected  void updateCacheEntries(java.lang.String pKey, java.lang.String pAttr)
          updates a cache entry of a give key with the values defined by the attr in the ldap directory
 
Methods inherited from class atg.service.scheduler.SchedulableService
doStopService, getJobDescription, getJobName, getSchedule, getScheduler, getThreadMethod, isTransactional, setJobDescription, setJobName, setSchedule, setScheduler, setThreadMethod, setTransactional, startScheduledJob, stopScheduledJob
 
Methods inherited from class atg.nucleus.GenericService
addLogListener, createAdminServlet, getAbsoluteName, getAdminServlet, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, 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
 

Method Detail

get

protected java.util.Iterator get(java.lang.String pKey)
Generic impl of a get command for this cache


invalidate

protected void invalidate()
invalidates the cache


updateCacheEntries

protected void updateCacheEntries(java.lang.String pKey,
                                  java.lang.String pAttr)
updates a cache entry of a give key with the values defined by the attr in the ldap directory


load

protected void load()
loads the cache


reload

protected void reload()
reload call for the interface


reload

protected void reload(boolean pForce)
reload call for the interface

Parameters:
pForce - should we force even if cache is disabled

performScheduledTask

public void performScheduledTask(Scheduler pScheduler,
                                 ScheduledJob pJob)
Called by the scheduler when it is time for this service to perform its function. Our function is to call load().

Specified by:
performScheduledTask in interface Schedulable
Specified by:
performScheduledTask in class SchedulableService
Parameters:
pScheduler - the scheduler managing this job
pJob - the scheduled job associated with this service

doStartService

public void doStartService()
                    throws ServiceException
Pre load the cache on start-up

Overrides:
doStartService in class SchedulableService
Throws:
ServiceException - if an error occurred during the operation