edu.internet2.middleware.grouper.webservices
Class WsFindGroupsResults

java.lang.Object
  extended by edu.internet2.middleware.grouper.webservices.WsFindGroupsResults

public class WsFindGroupsResults
extends Object

returned from the group find query

Author:
mchyzer

Nested Class Summary
static class WsFindGroupsResults.WsFindGroupsResultCode
          result code of a request
 
Constructor Summary
WsFindGroupsResults()
           
 
Method Summary
 void assignGroupResult(edu.internet2.middleware.grouper.Group group)
          put a group in the results
 void assignGroupResult(Set<edu.internet2.middleware.grouper.Group> groupSet)
          put a group in the results
 void assignResultCode(WsFindGroupsResults.WsFindGroupsResultCode wsFindGroupsResultCode)
          assign the code from the enum
 WsGroupResult[] getGroupResults()
          has 0 to many groups that match the query by example
 String getResultCode()
           code of the result for this subject SUCCESS: means everything ok SUBJECT_NOT_FOUND: cant find the subject SUBJECT_DUPLICATE: found multiple subjects
 String getResultMessage()
          friendly message that could be audited or sent to a UI
 String getSuccess()
          T or F as to whether it was a successful assignment
 void setGroupResults(WsGroupResult[] groupResults1)
          has 0 to many groups that match the query by example
 void setResultCode(String resultCode1)
           code of the result for this subject SUCCESS: means everything ok SUBJECT_NOT_FOUND: cant find the subject SUBJECT_DUPLICATE: found multiple subjects
 void setResultMessage(String errorMessage)
          friendly message that could be audited or sent to a UI
 void setSuccess(String success1)
          T or F as to whether it was a successful assignment
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WsFindGroupsResults

public WsFindGroupsResults()
Method Detail

assignResultCode

public void assignResultCode(WsFindGroupsResults.WsFindGroupsResultCode wsFindGroupsResultCode)
assign the code from the enum

Parameters:
wsFindGroupsResultCode -

assignGroupResult

public void assignGroupResult(edu.internet2.middleware.grouper.Group group)
put a group in the results

Parameters:
group -

assignGroupResult

public void assignGroupResult(Set<edu.internet2.middleware.grouper.Group> groupSet)
put a group in the results

Parameters:
groupSet -

getGroupResults

public WsGroupResult[] getGroupResults()
has 0 to many groups that match the query by example

Returns:
the groupResults

setGroupResults

public void setGroupResults(WsGroupResult[] groupResults1)
has 0 to many groups that match the query by example

Parameters:
groupResults1 - the groupResults to set

getSuccess

public String getSuccess()
T or F as to whether it was a successful assignment

Returns:
the success

setSuccess

public void setSuccess(String success1)
T or F as to whether it was a successful assignment

Parameters:
success1 - the success to set

getResultCode

public String getResultCode()
 code of the result for this subject
 SUCCESS: means everything ok
 SUBJECT_NOT_FOUND: cant find the subject
 SUBJECT_DUPLICATE: found multiple subjects
  
 

Returns:
the resultCode

setResultCode

public void setResultCode(String resultCode1)
 code of the result for this subject
 SUCCESS: means everything ok
 SUBJECT_NOT_FOUND: cant find the subject
 SUBJECT_DUPLICATE: found multiple subjects
  
 

Parameters:
resultCode1 - the resultCode to set

getResultMessage

public String getResultMessage()
friendly message that could be audited or sent to a UI

Returns:
the errorMessage

setResultMessage

public void setResultMessage(String errorMessage)
friendly message that could be audited or sent to a UI

Parameters:
errorMessage - the errorMessage to set