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

java.lang.Object
  extended by edu.internet2.middleware.grouper.ws.coresoap.WsGetPermissionAssignmentsResults
All Implemented Interfaces:
WsResponseBean, ResultMetadataHolder

public class WsGetPermissionAssignmentsResults
extends java.lang.Object
implements WsResponseBean, ResultMetadataHolder

 results for the get permissionAssignments call.
 
 result code:
 code of the result for this attribute assignment overall
 SUCCESS: means everything ok
 INSUFFICIENT_PRIVILEGES: not allowed
 INVALID_QUERY: bad inputs
 EXCEPTION: something bad happened
 

Author:
mchyzer

Nested Class Summary
static class WsGetPermissionAssignmentsResults.WsGetPermissionAssignmentsResultsCode
          result code of a request.
 
Constructor Summary
WsGetPermissionAssignmentsResults()
           
 
Method Summary
 void assignResult(java.util.Set<PermissionEntry> permissionEntries, java.util.Map<PermissionEntry,java.util.Set<PermissionLimitBean>> permissionLimitMap, java.lang.String[] theSubjectAttributeNames, boolean includePermissionAssignDetail)
          convert permissions to ws permissions
 void assignResultCode(WsGetPermissionAssignmentsResults.WsGetPermissionAssignmentsResultsCode getAttributeAssignmentsResultCode)
          assign the code from the enum
 void assignResultCodeException(WsGetPermissionAssignmentsResults.WsGetPermissionAssignmentsResultsCode wsGetPermissionAssignmentsResultsCodeOverride, java.lang.String theError, java.lang.Exception e)
          prcess an exception, log, etc
 void fillInAttributeAssigns(boolean usePIT, java.sql.Timestamp pointInTimeFrom, java.sql.Timestamp pointInTimeTo, boolean includeAssignmentsOnAssignments, java.lang.Boolean enabledBoolean)
          pass in the attribute def name ids that were found by inputs, and add the attribute def name ids found by the attribute assign results
 void fillInAttributeDefNames(boolean usePIT, java.util.Set<java.lang.String> attributeDefNameIds)
          pass in the attribute def name ids that were found by inputs, and add the attribute def name ids found by the attribute assign results
 void fillInAttributeDefs(boolean usePIT, java.util.Set<java.lang.String> attributeDefIds)
          pass in the attribute def ids that were found by inputs, and add the attribute def ids found by the attribute assign results
 void fillInGroups(boolean usePIT, java.util.Set<java.lang.String> groupIds, boolean includeGroupDetail)
          pass in the group ids that were found by inputs, and add the group id found by the attribute assign results
 void fillInSubjects(WsSubjectLookup[] subjectLookups, java.util.Set<java.lang.String> extraMemberIds, boolean includeSubjectDetail, java.lang.String[] theSubjectAttributeNames)
          pass in the subject lookups that were found by inputs, and add the subject ids found by the attribute assign results
 WsResponseMeta getResponseMetadata()
          get the response metadata
 WsResultMeta getResultMetadata()
          get the result metadata
 java.lang.String[] getSubjectAttributeNames()
          attributes of subjects returned, in same order as the data
 WsAttributeAssign[] getWsAttributeAssigns()
          the assignments being queried
 WsAttributeDefName[] getWsAttributeDefNames()
          attribute def names referenced in the assignments or inputs (and able to read)
 WsAttributeDef[] getWsAttributeDefs()
          attribute def references in the assignments or inputs (and able to be read)
 WsGroup[] getWsGroups()
           
 WsPermissionAssign[] getWsPermissionAssigns()
          the permissions being queried
 WsSubject[] getWsSubjects()
          subjects that are in the results
 void setResponseMetadata(WsResponseMeta responseMetadata1)
           
 void setResultMetadata(WsResultMeta resultMetadata1)
           
 void setSubjectAttributeNames(java.lang.String[] attributeNamesa)
          attributes of subjects returned, in same order as the data
 void setWsAttributeAssigns(WsAttributeAssign[] wsAttributeAssigns1)
          the assignments being queried
 void setWsAttributeDefNames(WsAttributeDefName[] wsAttributeDefNames1)
          attribute def names referenced in the assignments or inputs (and able to read)
 void setWsAttributeDefs(WsAttributeDef[] wsAttributeDefs1)
          attribute def references in the assignments or inputs (and able to be read)
 void setWsGroups(WsGroup[] wsGroup1)
           
 void setWsPermissionAssigns(WsPermissionAssign[] wsPermissionAssigns1)
          the permissions being queried
 void setWsSubjects(WsSubject[] wsSubjects1)
          subjects that are in the results
 void sortResults()
          sort the assignments by def, name, etc
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WsGetPermissionAssignmentsResults

public WsGetPermissionAssignmentsResults()
Method Detail

getWsAttributeDefs

public WsAttributeDef[] getWsAttributeDefs()
attribute def references in the assignments or inputs (and able to be read)

Returns:
attribute defs

setWsAttributeDefs

public void setWsAttributeDefs(WsAttributeDef[] wsAttributeDefs1)
attribute def references in the assignments or inputs (and able to be read)

Parameters:
wsAttributeDefs1 -

getWsAttributeDefNames

public WsAttributeDefName[] getWsAttributeDefNames()
attribute def names referenced in the assignments or inputs (and able to read)

Returns:
attribute def names

setWsAttributeDefNames

public void setWsAttributeDefNames(WsAttributeDefName[] wsAttributeDefNames1)
attribute def names referenced in the assignments or inputs (and able to read)

Parameters:
wsAttributeDefNames1 -

