Package org.ametys.web.rights
Class WebContentInteractionAccessController
java.lang.Object
org.ametys.cms.rights.ContentInteractionAccessController
org.ametys.web.rights.WebContentInteractionAccessController
- All Implemented Interfaces:
AccessController,PluginAware,Supporter<Object>,Initializable,Contextualizable,Serviceable
public class WebContentInteractionAccessController
extends ContentInteractionAccessController
implements Contextualizable
Access controller for reactions and report for web contents, taking into account the site configuration.
See
ContentInteractionAccessController.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.core.right.AccessController
AccessController.AccessResult, AccessController.ExplanationObject, AccessController.Permission -
Field Summary
Fields inherited from class org.ametys.cms.rights.ContentInteractionAccessController
_resolver, _rootContentHelper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcontextualize(Context context) protected booleanisReadAccessBased(Object object) Returns true if the content interaction access is based on read access, false if it is based on specific rights only.voidservice(ServiceManager manager) Methods inherited from class org.ametys.cms.rights.ContentInteractionAccessController
_getAccessExplanation, explainAllPermissions, explainAllPermissionsByGroup, explainAllPermissionsByUser, explainAllPermissionsForAnonymous, explainAllPermissionsForAnyConnected, explainPermission, explainPermissionForAnonymous, explainReadAccessPermission, explainReadAccessPermissionForAnonymous, getId, getObjectCategory, getObjectLabel, getPermission, getPermissionByGroup, getPermissionByRight, getPermissionByUser, getPermissionForAnonymous, getPermissionForAnyConnectedUser, getReadAccessPermission, getReadAccessPermissionByGroup, getReadAccessPermissionByUser, getReadAccessPermissionForAnonymous, getReadAccessPermissionForAnyConnectedUser, hasAnonymousAnyPermissionOnWorkspace, hasAnonymousAnyReadAccessPermissionOnWorkspace, hasAnyConnectedUserAnyPermissionOnWorkspace, hasAnyConnectedUserAnyReadAccessPermissionOnWorkspace, hasUserAnyPermissionOnWorkspace, hasUserAnyReadAccessPermissionOnWorkspace, initialize, setPluginInfo, supportsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.core.right.AccessController
explainPermissionForAnyConnectedUser, explainReadAccessPermissionForAnyConnectedUser, getExplanationObject, getObjectPriority
-
Constructor Details
-
WebContentInteractionAccessController
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classContentInteractionAccessController- Throws:
ServiceException
-
contextualize
- Specified by:
contextualizein interfaceContextualizable- Throws:
ContextException
-
isReadAccessBased
Description copied from class:ContentInteractionAccessControllerReturns true if the content interaction access is based on read access, false if it is based on specific rights only.- Overrides:
isReadAccessBasedin classContentInteractionAccessController- Parameters:
object- The content object- Returns:
- The reaction access type
-