Class WsGroupLookup
java.lang.Object
edu.internet2.middleware.grouper.ws.coresoap.WsGroupLookup
- All Implemented Interfaces:
GrouperWsToStringCompact
Class to lookup a group via web service developers make sure each setter calls this.clearGroup();
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionWsGroupLookup
(WsGroup wsGroup) WsGroupLookup
(String groupName1, String uuid1) WsGroupLookup
(String groupName1, String uuid1, String idIndex1) -
Method Summary
Modifier and TypeMethodDescriptionboolean
blank()
see if blankconvertToGroupIds
(GrouperSession grouperSession, WsGroupLookup[] wsGroupLookups, StringBuilder errorMessage, TypeOfGroup typeOfGroup, boolean usePIT, Timestamp pointInTimeFrom, Timestamp pointInTimeTo) convert group lookups to group idsconvertToGroupIds
(GrouperSession grouperSession, WsGroupLookup[] wsGroupLookups, StringBuilder errorMessage, TypeOfGroup typeOfGroup, boolean usePIT, Timestamp pointInTimeFrom, Timestamp pointInTimeTo, int[] lookupCount) convert group lookups to group idsname of the group to find (includes stems, e.g.integer ID for objectgetUuid()
uuid of the group to findboolean
hasData()
see if this group 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 servicevoid
retrieveGroupIfNeeded
(GrouperSession grouperSession) retrieve the group for this lookup if not looked up yet.retrieveGroupIfNeeded
(GrouperSession grouperSession, String invalidQueryReason) retrieve the group for this lookup if not looked up yet.Note: this is not a javabean property because we dont want it in the web serviceretrievePITGroupsIfNeeded
(String invalidQueryReason, Timestamp pointInTimeFrom, Timestamp pointInTimeTo) retrieve the pit groups for this lookup if not looked up yet.void
setGroupName
(String theName) name of the group to find (includes stems, e.g.void
setIdIndex
(String idIndex1) integer ID for objectvoid
uuid of the group to findtoString()
make sure this is an explicit toStringmake sure this is an explicit toString
-
Constructor Details
-
WsGroupLookup
- Parameters:
wsGroup
-
-
WsGroupLookup
public WsGroupLookup() -
WsGroupLookup
- Parameters:
groupName1
-uuid1
-
-
WsGroupLookup
- Parameters:
groupName1
-uuid1
-idIndex1
-
-
-
Method Details
-
getIdIndex
integer ID for object- Returns:
- the id
-
setIdIndex
integer ID for object- Parameters:
idIndex1
-
-
convertToGroupIds
public static Set<String> convertToGroupIds(GrouperSession grouperSession, WsGroupLookup[] wsGroupLookups, StringBuilder errorMessage, TypeOfGroup typeOfGroup, boolean usePIT, Timestamp pointInTimeFrom, Timestamp pointInTimeTo) convert group lookups to group ids- Parameters:
grouperSession
-wsGroupLookups
-errorMessage
-typeOfGroup
-usePIT
-pointInTimeFrom
-pointInTimeTo
-lookupCount
- is an array of size one int where 1 will be added if there are records, and no change if not- Returns:
- the group ids
-
convertToGroupIds
public static Set<String> convertToGroupIds(GrouperSession grouperSession, WsGroupLookup[] wsGroupLookups, StringBuilder errorMessage, TypeOfGroup typeOfGroup, boolean usePIT, Timestamp pointInTimeFrom, Timestamp pointInTimeTo, int[] lookupCount) convert group lookups to group ids- Parameters:
grouperSession
-wsGroupLookups
-errorMessage
-typeOfGroup
-usePIT
-pointInTimeFrom
-pointInTimeTo
-lookupCount
- is an array of size one int where 1 will be added if there are records, and no change if not- Returns:
- the group ids
-
blank
public boolean blank()see if blank- Returns:
- true if blank
-
hasData
public boolean hasData()see if this group lookup has data- Returns:
- true if it has data
-
retrieveGroup
Note: this is not a javabean property because we dont want it in the web service
- Returns:
- the group
-
retrievePITGroups
Note: this is not a javabean property because we dont want it in the web service
- Returns:
- the pit groups
-
retrieveGroupFindResult
Note: this is not a javabean property because we dont want it in the web service
- Returns:
- the groupFindResult, this is never null
-
toString
make sure this is an explicit toString -
toStringCompact
make sure this is an explicit toString- Specified by:
toStringCompact
in interfaceGrouperWsToStringCompact
- Returns:
- return a compact to string
-
retrieveGroupIfNeeded
retrieve the group for this lookup if not looked up yet. pass in a grouper session- Parameters:
grouperSession
-
-
retrieveGroupIfNeeded
public Group retrieveGroupIfNeeded(GrouperSession grouperSession, String invalidQueryReason) throws WsInvalidQueryException retrieve the group for this lookup if not looked up yet. pass in a grouper session- Parameters:
grouperSession
-invalidQueryReason
- is the text to go in the WsInvalidQueryException- Returns:
- the group
- Throws:
WsInvalidQueryException
- if there is a problem, and if the invalidQueryReason is set
-
retrievePITGroupsIfNeeded
public Set<PITGroup> retrievePITGroupsIfNeeded(String invalidQueryReason, Timestamp pointInTimeFrom, Timestamp pointInTimeTo) throws WsInvalidQueryException retrieve the pit groups for this lookup if not looked up yet.- Parameters:
invalidQueryReason
- is the text to go in the WsInvalidQueryExceptionpointInTimeFrom
-pointInTimeTo
-- Returns:
- the pit group
- Throws:
WsInvalidQueryException
- if there is a problem, and if the invalidQueryReason is set
-
getUuid
uuid of the group to find- Returns:
- the uuid
-
setUuid
uuid of the group to find- Parameters:
uuid1
- the uuid to set
-
getGroupName
name of the group to find (includes stems, e.g. stem1:stem2:groupName- Returns:
- the theName
-
setGroupName
name of the group to find (includes stems, e.g. stem1:stem2:groupName- Parameters:
theName
- the theName to set
-