edu.internet2.middleware.grouper.ws.coresoap
Class WsPermissionAssign

java.lang.Object
  extended by edu.internet2.middleware.grouper.ws.coresoap.WsPermissionAssign
All Implemented Interfaces:
java.lang.Comparable<WsPermissionAssign>

public class WsPermissionAssign
extends java.lang.Object
implements java.lang.Comparable<WsPermissionAssign>

result of permission entry query represents an assignment in the DB


Constructor Summary
WsPermissionAssign()
           
WsPermissionAssign(PermissionEntry permissionEntry, java.util.Set<PermissionLimitBean> permissionLimitBeans, boolean includePermissionAssignDetail)
          construct with attribute assign to set internal fields
 
Method Summary
 int compareTo(WsPermissionAssign o2)
          compare and sort so results are reproducible for tests
static WsPermissionAssign[] convertPermissionEntries(java.util.Set<PermissionEntry> permissionEntrySet, java.util.Map<PermissionEntry,java.util.Set<PermissionLimitBean>> permissionLimitMap, boolean includePermissionAssignDetail)
          convert permission assigns
 java.lang.String getAction()
          name of action for this assignment (e.g.
 java.lang.String getAllowedOverall()
          T or F, this will be if this permissions is allowed (not in DB/assignment, but overall).
 java.lang.String getAttributeAssignId()
          if this is an attribute assign attribute, this is the foreign key
 java.lang.String getAttributeDefId()
          id of attribute def in this assignment
 java.lang.String getAttributeDefName()
          name of attribute def in this assignment
 java.lang.String getAttributeDefNameId()
          attribute name id in this assignment
 java.lang.String getAttributeDefNameName()
          attribute name in this assignment
 WsPermissionAssignDetail getDetail()
          detail on the permission
 java.lang.String getDisallowed()
          if this is a permission, then if this permission assignment is allowed or not
 java.lang.String getEnabled()
          T or F for if this assignment is enabled (e.g.
 WsPermissionLimit[] getLimits()
          if retrieving limits, these are the limits
 java.lang.String getMembershipId()
          if this is a membership attribute, this is the foreign key
 java.lang.String getPermissionType()
          Type of owner, from enum AttributeAssignType, e.g.
 java.lang.String getRoleId()
          if this is a group attribute, this is the foreign key
 java.lang.String getRoleName()
          if this is a group attribute, this is the name of the foreign key
 java.lang.String getSourceId()
          if this is a member attribute, this is the source of the foreign key
 java.lang.String getSubjectId()
          if this is a member attribute, this is the subject of the foreign key
 void setAction(java.lang.String attributeAssignActionName1)
          name of action for this assignment (e.g.
 void setAllowedOverall(java.lang.String allowedOverall1)
          T or F, this will be if this permissions is allowed (not in DB/assignment, but overall).
 void setAttributeAssignId(java.lang.String ownerAttributeAssignId1)
          if this is an attribute assign attribute, this is the foreign key
 void setAttributeDefId(java.lang.String attributeDefId1)
          id of attribute def in this assignment
 void setAttributeDefName(java.lang.String attributeDefName1)
          name of attribute def in this assignment
 void setAttributeDefNameId(java.lang.String attributeDefNameId1)
          attribute name id in this assignment
 void setAttributeDefNameName(java.lang.String attributeDefNameName1)
          attribute name in this assignment
 void setDetail(WsPermissionAssignDetail detail1)
          detail on the permission
 void setDisallowed(java.lang.String disallowed1)
          T or F, if this is a permission, then if this permission assignment is allowed or not
 void setEnabled(java.lang.String enabled1)
          T or F for if this assignment is enabled (e.g.
 void setLimits(WsPermissionLimit[] limits1)
          if retrieving limits, these are the limits
 void setMembershipId(java.lang.String ownerMembershipId1)
          if this is a membership attribute, this is the foreign key
 void setPermissionType(java.lang.String attributeAssignType1)
          Type of owner, from enum AttributeAssignType, e.g.
 void setRoleId(java.lang.String ownerGroupId1)
          if this is a group attribute, this is the foreign key
 void setRoleName(java.lang.String ownerGroupName1)
          if this is a group attribute, this is the name of the foreign key
 void setSourceId(java.lang.String ownerMemberSourceId1)
          if this is a member attribute, this is the source of the foreign key
 void setSubjectId(java.lang.String ownerMemberSubjectId1)
          if this is a member attribute, this is the subject of the foreign key
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WsPermissionAssign

public WsPermissionAssign()

WsPermissionAssign

public WsPermissionAssign(PermissionEntry permissionEntry,
                          java.util.Set<PermissionLimitBean> permissionLimitBeans,
                          boolean includePermissionAssignDetail)
construct with attribute assign to set internal fields

Parameters:
permissionEntry -
permissionLimitBeans - are the limits on this permission
includePermissionAssignDetail - if detail should be added
Method Detail

getLimits

public WsPermissionLimit[] getLimits()
if retrieving limits, these are the limits

Returns:
the limits

setLimits

public void setLimits(WsPermissionLimit[] limits1)
if retrieving limits, these are the limits

Parameters:
limits1 - the limits to set

getDetail

public WsPermissionAssignDetail getDetail()
detail on the permission

Returns:
detail

setDetail

public void setDetail(WsPermissionAssignDetail detail1)
detail on the permission

Parameters:
detail1 -

getAttributeDefId

public java.lang.String getAttributeDefId()
id of attribute def in this assignment

Returns:
id of attribute def in this assignment

setAttributeDefId

public void setAttributeDefId(java.lang.String attributeDefId1)
id of attribute def in this assignment

Parameters:
attributeDefId1 -

getAttributeDefName

public java.lang.String getAttributeDefName()
name of attribute def in this assignment

Returns:
name of attribute def in this assignment

setAttributeDefName

public void setAttributeDefName(java.lang.String attributeDefName1)
name of attribute def in this assignment

Parameters:
attributeDefName1 -

compareTo

public int compareTo(WsPermissionAssign o2)
compare and sort so results are reproducible for tests

Specified by:
compareTo in interface java.lang.Comparable<WsPermissionAssign>
See Also:
Comparable.compareTo(java.lang.Object)

getAction

public java.lang.String getAction()
name of action for this assignment (e.g. assign). Generally this will be AttributeDef.ACTION_DEFAULT

Returns:
name of action for this assignment (e.g. assign). Generally this will be AttributeDef.ACTION_DEFAULT

setAction

public void setAction(java.lang.String attributeAssignActionName1)
name of action for this assignment (e.g. assign). Generally this will be AttributeDef.ACTION_DEFAULT

Parameters:
attributeAssignActionName1 -

getPermissionType

public java.lang.String getPermissionType()
Type of owner, from enum AttributeAssignType, e.g. group, member, stem, any_mem, imm_mem, attr_def, group_asgn, mem_asgn, stem_asgn, any_mem_asgn, imm_mem_asgn, attr_def_asgn

Returns:
type

setPermissionType

public void setPermissionType(java.lang.String attributeAssignType1)
Type of owner, from enum AttributeAssignType, e.g. group, member, stem, any_mem, imm_mem, attr_def, group_asgn, mem_asgn, stem_asgn, any_mem_asgn, imm_mem_asgn, attr_def_asgn

Parameters:
attributeAssignType1 -

getAttributeDefNameId

public java.lang.String getAttributeDefNameId()
attribute name id in this assignment

Returns:
attribute name id in this assignment

setAttributeDefNameId

public void setAttributeDefNameId(java.lang.String attributeDefNameId1)
attribute name id in this assignment

Parameters:
attributeDefNameId1 -

getAttributeDefNameName

public java.lang.String getAttributeDefNameName()
attribute name in this assignment

Returns:
attribute name in this assignment

setAttributeDefNameName

public void setAttributeDefNameName(java.lang.String attributeDefNameName1)
attribute name in this assignment

Parameters:
attributeDefNameName1 -

getEnabled

public java.lang.String getEnabled()
T or F for if this assignment is enabled (e.g. might have expired)

Returns:
T or F

setEnabled

public void setEnabled(java.lang.String enabled1)
T or F for if this assignment is enabled (e.g. might have expired)

Parameters:
enabled1 -

getAttributeAssignId

public java.lang.String getAttributeAssignId()
if this is an attribute assign attribute, this is the foreign key

Returns:
attribute assign id

setAttributeAssignId

public void setAttributeAssignId(java.lang.String ownerAttributeAssignId1)
if this is an attribute assign attribute, this is the foreign key

Parameters:
ownerAttributeAssignId1 -

getRoleId

public java.lang.String getRoleId()
if this is a group attribute, this is the foreign key

Returns:
the owner group id

setRoleId

public void setRoleId(java.lang.String ownerGroupId1)
if this is a group attribute, this is the foreign key

Parameters:
ownerGroupId1 -

getRoleName

public java.lang.String getRoleName()
if this is a group attribute, this is the name of the foreign key

Returns:
owner group name

setRoleName

public void setRoleName(java.lang.String ownerGroupName1)
if this is a group attribute, this is the name of the foreign key

Parameters:
ownerGroupName1 -

getSubjectId

public java.lang.String getSubjectId()
if this is a member attribute, this is the subject of the foreign key

Returns:
owner subject id

setSubjectId

public void setSubjectId(java.lang.String ownerMemberSubjectId1)
if this is a member attribute, this is the subject of the foreign key

Parameters:
ownerMemberSubjectId1 -

getSourceId

public java.lang.String getSourceId()
if this is a member attribute, this is the source of the foreign key

Returns:
owner member source id

setSourceId

public void setSourceId(java.lang.String ownerMemberSourceId1)
if this is a member attribute, this is the source of the foreign key

Parameters:
ownerMemberSourceId1 -

getMembershipId

public java.lang.String getMembershipId()
if this is a membership attribute, this is the foreign key

Returns:
membership attribute

setMembershipId

public void setMembershipId(java.lang.String ownerMembershipId1)
if this is a membership attribute, this is the foreign key

Parameters:
ownerMembershipId1 -

getAllowedOverall

public java.lang.String getAllowedOverall()
T or F, this will be if this permissions is allowed (not in DB/assignment, but overall). So if we are considering limits, and the limit is false, then this will be false for a permission where the disallow is set to false

Returns:
true if allowed overall

setAllowedOverall

public void setAllowedOverall(java.lang.String allowedOverall1)
T or F, this will be if this permissions is allowed (not in DB/assignment, but overall). So if we are considering limits, and the limit is false, then this will be false for a permission where the disallow is set to false

Parameters:
allowedOverall1 -

setDisallowed

public void setDisallowed(java.lang.String disallowed1)
T or F, if this is a permission, then if this permission assignment is allowed or not

Parameters:
disallowed1 -

getDisallowed

public java.lang.String getDisallowed()
if this is a permission, then if this permission assignment is allowed or not

Returns:
if disallowed

convertPermissionEntries

public static WsPermissionAssign[] convertPermissionEntries(java.util.Set<PermissionEntry> permissionEntrySet,
                                                            java.util.Map<PermissionEntry,java.util.Set<PermissionLimitBean>> permissionLimitMap,
                                                            boolean includePermissionAssignDetail)
convert permission assigns

Parameters:
permissionEntrySet -
permissionLimitMap - limits for the permission
includePermissionAssignDetail -
attributeAssignSet - should be the membership, group, and member objects in a row
Returns:
the subject results