atg.servlet.security
Class SecuredPathAccessController

java.lang.Object
  extended by atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
      extended by atg.nucleus.GenericService
          extended by atg.security.GenericSecuredResourceService
              extended by atg.servlet.security.SecuredPathAccessController
All Implemented Interfaces:
NameContextBindingListener, NameContextElement, NameResolver, AdminableService, ApplicationLogging, atg.nucleus.logging.ApplicationLoggingSender, atg.nucleus.logging.TraceApplicationLogging, VariableArgumentApplicationLogging, ComponentNameResolver, Service, ServiceListener, SecuredResource, java.io.Serializable, java.util.EventListener

public class SecuredPathAccessController
extends GenericSecuredResourceService

See Also:
SecurityDomainServlet, GenericSecuredResourceService, Serialized Form

Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
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
 
Constructor Summary
SecuredPathAccessController()
           
 
Method Summary
 java.lang.String[] getAllowGroups()
          Returns the array of "allow" group names.
 java.lang.String[] getDenyGroups()
          Returns the array of "deny" group names.
 UserAuthority getUserAuthority()
          Returns UserAuthority with which the resolved User variable should be resolved
 boolean hasAccess(User pUser, AccessRight pDesiredAccess)
          Returns true if the indicated user has the desired access to this resource.
 boolean isEnabled()
          Is access control enabled?
 void setAllowGroups(java.lang.String[] pAllowGroups)
          Sets the array of "allow" group names.
 void setDenyGroups(java.lang.String[] pDenyGroups)
          Sets the array of "deny" group names.
 void setEnabled(boolean pEnabled)
          Sets whether or not access control is enabled.
 void setUserAuthority(UserAuthority pUserAuthority)
          Sets UserAuthority with which the resolved User variable should be resolved
 
Methods inherited from class atg.security.GenericSecuredResourceService
addAccessControlEntry, addChild, getAccessControlList, getChild, getChildren, getName, removeAccessControlEntry, removeChild, removeChild, setAccessControlList, setName
 
Methods inherited from class atg.nucleus.GenericService
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getLoggingForVlogging, getLogListenerCount, getLogListeners, 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, reResolveThis, 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
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string

Constructor Detail

SecuredPathAccessController

public SecuredPathAccessController()
Method Detail

isEnabled

public boolean isEnabled()
Is access control enabled?


setEnabled

public void setEnabled(boolean pEnabled)
Sets whether or not access control is enabled.


setUserAuthority

public void setUserAuthority(UserAuthority pUserAuthority)
Sets UserAuthority with which the resolved User variable should be resolved


getUserAuthority

public UserAuthority getUserAuthority()
Returns UserAuthority with which the resolved User variable should be resolved


getAllowGroups

public java.lang.String[] getAllowGroups()
Returns the array of "allow" group names.


setAllowGroups

public void setAllowGroups(java.lang.String[] pAllowGroups)
Sets the array of "allow" group names. groups.


getDenyGroups

public java.lang.String[] getDenyGroups()
Returns the array of "deny" group names.


setDenyGroups

public void setDenyGroups(java.lang.String[] pDenyGroups)
Sets the array of "deny" group names.


hasAccess

public boolean hasAccess(User pUser,
                         AccessRight pDesiredAccess)
Returns true if the indicated user has the desired access to this resource.

Specified by:
hasAccess in interface SecuredResource
Overrides:
hasAccess in class GenericSecuredResourceService