Class PermissionRecorder


  • public class PermissionRecorder
    extends java.lang.Object
    PermissionRecorder Class Services for granting operation permissions on Content entities in a data-driven manner.
    • Field Detail

      • isOn

        protected boolean isOn
      • permCheckResults

        protected java.util.List<java.util.Map<java.lang.String,​java.lang.Object>> permCheckResults
      • entityPermCheckResult

        protected boolean entityPermCheckResult
      • currentContentId

        protected java.lang.String currentContentId
      • currentContentMap

        protected java.util.Map<java.lang.String,​java.lang.Object> currentContentMap
      • privilegeEnumId

        protected java.lang.String privilegeEnumId
      • currentCheckMode

        protected int currentCheckMode
      • contentPurposeOperations

        protected GenericValue[] contentPurposeOperations
      • statusTargets

        protected java.lang.String[] statusTargets
      • targetOperations

        protected java.lang.String[] targetOperations
      • module

        public static final java.lang.String module
    • Constructor Detail

      • PermissionRecorder

        public PermissionRecorder()
    • Method Detail

      • setCheckMode

        public void setCheckMode​(int val)
      • getCheckMode

        public int getCheckMode()
      • isOn

        public boolean isOn()
      • setOn

        public void setOn​(boolean b)
      • setUserLogin

        public void setUserLogin​(GenericValue user)
      • getEntityPermCheckResult

        public boolean getEntityPermCheckResult()
      • setEntityPermCheckResult

        public void setEntityPermCheckResult​(boolean b)
      • getContentPurposeOperations

        public GenericValue[] getContentPurposeOperations()
      • setContentPurposeOperations

        public void setContentPurposeOperations​(java.util.List<GenericValue> opList)
      • setPrivilegeEnumId

        public void setPrivilegeEnumId​(java.lang.String id)
      • getPrivilegeEnumId

        public java.lang.String getPrivilegeEnumId()
      • getStatusTargets

        public java.lang.String[] getStatusTargets()
      • setStatusTargets

        public void setStatusTargets​(java.util.List<java.lang.String> opList)
      • getTargetOperations

        public java.lang.String[] getTargetOperations()
      • setTargetOperations

        public void setTargetOperations​(java.util.List<java.lang.String> opList)
      • setCurrentContentId

        public void setCurrentContentId​(java.lang.String id)
      • getCurrentContentId

        public java.lang.String getCurrentContentId()
      • setRoles

        public void setRoles​(java.util.List<java.lang.String> roles)
      • setPurposes

        public void setPurposes​(java.util.List<java.lang.String> purposes)
      • startMatchGroup

        public void startMatchGroup​(java.util.List<java.lang.String> targetOperations,
                                    java.util.List<java.lang.String> purposes,
                                    java.util.List<java.lang.String> roles,
                                    java.util.List<java.lang.String> targStatusList,
                                    java.lang.String targPrivilegeEnumId,
                                    java.lang.String contentId)
      • record

        public void record​(GenericValue purposeOp,
                           boolean targetOpCond,
                           boolean purposeCond,
                           boolean statusCond,
                           boolean privilegeCond,
                           boolean roleCond)
      • toHtml

        public java.lang.String toHtml()
      • renderCurrentContentMapHtml

        public java.lang.String renderCurrentContentMapHtml​(java.util.Map<java.lang.String,​java.lang.Object> cMap)
      • renderResultRowHtml

        public java.lang.String renderResultRowHtml​(java.util.Map<java.lang.String,​java.lang.Object> rMap,
                                                    java.util.Map<java.lang.String,​java.lang.Object> currentContentResultMap)