Class PageReadPermissionForRedactor

java.lang.Object
ch.tocco.nice2.dms.spi.security.policyprocessor.AbstractDmsPolicyProcessor
ch.tocco.nice2.optional.cms.impl.security.policyprocessor.PageReadPermissionForRedactor
All Implemented Interfaces:
PolicyProcessor

@Component public class PageReadPermissionForRedactor extends AbstractDmsPolicyProcessor
PolicyProcessor that efficiently implements the equivalent of the following acl rule:

 entity(Page):
     grant access(read) to redactor if
         read_permissions_set == false
         or (relNode_right.relNode_permission.unique_id == "read"
              and relNode_right.relRole.relLogin_role.relPrincipal.username == principal.name);