Class WsAssignAttributesBatchResults
java.lang.Object
edu.internet2.middleware.grouper.ws.coresoap.WsAssignAttributesBatchResults
- All Implemented Interfaces:
WsResponseBean
,ResultMetadataHolder
public class WsAssignAttributesBatchResults
extends Object
implements WsResponseBean, ResultMetadataHolder
results for assigning attributes call. result code: code of the result for this attribute assignment overall SUCCESS: means everything ok INSUFFICIENT_PRIVILEGES: problem with some input where privileges are not sufficient 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
addResult
(WsAssignAttributesResults wsAssignAttributesResults, String theError, Exception e, int index) add a result to the list of results, and keep track of all the related objectsvoid
assignResult
(List<WsAssignAttributeBatchResult> attributeAssignBatchResults, String[] theSubjectAttributeNames) assign resultsvoid
assignResultCode
(WsAssignAttributesBatchResults.WsAssignAttributesBatchResultsCode getAttributeAssignmentsResultCode) assign the code from the enumvoid
assignResultCodeException
(WsAssignAttributesBatchResults.WsAssignAttributesBatchResultsCode wsAssignAttributesBatchResultsCode, String theError, Exception e) process an exception, log, etcget the response metadataget the result metadataString[]
attributes of subjects returned, in same order as the datathe assignment results 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[]
results for each assignment sent inWsStem[]
stems that are in the resultssubjects 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
setWsAssignAttributeBatchResultArray
(WsAssignAttributeBatchResult[] wsAttributeAssignResults1) the assignment results 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
setWsMemberships
(WsMembership[] results1) results for each assignment sent invoid
setWsStems
(WsStem[] wsStems1) stems that are in the resultsvoid
setWsSubjects
(WsSubject[] wsSubjects1) subjects that are in the resultsvoid
sort the results by assignmentboolean
tallyResults
(GrouperTransactionType grouperTransactionType, String theSummary) make sure if there is an error, to record that as an error
-
Constructor Details
-
WsAssignAttributesBatchResults
public WsAssignAttributesBatchResults()
-
-
Method Details
-
tallyResults
make sure if there is an error, to record that as an error- Parameters:
grouperTransactionType
- for requesttheSummary
-- Returns:
- true if success, false if not
-
assignResultCodeException
public void assignResultCodeException(WsAssignAttributesBatchResults.WsAssignAttributesBatchResultsCode wsAssignAttributesBatchResultsCode, String theError, Exception e) process an exception, log, etc- Parameters:
wsAssignAttributesBatchResultsCode
-theError
-e
-
-
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
-
-
getWsAssignAttributeBatchResultArray
the assignment results being queried- Returns:
- the assignments being queried
-
setWsAssignAttributeBatchResultArray
public void setWsAssignAttributeBatchResultArray(WsAssignAttributeBatchResult[] wsAttributeAssignResults1) the assignment results being queried- Parameters:
wsAttributeAssignResults1
-
-
assignResultCode
public void assignResultCode(WsAssignAttributesBatchResults.WsAssignAttributesBatchResultsCode getAttributeAssignmentsResultCode) assign the code from the enum- Parameters:
getAttributeAssignmentsResultCode
-
-
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
-
getWsStems
stems that are in the results- Returns:
- stems
-
setWsStems
stems that are in the results- Parameters:
wsStems1
-
-
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
-
getWsMemberships
results for each assignment sent in- Returns:
- the results
-
getWsSubjects
subjects that are in the results- Returns:
- the subjects
-
setWsGroups
- Parameters:
wsGroup1
- the wsGroups to set
-
setWsMemberships
results for each assignment sent in- Parameters:
results1
- the results to set
-
setWsSubjects
subjects that are in the results- Parameters:
wsSubjects1
-
-
assignResult
public void assignResult(List<WsAssignAttributeBatchResult> attributeAssignBatchResults, String[] theSubjectAttributeNames) assign results- Parameters:
attributeAssignBatchResults
-theSubjectAttributeNames
-
-
sortResults
public void sortResults()sort the results by assignment -
addResult
public void addResult(WsAssignAttributesResults wsAssignAttributesResults, String theError, Exception e, int index) add a result to the list of results, and keep track of all the related objects- Parameters:
wsAssignAttributesResults
-theError
-e
-index
-
-