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

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

public class WsAddMemberResult
extends java.lang.Object
implements ResultMetadataHolder

Result of one subject being added to a group. The number of subjects will equal the number of subjects sent in to the method

Author:
mchyzer

Nested Class Summary
static class WsAddMemberResult.WsAddMemberResultCode
          result code of a request
 
Constructor Summary
WsAddMemberResult()
           
 
Method Summary
 void assignResultCode(WsAddMemberResult.WsAddMemberResultCode addMemberResultCode)
          assign the code from the enum
 void assignResultCodeException(java.lang.Exception e, WsSubjectLookup wsSubjectLookup1)
          assign a resultcode of exception, and process/log the exception
 WsResultMeta getResultMetadata()
          get the result metadata
 WsSubject getWsSubject()
          subject that was added
 void processSubject(WsSubjectLookup wsSubjectLookup1, java.lang.String[] subjectAttributeNames)
          assign the code from the enum
 WsAddMemberResult.WsAddMemberResultCode resultCode()
          convert string to result code
 void setResultMetadata(WsResultMeta resultMetadata1)
           
 void setWsSubject(WsSubject wsSubject1)
          subject that was added
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WsAddMemberResult

public WsAddMemberResult()
Method Detail

getWsSubject

public WsSubject getWsSubject()
subject that was added

Returns:
the subjectId

setWsSubject

public void setWsSubject(WsSubject wsSubject1)
subject that was added

Parameters:
wsSubject1 - the wsSubject1 to set

resultCode

public WsAddMemberResult.WsAddMemberResultCode resultCode()
convert string to result code

Returns:
the result code

assignResultCode

public void assignResultCode(WsAddMemberResult.WsAddMemberResultCode addMemberResultCode)
assign the code from the enum

Parameters:
addMemberResultCode -

assignResultCodeException

public void assignResultCodeException(java.lang.Exception e,
                                      WsSubjectLookup wsSubjectLookup1)
assign a resultcode of exception, and process/log the exception

Parameters:
e -
wsSubjectLookup1 -

processSubject

public void processSubject(WsSubjectLookup wsSubjectLookup1,
                           java.lang.String[] subjectAttributeNames)
assign the code from the enum

Parameters:
wsSubjectLookup1 -
subjectAttributeNames -

getResultMetadata

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

Specified by:
getResultMetadata in interface ResultMetadataHolder
Returns:
the resultMetadata

setResultMetadata

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