Class WsGetPermissionAssignmentsResults
java.lang.Object
edu.internet2.middleware.grouper.ws.coresoap.WsGetPermissionAssignmentsResults
- All Implemented Interfaces:
WsResponseBean
,ResultMetadataHolder
public class WsGetPermissionAssignmentsResults
extends 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
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
result code of a request. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
assignResult
(Set<PermissionEntry> permissionEntries, Map<PermissionEntry, Set<PermissionLimitBean>> permissionLimitMap, String[] theSubjectAttributeNames, boolean includePermissionAssignDetail) convert permissions to ws permissionsvoid
assignResultCode
(WsGetPermissionAssignmentsResults.WsGetPermissionAssignmentsResultsCode getAttributeAssignmentsResultCode) assign the code from the enumvoid
assignResultCodeException
(WsGetPermissionAssignmentsResults.WsGetPermissionAssignmentsResultsCode wsGetPermissionAssignmentsResultsCodeOverride, String theError, Exception e) prcess an exception, log, etcvoid
fillInAttributeAssigns
(boolean usePIT, Timestamp pointInTimeFrom, Timestamp pointInTimeTo, boolean includeAssignmentsOnAssignments, 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 resultsvoid
fillInAttributeDefNames
(boolean usePIT, Set<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 resultsvoid
fillInAttributeDefs
(boolean usePIT, Set<String> attributeDefIds) pass in the attribute def ids that were found by inputs, and add the attribute def ids found by the attribute assign resultsvoid
fillInGroups
(boolean usePIT, Set<String> groupIds, boolean includeGroupDetail) pass in the group ids that were found by inputs, and add the group id found by the attribute assign resultsvoid
fillInSubjects
(WsSubjectLookup[] subjectLookups, Set<String> extraMemberIds, boolean includeSubjectDetail, String[] theSubjectAttributeNames) pass in the subject lookups that were found by inputs, and add the subject ids found by the attribute assign resultsget the response metadataget the result metadataString[]
attributes of subjects returned, in same order as the datathe assignments being queriedattribute def names referenced in the assignments or inputs (and able to read)attribute def references in the assignments or inputs (and able to be read)WsGroup[]
the permissions being queriedsubjects that are in the resultsvoid
setResponseMetadata
(WsResponseMeta responseMetadata1) void
setResultMetadata
(WsResultMeta resultMetadata1) void
setSubjectAttributeNames
(String[] attributeNamesa) attributes of subjects returned, in same order as the datavoid
setWsAttributeAssigns
(WsAttributeAssign[] wsAttributeAssigns1) the assignments being queriedvoid
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 queriedvoid
setWsSubjects
(WsSubject[] wsSubjects1) subjects that are in the resultsvoid
sort the assignments by def, name, etc
-
Constructor Details
-
WsGetPermissionAssignmentsResults
public WsGetPermissionAssignmentsResults()
-
-
Method Details
-
getWsAttributeDefs
attribute def references in the assignments or inputs (and able to be read)- Returns:
- attribute defs
-
setWsAttributeDefs
attribute def references in the assignments or inputs (and able to be read)- Parameters:
wsAttributeDefs1
-
-
getWsAttributeDefNames
attribute def names referenced in the assignments or inputs (and able to read)- Returns:
- attribute def names
-
setWsAttributeDefNames
attribute def names referenced in the assignments or inputs (and able to read)- Parameters:
wsAttributeDefNames1
-
-
getWsPermissionAssigns
the permissions being queried- Returns:
- the permissions
-
setWsPermissionAssigns
the permissions being queried- Parameters:
wsPermissionAssigns1
-
-
getWsAttributeAssigns
the assignments being queried- Returns:
- the assignments being queried
-
setWsAttributeAssigns
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, String theError, Exception e) prcess an exception, log, etc- Parameters:
wsGetPermissionAssignmentsResultsCodeOverride
-theError
-e
-
-
getSubjectAttributeNames
attributes of subjects returned, in same order as the data- Returns:
- the attributeNames
-
setSubjectAttributeNames
attributes of subjects returned, in same order as the data- Parameters:
attributeNamesa
- the attributeNames to set
-
getResultMetadata
Description copied from interface:WsResponseBean
get the result metadata- Specified by:
getResultMetadata
in interfaceResultMetadataHolder
- Specified by:
getResultMetadata
in interfaceWsResponseBean
- Returns:
- the resultMetadata
-
getResponseMetadata
Description copied from interface:WsResponseBean
get the response metadata- Specified by:
getResponseMetadata
in interfaceWsResponseBean
- Returns:
- the response metadata
- See Also:
-
setResultMetadata
- Parameters:
resultMetadata1
- the resultMetadata to set
-
setResponseMetadata
- Parameters:
responseMetadata1
- the responseMetadata to set
-
getWsGroups
- Returns:
- the wsGroups
-
getWsSubjects
subjects that are in the results- Returns:
- the subjects
-
setWsGroups
- Parameters:
wsGroup1
- the wsGroups to set
-
setWsSubjects
subjects that are in the results- Parameters:
wsSubjects1
-
-
assignResult
public void assignResult(Set<PermissionEntry> permissionEntries, Map<PermissionEntry, Set<PermissionLimitBean>> permissionLimitMap, 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
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
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, Set<String> extraMemberIds, boolean includeSubjectDetail, 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
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, Timestamp pointInTimeFrom, Timestamp pointInTimeTo, boolean includeAssignmentsOnAssignments, 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 returnedenabledBoolean
-attributeDefNameIds
-
-