getWsPermissionAssigns

public WsPermissionAssign[] getWsPermissionAssigns()
the permissions being queried

Returns:
the permissions

setWsPermissionAssigns

public void setWsPermissionAssigns(WsPermissionAssign[] wsPermissionAssigns1)
the permissions being queried

Parameters:
wsPermissionAssigns1 -

getWsAttributeAssigns

public WsAttributeAssign[] getWsAttributeAssigns()
the assignments being queried

Returns:
the assignments being queried

setWsAttributeAssigns

public void setWsAttributeAssigns(WsAttributeAssign[] wsAttributeAssigns1)
the assignments being queried

Parameters:
wsAttributeAssigns1 -

assignResultCode

public void assignResultCode(WsGetPermissionAssignmentsResults.WsGetPermissionAssignmentsResultsCode getAttributeAssignmentsResultCode)
assign the code from the enum

Parameters:
getAttributeAssignmentsResultCode -

assignResultCodeException

public void assignResultCodeException(WsGetPermissionAssignmentsResults.WsGetPermissionAssignmentsResultsCode wsGetPermissionAssignmentsResultsCodeOverride,
                                      java.lang.String theError,
                                      java.lang.Exception e)
prcess an exception, log, etc

Parameters:
wsGetPermissionAssignmentsResultsCodeOverride -
theError -
e -

getSubjectAttributeNames

public java.lang.String[] getSubjectAttributeNames()
attributes of subjects returned, in same order as the data

Returns:
the attributeNames

setSubjectAttributeNames

public void setSubjectAttributeNames(java.lang.String[] attributeNamesa)
attributes of subjects returned, in same order as the data

Parameters:
attributeNamesa - the attributeNames to set

getResultMetadata

public WsResultMeta getResultMetadata()
Description copied from interface: WsResponseBean
get the result metadata

Specified by:
getResultMetadata in interface WsResponseBean
Specified by:
getResultMetadata in interface ResultMetadataHolder
Returns:
the resultMetadata

getResponseMetadata

public WsResponseMeta getResponseMetadata()
Description copied from interface: WsResponseBean
get the response metadata

Specified by:
getResponseMetadata in interface WsResponseBean
Returns:
the response metadata
See Also:
WsResponseBean.getResponseMetadata()

setResultMetadata

public void setResultMetadata(WsResultMeta resultMetadata1)
Parameters:
resultMetadata1 - the resultMetadata to set

setResponseMetadata

public void setResponseMetadata(WsResponseMeta responseMetadata1)
Parameters:
responseMetadata1 - the responseMetadata to set

getWsGroups

public WsGroup[] getWsGroups()
Returns:
the wsGroups

getWsSubjects

public WsSubject[] getWsSubjects()
subjects that are in the results

Returns:
the subjects

setWsGroups

public void setWsGroups(WsGroup[] wsGroup1)
Parameters:
wsGroup1 - the wsGroups to set

setWsSubjects

public void setWsSubjects(WsSubject[] wsSubjects1)
subjects that are in the results

Parameters:
wsSubjects1 -

assignResult

public void assignResult(java.util.Set<PermissionEntry> permissionEntries,
                         java.util.Map<PermissionEntry,java.util.Set<PermissionLimitBean>> permissionLimitMap,
                         java.lang.String[] theSubjectAttributeNames,
                         boolean includePermissionAssignDetail)
convert permissions to ws permissions

Parameters:
permissionEntries -
permissionLimitMap -
theSubjectAttributeNames -
includePermissionAssignDetail -

sortResults

public void sortResults()
sort the assignments by def, name, etc


fillInAttributeDefs

public void fillInAttributeDefs(boolean usePIT,
                                java.util.Set<java.lang.String> attributeDefIds)
pass in the attribute def ids that were found by inputs, and add the attribute def ids found by the attribute assign results

Parameters:
usePIT -
attributeDefIds -

fillInGroups

public void fillInGroups(boolean usePIT,
                         java.util.Set<java.lang.String> groupIds,
                         boolean includeGroupDetail)
pass in the group ids that were found by inputs, and add the group id found by the attribute assign results

Parameters:
usePIT -
groupIds -
includeGroupDetail -

fillInSubjects

public void fillInSubjects(WsSubjectLookup[] subjectLookups,
                           java.util.Set<java.lang.String> extraMemberIds,
                           boolean includeSubjectDetail,
                           java.lang.String[] theSubjectAttributeNames)
pass in the subject lookups that were found by inputs, and add the subject ids found by the attribute assign results

Parameters:
subjectLookups -
extraMemberIds -
includeSubjectDetail -
theSubjectAttributeNames -

fillInAttributeDefNames

public void fillInAttributeDefNames(boolean usePIT,
                                    java.util.Set<java.lang.String> attributeDefNameIds)
pass in the attribute def name ids that were found by inputs, and add the attribute def name ids found by the attribute assign results

Parameters:
usePIT -
attributeDefNameIds -

fillInAttributeAssigns

public void fillInAttributeAssigns(boolean usePIT,
                                   java.sql.Timestamp pointInTimeFrom,
                                   java.sql.Timestamp pointInTimeTo,
                                   boolean includeAssignmentsOnAssignments,
                                   java.lang.Boolean enabledBoolean)
pass in the attribute def name ids that were found by inputs, and add the attribute def name ids found by the attribute assign results

Parameters:
usePIT -
pointInTimeFrom -
pointInTimeTo -
includeAssignmentsOnAssignments - if assignments on assignments should be returned
enabledBoolean -
attributeDefNameIds -