Class AddSiteNameRequestAttribute
- java.lang.Object
-
- org.ametys.web.rights.solrchecking.AddSiteNameRequestAttribute
-
- All Implemented Interfaces:
AllowedUsersActionAdditionalOperations
public class AddSiteNameRequestAttribute extends Object implements AllowedUsersActionAdditionalOperations
AllowedUsersActionAdditionalOperationsfor adding the site of the currentAmetysObject(if it is aSiteAwareAmetysObject) as a request attribute. SomeAccessControllers are based on this request attribute value to compute their results.
-
-
Field Summary
Fields Modifier and Type Field Description private static String__SITENAME_ATTR_NAMEprivate Object_currentSiteName
-
Constructor Summary
Constructors Constructor Description AddSiteNameRequestAttribute()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterGettingAllowedUsers(AmetysObject ametysObject, Request request)Do an additional operation afterAllowedUsersByObjectActioncallsRightManager.getReadAccessAllowedUsers(Object)voidbeforeGettingAllowedUsers(AmetysObject ametysObject, Request request)Do an additional operation beforeAllowedUsersByObjectActioncallsRightManager.getReadAccessAllowedUsers(Object)
-
-
-
Field Detail
-
__SITENAME_ATTR_NAME
private static final String __SITENAME_ATTR_NAME
- See Also:
- Constant Field Values
-
_currentSiteName
private Object _currentSiteName
-
-
Constructor Detail
-
AddSiteNameRequestAttribute
public AddSiteNameRequestAttribute()
-
-
Method Detail
-
beforeGettingAllowedUsers
public void beforeGettingAllowedUsers(AmetysObject ametysObject, Request request)
Description copied from interface:AllowedUsersActionAdditionalOperationsDo an additional operation beforeAllowedUsersByObjectActioncallsRightManager.getReadAccessAllowedUsers(Object)- Specified by:
beforeGettingAllowedUsersin interfaceAllowedUsersActionAdditionalOperations- Parameters:
ametysObject- The AmetysObject which will be passed toRightManager.getReadAccessAllowedUsers(Object)request- The current request
-
afterGettingAllowedUsers
public void afterGettingAllowedUsers(AmetysObject ametysObject, Request request)
Description copied from interface:AllowedUsersActionAdditionalOperationsDo an additional operation afterAllowedUsersByObjectActioncallsRightManager.getReadAccessAllowedUsers(Object)- Specified by:
afterGettingAllowedUsersin interfaceAllowedUsersActionAdditionalOperations- Parameters:
ametysObject- The AmetysObject which will be passed toRightManager.getReadAccessAllowedUsers(Object)request- The current request
-
-