atg.userprofiling
Class RepositoryNameAccessController

java.lang.Object
  extended by atg.userprofiling.RepositoryNameAccessController
All Implemented Interfaces:
AccessController

public class RepositoryNameAccessController
extends java.lang.Object
implements AccessController

This class grants or denies access based on the name of the repository that contains the profile. The purpose is to allow configuration of AccessController components that keep internal users out of external applications, and vice-versa.


Field Summary
static java.lang.String CLASS_VERSION
           
 
Constructor Summary
RepositoryNameAccessController()
           
 
Method Summary
 boolean allowAccess(Profile pProfile, DynamoHttpServletRequest pRequest)
          Returns true if a user (represented by the specified Profile) should be allowed access, false if not.
 java.util.List getAllowedRepositoryNames()
           
 java.lang.String getDeniedAccessURL()
          Returns a URL the user should be redirected to if allowAccess returns false.
 java.lang.String getDeniedAccessURL(Profile pProfile)
          Returns a URL the user should be redirected to if allowAccess returns false.
 void setAllowedRepositoryNames(java.util.List pAllowedRepositoryNames)
          The names of the repositories whose members will be allowed access
 void setDeniedAccessURL(java.lang.String pDeniedAccessURL)
          A URL the user should be redirected to if allowAccess returns false
 
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
Constructor Detail

RepositoryNameAccessController

public RepositoryNameAccessController()
Method Detail

setAllowedRepositoryNames

public void setAllowedRepositoryNames(java.util.List pAllowedRepositoryNames)
The names of the repositories whose members will be allowed access

Parameters:
pAccessRights - the names of the repositories whose members will be allowed access

getAllowedRepositoryNames

public java.util.List getAllowedRepositoryNames()
Returns:
the names of the repositories whose members will be allowed access

setDeniedAccessURL

public void setDeniedAccessURL(java.lang.String pDeniedAccessURL)
A URL the user should be redirected to if allowAccess returns false

Parameters:
pDeniedAccessURL - the URL the user should be redirected to if allowAccess returns false

getDeniedAccessURL

public java.lang.String getDeniedAccessURL()
Returns a URL the user should be redirected to if allowAccess returns false.


getDeniedAccessURL

public java.lang.String getDeniedAccessURL(Profile pProfile)
Returns a URL the user should be redirected to if allowAccess returns false.

Specified by:
getDeniedAccessURL in interface AccessController

allowAccess

public boolean allowAccess(Profile pProfile,
                           DynamoHttpServletRequest pRequest)
Returns true if a user (represented by the specified Profile) should be allowed access, false if not.

Specified by:
allowAccess in interface AccessController