Class ReadAccessHelper
- java.lang.Object
-
- org.ametys.cms.rights.solrchecking.ReadAccessHelper
-
- All Implemented Interfaces:
Component
,Contextualizable
,Serviceable
public class ReadAccessHelper extends Object implements Component, Serviceable, Contextualizable
Helper for Read ACL
-
-
Field Summary
Fields Modifier and Type Field Description protected AllowedUsersActionAdditionalOperationsExtensionPoint
_allowedUsersActionAdditionalOperationsEP
The Extension Point for doing additonal operations before and after callingRightManager.getReadAccessAllowedUsers(Object)
protected RightManager
_rightManager
The right managerstatic String
ROLE
Avalon role.
-
Constructor Summary
Constructors Constructor Description ReadAccessHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AllowedUsers
allowedUsers(AmetysObject ametysObject)
Gets the allowed users for read-access to the given objectvoid
contextualize(Context context)
void
service(ServiceManager manager)
-
-
-
Field Detail
-
_rightManager
protected RightManager _rightManager
The right manager
-
_allowedUsersActionAdditionalOperationsEP
protected AllowedUsersActionAdditionalOperationsExtensionPoint _allowedUsersActionAdditionalOperationsEP
The Extension Point for doing additonal operations before and after callingRightManager.getReadAccessAllowedUsers(Object)
-
-
Constructor Detail
-
ReadAccessHelper
public ReadAccessHelper()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
contextualize
public void contextualize(Context context) throws ContextException
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
allowedUsers
public AllowedUsers allowedUsers(AmetysObject ametysObject)
Gets the allowed users for read-access to the given object- Parameters:
ametysObject
- The object to test- Returns:
- the allowed users for read-access to the given object
-
-