Class PermissionRecorder

java.lang.Object
org.apache.ofbiz.content.content.PermissionRecorder

public class PermissionRecorder extends Object
PermissionRecorder Class

Services for granting operation permissions on Content entities in a data-driven manner.

  • Constructor Details

    • PermissionRecorder

      public PermissionRecorder()
  • Method Details

    • getCheckMode

      public int getCheckMode()
      Gets check mode.
      Returns:
      the check mode
    • setCheckMode

      public void setCheckMode(int val)
      Sets check mode.
      Parameters:
      val - the val
    • isOn

      public boolean isOn()
      Is on boolean.
      Returns:
      the boolean
    • setOn

      public void setOn(boolean b)
      Sets on.
      Parameters:
      b - the b
    • getUserLogin

      public GenericValue getUserLogin()
      Gets user login.
      Returns:
      the user login
    • setUserLogin

      public void setUserLogin(GenericValue user)
      Sets user login.
      Parameters:
      user - the user
    • getEntityPermCheckResult

      public boolean getEntityPermCheckResult()
      Gets entity perm check result.
      Returns:
      the entity perm check result
    • setEntityPermCheckResult

      public void setEntityPermCheckResult(boolean b)
      Sets entity perm check result.
      Parameters:
      b - the b
    • getContentPurposeOperations

      public GenericValue[] getContentPurposeOperations()
      Get content purpose operations generic value [ ].
      Returns:
      the generic value [ ]
    • setContentPurposeOperations

      public void setContentPurposeOperations(List<GenericValue> opList)
      Sets content purpose operations.
      Parameters:
      opList - the op list
    • getPrivilegeEnumId

      public String getPrivilegeEnumId()
      Gets privilege enum id.
      Returns:
      the privilege enum id
    • setPrivilegeEnumId

      public void setPrivilegeEnumId(String id)
      Sets privilege enum id.
      Parameters:
      id - the id
    • getStatusTargets

      public String[] getStatusTargets()
      Get status targets string [ ].
      Returns:
      the string [ ]
    • setStatusTargets

      public void setStatusTargets(List<String> opList)
      Sets status targets.
      Parameters:
      opList - the op list
    • getTargetOperations

      public String[] getTargetOperations()
      Get target operations string [ ].
      Returns:
      the string [ ]
    • setTargetOperations

      public void setTargetOperations(List<String> opList)
      Sets target operations.
      Parameters:
      opList - the op list
    • setCurrentContentId

      public void setCurrentContentId(String id)
      Sets current content id.
      Parameters:
      id - the id
    • getCurrentContentId

      public String getCurrentContentId()
      Gets current content id.
      Returns:
      the current content id
    • setRoles

      public void setRoles(List<String> roles)
      Sets roles.
      Parameters:
      roles - the roles
    • setPurposes

      public void setPurposes(List<String> purposes)
      Sets purposes.
      Parameters:
      purposes - the purposes
    • startMatchGroup

      public void startMatchGroup(List<String> targetOperations, List<String> purposes, List<String> roles, List<String> targStatusList, String targPrivilegeEnumId, String contentId)
      Start match group.
      Parameters:
      targetOperations - the target operations
      purposes - the purposes
      roles - the roles
      targStatusList - the targ status list
      targPrivilegeEnumId - the targ privilege enum id
      contentId - the content id
    • record

      public void record(GenericValue purposeOp, boolean targetOpCond, boolean purposeCond, boolean statusCond, boolean privilegeCond, boolean roleCond)
      Record.
      Parameters:
      purposeOp - the purpose op
      targetOpCond - the target op cond
      purposeCond - the purpose cond
      statusCond - the status cond
      privilegeCond - the privilege cond
      roleCond - the role cond
    • toHtml

      public String toHtml()
      To html string.
      Returns:
      the string
    • renderCurrentContentMapHtml

      public String renderCurrentContentMapHtml(Map<String,Object> cMap)
      Render current content map html string.
      Parameters:
      cMap - the c map
      Returns:
      the string
    • renderResultRowHtml

      public String renderResultRowHtml(Map<String,Object> rMap, Map<String,Object> currentContentResultMap)
      Render result row html string.
      Parameters:
      rMap - the r map
      currentContentResultMap - the current content result map
      Returns:
      the string