Class ComponentAccessController

    • Method Detail

      • isGroupAuthorized

        public boolean isGroupAuthorized​(String groupId,
                                         String instanceId)
        Description copied from interface: AccessController
        Is the specified group authorized to access the given object with at least read privileges? The roles of the group on the object aren't taken into account. The group should have at least the user role to access the object unless the object is public.
        Specified by:
        isGroupAuthorized in interface AccessController<String>
        Parameters:
        groupId - the unique identifier of a group.
        instanceId - the unique identifier of the object to be accessed.
        Returns:
        true if the group can access the given object, false otherwise.
      • isRightOnTopicsEnabled

        public boolean isRightOnTopicsEnabled​(String instanceId)
        Description copied from interface: ComponentAccessControl
        Indicates is the rights are set on node as well as the component.
        Specified by:
        isRightOnTopicsEnabled in interface ComponentAccessControl
        Parameters:
        instanceId - the identifier of the component instance.
        Returns:
        true if rights are enabled at node level, false otherwise.
      • isUserAuthorized

        public boolean isUserAuthorized​(String userId,
                                        String componentId,
                                        AccessControlContext context)
        Description copied from interface: AccessController
        Checks if the specified user may access the specified object.
        Specified by:
        isUserAuthorized in interface AccessController<String>
        Parameters:
        userId - the unique identifier of the user.
        componentId - the object to be accessed.
        context - the context in which the object is accessed.
        Returns:
        true if access is granted - false otherwise.