Class WsStemLookup
java.lang.Object
edu.internet2.middleware.grouper.ws.coresoap.WsStemLookup
- All Implemented Interfaces:
GrouperWsToStringCompact
Class to lookup a stem via web service developers make sure each setter calls this.clearSubject(); TODO: add in extensions in the query
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionWsStemLookup(String stemName1, String uuid1) WsStemLookup(String stemName1, String uuid1, String idIndex1) -
Method Summary
Modifier and TypeMethodDescriptionbooleanblank()see if blankconvertToStemIds(GrouperSession grouperSession, WsStemLookup[] wsStemLookups, StringBuilder errorMessage, int[] lookupCount) convert stem lookups to stem idsinteger ID for objectname of the stem to find (includes stems, e.g.getUuid()uuid of the stem to findbooleanhasData()see if this stem lookup has dataNote: this is not a javabean property because we dont want it in the web serviceNote: this is not a javabean property because we dont want it in the web servicevoidretrieveStemIfNeeded(GrouperSession grouperSession, boolean exceptionOnNull) pass in a grouper sessionvoidsetIdIndex(String idIndex1) integer ID for objectvoidsetStemName(String theName) name of the stem to find (includes stems, e.g.voiduuid of the stem to findtoString()make sure this is an explicit toStringmake sure this is an explicit toString
-
Constructor Details
-
WsStemLookup
public WsStemLookup() -
WsStemLookup
- Parameters:
stemName1-uuid1-
-
WsStemLookup
- Parameters:
stemName1-uuid1-idIndex1-
-
-
Method Details
-
getIdIndex
integer ID for object- Returns:
- the id
-
setIdIndex
integer ID for object- Parameters:
idIndex1-
-
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
Note: this is not a javabean property because we dont want it in the web service
- Returns:
- the stem
-
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
make sure this is an explicit toString -
retrieveStemIfNeeded
pass in a grouper session- Parameters:
grouperSession-exceptionOnNull- excdeption if nothing in stem
-
getUuid
uuid of the stem to find- Returns:
- the uuid
-
setUuid
uuid of the stem to find- Parameters:
uuid1- the uuid to set
-
getStemName
name of the stem to find (includes stems, e.g. stem1:stem2:stemName- Returns:
- the theName
-
setStemName
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
make sure this is an explicit toString- Specified by:
toStringCompactin interfaceGrouperWsToStringCompact- Returns:
- return a compact to string
-