Class EntityPermissionChecker.StdRelatedRoleGetter
- java.lang.Object
-
- org.apache.ofbiz.entityext.permission.EntityPermissionChecker.StdRelatedRoleGetter
-
- All Implemented Interfaces:
EntityPermissionChecker.RelatedRoleGetter
- Enclosing class:
- EntityPermissionChecker
public static class EntityPermissionChecker.StdRelatedRoleGetter extends java.lang.Object implements EntityPermissionChecker.RelatedRoleGetter
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
entityName
protected java.lang.String
ownerEntityFieldName
protected java.lang.String
partyFieldName
protected java.lang.String
roleEntityIdName
protected java.lang.String
roleEntityName
protected java.util.List<java.lang.String>
roleIdList
protected java.lang.String
roleTypeFieldName
-
Constructor Summary
Constructors Constructor Description StdRelatedRoleGetter()
StdRelatedRoleGetter(java.lang.String entityName, java.lang.String roleTypeFieldName, java.lang.String roleEntityIdName, java.lang.String partyFieldName, java.lang.String ownerEntityFieldName, java.lang.String roleEntityName)
StdRelatedRoleGetter(org.w3c.dom.Element getterElement)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearList()
java.lang.String
dumpAsText()
java.util.List<java.lang.String>
getList()
void
init(Delegator delegator, java.lang.String entityId, java.lang.String partyId, GenericValue entity)
void
initWithAncestors(Delegator delegator, GenericValue entity, java.lang.String partyId)
boolean
isOwner(GenericValue entity, java.lang.String targetPartyId)
void
setList(java.util.List<java.lang.String> lst)
-
-
-
Field Detail
-
roleIdList
protected java.util.List<java.lang.String> roleIdList
-
roleTypeFieldName
protected java.lang.String roleTypeFieldName
-
partyFieldName
protected java.lang.String partyFieldName
-
entityName
protected java.lang.String entityName
-
roleEntityIdName
protected java.lang.String roleEntityIdName
-
roleEntityName
protected java.lang.String roleEntityName
-
ownerEntityFieldName
protected java.lang.String ownerEntityFieldName
-
-
Constructor Detail
-
StdRelatedRoleGetter
public StdRelatedRoleGetter()
-
StdRelatedRoleGetter
public StdRelatedRoleGetter(java.lang.String entityName, java.lang.String roleTypeFieldName, java.lang.String roleEntityIdName, java.lang.String partyFieldName, java.lang.String ownerEntityFieldName, java.lang.String roleEntityName)
-
StdRelatedRoleGetter
public StdRelatedRoleGetter(org.w3c.dom.Element getterElement)
-
-
Method Detail
-
getList
public java.util.List<java.lang.String> getList()
- Specified by:
getList
in interfaceEntityPermissionChecker.RelatedRoleGetter
-
clearList
public void clearList()
- Specified by:
clearList
in interfaceEntityPermissionChecker.RelatedRoleGetter
-
setList
public void setList(java.util.List<java.lang.String> lst)
- Specified by:
setList
in interfaceEntityPermissionChecker.RelatedRoleGetter
-
init
public void init(Delegator delegator, java.lang.String entityId, java.lang.String partyId, GenericValue entity) throws GenericEntityException
- Specified by:
init
in interfaceEntityPermissionChecker.RelatedRoleGetter
- Throws:
GenericEntityException
-
initWithAncestors
public void initWithAncestors(Delegator delegator, GenericValue entity, java.lang.String partyId) throws GenericEntityException
- Specified by:
initWithAncestors
in interfaceEntityPermissionChecker.RelatedRoleGetter
- Throws:
GenericEntityException
-
isOwner
public boolean isOwner(GenericValue entity, java.lang.String targetPartyId)
- Specified by:
isOwner
in interfaceEntityPermissionChecker.RelatedRoleGetter
-
dumpAsText
public java.lang.String dumpAsText()
- Specified by:
dumpAsText
in interfaceEntityPermissionChecker.RelatedRoleGetter
-
-