public class AddSiteNameRequestAttribute extends Object implements AllowedUsersActionAdditionalOperations
AllowedUsersActionAdditionalOperations
for adding the site of the current AmetysObject
(if it is a SiteAwareAmetysObject
) as a request attribute.
Some AccessController
s are based on this request attribute value to compute their results.Modifier and Type | Field and Description |
---|---|
private static String |
__SITENAME_ATTR_NAME |
private Object |
_currentSiteName |
Constructor and Description |
---|
AddSiteNameRequestAttribute() |
Modifier and Type | Method and Description |
---|---|
void |
afterGettingAllowedUsers(AmetysObject ametysObject,
Request request)
Do an additional operation after
AllowedUsersByObjectAction calls RightManager.getReadAccessAllowedUsers(Object) |
void |
beforeGettingAllowedUsers(AmetysObject ametysObject,
Request request)
Do an additional operation before
AllowedUsersByObjectAction calls RightManager.getReadAccessAllowedUsers(Object) |
private static final String __SITENAME_ATTR_NAME
private Object _currentSiteName
public AddSiteNameRequestAttribute()
public void beforeGettingAllowedUsers(AmetysObject ametysObject, Request request)
AllowedUsersActionAdditionalOperations
AllowedUsersByObjectAction
calls RightManager.getReadAccessAllowedUsers(Object)
beforeGettingAllowedUsers
in interface AllowedUsersActionAdditionalOperations
ametysObject
- The AmetysObject which will be passed to RightManager.getReadAccessAllowedUsers(Object)
request
- The current requestpublic void afterGettingAllowedUsers(AmetysObject ametysObject, Request request)
AllowedUsersActionAdditionalOperations
AllowedUsersByObjectAction
calls RightManager.getReadAccessAllowedUsers(Object)
afterGettingAllowedUsers
in interface AllowedUsersActionAdditionalOperations
ametysObject
- The AmetysObject which will be passed to RightManager.getReadAccessAllowedUsers(Object)
request
- The current request