|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.userprofiling.AccessRightAccessController
public class AccessRightAccessController
This class grants or denies access based on whether the given profile has one of the configured access rights.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
|
Constructor Summary | |
---|---|
AccessRightAccessController()
|
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.lang.String |
getAccessRightNamePropertyName()
|
java.lang.String |
getAccessRightsPropertyName()
|
java.util.List |
getAllowedAccessRightNames()
|
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 |
setAccessRightNamePropertyName(java.lang.String pAccessRightNamePropertyName)
The name of the name property of the accessRight item |
void |
setAccessRightsPropertyName(java.lang.String pAccessRightsPropertyName)
The name of the accessRights property of the internalUser |
void |
setAllowedAccessRightNames(java.util.List pAllowedAccessRightNames)
The names of the access rights that will allow 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 |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public AccessRightAccessController()
Method Detail |
---|
public void setAccessRightsPropertyName(java.lang.String pAccessRightsPropertyName)
pAccessRightPropertyName
- the name of the accessRights property of the internalUserpublic java.lang.String getAccessRightsPropertyName()
public void setAccessRightNamePropertyName(java.lang.String pAccessRightNamePropertyName)
pAccessRightNamePropertyName
- the name of the name property of the accessRight itempublic java.lang.String getAccessRightNamePropertyName()
public void setAllowedAccessRightNames(java.util.List pAllowedAccessRightNames)
pAccessRights
- the names of the access rights that will allow accesspublic java.util.List getAllowedAccessRightNames()
public void setDeniedAccessURL(java.lang.String pDeniedAccessURL)
pDeniedAccessURL
- the URL the user should be redirected to if allowAccess returns falsepublic java.lang.String getDeniedAccessURL()
public java.lang.String getDeniedAccessURL(Profile pProfile)
getDeniedAccessURL
in interface AccessController
public boolean allowAccess(Profile pProfile, DynamoHttpServletRequest pRequest)
allowAccess
in interface AccessController
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |