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

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

public class WsPermissionAssign
extends Object
implements Comparable<WsPermissionAssign>

result of permission entry query represents an assignment in the DB


Constructor Summary
WsPermissionAssign()
           
WsPermissionAssign(PermissionEntry permissionEntry, 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(Set<PermissionEntry> permissionEntrySet, boolean includePermissionAssignDetail)
          convert permission assigns
 String getAction()
          name of action for this assignment (e.g.
 String getAttributeAssignId()
          if this is an attribute assign attribute, this is the foreign key
 String getAttributeDefId()
          id of attribute def in this assignment
 String getAttributeDefName()
          name of attribute def in this assignment
 String getAttributeDefNameId()
          attribute name id in this assignment
 String getAttributeDefNameName()
          attribute name in this assignment
 WsPermissionAssignDetail getDetail()
          detail on the permission
 String getEnabled()
          T or F for if this assignment is enabled (e.g.
 String getMembershipId()
          if this is a membership attribute, this is the foreign key
 String getPermissionType()
          Type of owner, from enum AttributeAssignType, e.g.
 String getRoleId()
          if this is a group attribute, this is the foreign key
 String getRoleName()
          if this is a group attribute, this is the name of the foreign key
 String getSourceId()
          if this is a member attribute, this is the source of the foreign key
 String getSubjectId()
          if this is a member attribute, this is the subject of the foreign key
 void setAction(String attributeAssignActionName1)
          name of action for this assignment (e.g.
 void setAttributeAssignId(String ownerAttributeAssignId1)
          if this is an attribute assign attribute, this is the foreign key
 void setAttributeDefId(String attributeDefId1)
          id of attribute def in this assignment
 void setAttributeDefName(String attributeDefName1)
          name of attribute def in this assignment
 void setAttributeDefNameId(String attributeDefNameId1)
          attribute name id in this assignment
 void setAttributeDefNameName(String attributeDefNameName1)
          attribute name in this assignment
 void setDetail(WsPermissionAssignDetail detail1)
          detail on the permission
 void setEnabled(String enabled1)
          T or F for if this assignment is enabled (e.g.
 void setMembershipId(String ownerMembershipId1)
          if this is a membership attribute, this is the foreign key
 void setPermissionType(String attributeAssignType1)
          Type of owner, from enum AttributeAssignType, e.g.
 void setRoleId(String ownerGroupId1)
          if this is a group attribute, this is the foreign key
 void setRoleName(String ownerGroupName1)
          if this is a group attribute, this is the name of the foreign key
 void setSourceId(String ownerMemberSourceId1)
          if this is a member attribute, this is the source of the foreign key
 void setSubjectId(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,
                          boolean includePermissionAssignDetail)
construct with attribute assign to set internal fields

Parameters:
permissionEntry -
includePermissionAssignDetail - if detail should be added
Method Detail

getDetail

public WsPermissionAssignDetail getDetail()
detail on the permission

Returns:
detail

setDetail

public void setDetail(WsPermissionAssignDetail detail1)
detail on the permission

Parameters:
detail1 -

getAttributeDefId

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

Returns:
id of attribute def in this assignment

setAttributeDefId

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

Parameters:
attributeDefId1 -

getAttributeDefName

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

Returns:
name of attribute def in this assignment

setAttributeDefName

public void setAttributeDefName(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 Comparable<WsPermissionAssign>
See Also:
Comparable.compareTo(java.lang.Object)

getAction

public 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(String attributeAssignActionName1)
name of action for this assignment (e.g. assign). Generally this will be AttributeDef.ACTION_DEFAULT

Parameters:
attributeAssignActionName1 -

getPermissionType

public 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(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 String getAttributeDefNameId()
attribute name id in this assignment

Returns:
attribute name id in this assignment

setAttributeDefNameId

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

Parameters:
attributeDefNameId1 -

getAttributeDefNameName

public String getAttributeDefNameName()
attribute name in this assignment

Returns:
attribute name in this assignment

setAttributeDefNameName

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

Parameters:
attributeDefNameName1 -

getEnabled

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

Returns:
T or F

setEnabled

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

Parameters:
enabled1 -

getAttributeAssignId

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

Returns:
attribute assign id

setAttributeAssignId

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

Parameters:
ownerAttributeAssignId1 -

getRoleId

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

Returns:
the owner group id

setRoleId

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

Parameters:
ownerGroupId1 -

getRoleName

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

Returns:
owner group name

setRoleName

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

Parameters:
ownerGroupName1 -

getSubjectId

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

Returns:
owner subject id

setSubjectId

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

Parameters:
ownerMemberSubjectId1 -

getSourceId

public 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(String ownerMemberSourceId1)
if this is a member attribute, this is the source of the foreign key

Parameters:
ownerMemberSourceId1 -

getMembershipId

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

Returns:
membership attribute

setMembershipId

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

Parameters:
ownerMembershipId1 -

convertPermissionEntries

public static WsPermissionAssign[] convertPermissionEntries(Set<PermissionEntry> permissionEntrySet,
                                                            boolean includePermissionAssignDetail)
convert permission assigns

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