Package org.apache.ofbiz.content.content
Class PermissionRecorder
- java.lang.Object
-
- org.apache.ofbiz.content.content.PermissionRecorder
-
public class PermissionRecorder extends java.lang.Object
PermissionRecorder Class Services for granting operation permissions on Content entities in a data-driven manner.
-
-
Field Summary
Fields Modifier and Type Field Description protected GenericValue[]
contentPurposeOperations
protected int
currentCheckMode
protected java.lang.String
currentContentId
protected java.util.Map<java.lang.String,java.lang.Object>
currentContentMap
protected boolean
entityPermCheckResult
protected boolean
isOn
static java.lang.String
module
protected java.util.List<java.util.Map<java.lang.String,java.lang.Object>>
permCheckResults
protected java.lang.String
privilegeEnumId
protected java.lang.String[]
statusTargets
protected java.lang.String[]
targetOperations
protected GenericValue
userLogin
-
Constructor Summary
Constructors Constructor Description PermissionRecorder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCheckMode()
GenericValue[]
getContentPurposeOperations()
java.lang.String
getCurrentContentId()
boolean
getEntityPermCheckResult()
java.lang.String
getPrivilegeEnumId()
java.lang.String[]
getStatusTargets()
java.lang.String[]
getTargetOperations()
GenericValue
getUserLogin()
boolean
isOn()
void
record(GenericValue purposeOp, boolean targetOpCond, boolean purposeCond, boolean statusCond, boolean privilegeCond, boolean roleCond)
java.lang.String
renderCurrentContentMapHtml(java.util.Map<java.lang.String,java.lang.Object> cMap)
java.lang.String
renderResultRowHtml(java.util.Map<java.lang.String,java.lang.Object> rMap, java.util.Map<java.lang.String,java.lang.Object> currentContentResultMap)
void
setCheckMode(int val)
void
setContentPurposeOperations(java.util.List<GenericValue> opList)
void
setCurrentContentId(java.lang.String id)
void
setEntityPermCheckResult(boolean b)
void
setOn(boolean b)
void
setPrivilegeEnumId(java.lang.String id)
void
setPurposes(java.util.List<java.lang.String> purposes)
void
setRoles(java.util.List<java.lang.String> roles)
void
setStatusTargets(java.util.List<java.lang.String> opList)
void
setTargetOperations(java.util.List<java.lang.String> opList)
void
setUserLogin(GenericValue user)
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)
java.lang.String
toHtml()
-
-
-
Field Detail
-
isOn
protected boolean isOn
-
userLogin
protected GenericValue userLogin
-
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
-
-
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)
-
getUserLogin
public GenericValue getUserLogin()
-
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)
-
-