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

java.lang.Object
  extended by edu.internet2.middleware.grouper.ws.coresoap.WsStemLookup

public class WsStemLookup
extends Object

 Class to lookup a stem via web service
 
 developers make sure each setter calls this.clearSubject();
 TODO: add in extensions in the query
 

Author:
mchyzer

Nested Class Summary
static class WsStemLookup.StemFindResult
          result of stem find
 
Constructor Summary
WsStemLookup()
           
WsStemLookup(String stemName1, String uuid1)
           
 
Method Summary
 boolean blank()
          see if blank
static Set<String> convertToStemIds(GrouperSession grouperSession, WsStemLookup[] wsStemLookups, StringBuilder errorMessage, int[] lookupCount)
          convert stem lookups to stem ids
 String getStemName()
          name of the stem to find (includes stems, e.g.
 String getUuid()
          uuid of the stem to find
 boolean hasData()
          see if this stem lookup has data
 Stem retrieveStem()
           Note: this is not a javabean property because we dont want it in the web service
 WsStemLookup.StemFindResult retrieveStemFindResult()
           Note: this is not a javabean property because we dont want it in the web service
 void retrieveStemIfNeeded(GrouperSession grouperSession, boolean exceptionOnNull)
          pass in a grouper session
 void setStemName(String theName)
          name of the stem to find (includes stems, e.g.
 void setUuid(String uuid1)
          uuid of the stem to find
 String toString()
          make sure this is an explicit toString
 String toStringCompact()
          make sure this is an explicit toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WsStemLookup

public WsStemLookup()

WsStemLookup

public WsStemLookup(String stemName1,
                    String uuid1)
Parameters:
stemName1 -
uuid1 -
Method Detail

blank

public boolean blank()
see if blank

Returns:
true if blank

hasData

public boolean hasData()
see if this stem lookup has data

Returns:
true if it has data

retrieveStem

public Stem retrieveStem()
 
 Note: this is not a javabean property because we dont want it in the web service
 

Returns:
the stem

retrieveStemFindResult

public WsStemLookup.StemFindResult retrieveStemFindResult()
 
 Note: this is not a javabean property because we dont want it in the web service
 

Returns:
the subjectFindResult, this is never null

toString

public String toString()
make sure this is an explicit toString

Overrides:
toString in class Object

retrieveStemIfNeeded

public void retrieveStemIfNeeded(GrouperSession grouperSession,
                                 boolean exceptionOnNull)
pass in a grouper session

Parameters:
grouperSession -
exceptionOnNull - excdeption if nothing in stem

getUuid

public String getUuid()
uuid of the stem to find

Returns:
the uuid

setUuid

public void setUuid(String uuid1)
uuid of the stem to find

Parameters:
uuid1 - the uuid to set

getStemName

public String getStemName()
name of the stem to find (includes stems, e.g. stem1:stem2:stemName

Returns:
the theName

setStemName

public void setStemName(String theName)
name of the stem to find (includes stems, e.g. stem1:stem2:stemName

Parameters:
theName - the theName to set

convertToStemIds

public static Set<String> convertToStemIds(GrouperSession grouperSession,
                                           WsStemLookup[] wsStemLookups,
                                           StringBuilder errorMessage,
                                           int[] lookupCount)
convert stem lookups to stem ids

Parameters:
grouperSession -
wsStemLookups -
errorMessage -
lookupCount - is an array of size one int where 1 will be added if there are records, and no change if not
Returns:
the stem ids

toStringCompact

public String toStringCompact()
make sure this is an explicit toString

Returns:
return a compact to string