Class WsAttributeDefLookup
java.lang.Object
edu.internet2.middleware.grouper.ws.coresoap.WsAttributeDefLookup
- All Implemented Interfaces:
GrouperWsToStringCompact
Class to lookup an attribute def via web service developers make sure each setter calls this.clearAttributeDef();
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
result of attribute def name find -
Constructor Summary
ConstructorDescriptionWsAttributeDefLookup
(String name1, String uuid1) WsAttributeDefLookup
(String name1, String uuid1, String idIndex1) -
Method Summary
Modifier and TypeMethodDescriptionboolean
blank()
see if blankconvertToAttributeDefIds
(GrouperSession grouperSession, WsAttributeDefLookup[] wsAttributeDefLookups, StringBuilder errorMessage, AttributeDefType attributeDefType, boolean usePIT, Timestamp pointInTimeFrom, Timestamp pointInTimeTo) convert attributeDef lookups to attributeDef idsconvertToAttributeDefIds
(GrouperSession grouperSession, WsAttributeDefLookup[] wsAttributeDefLookups, StringBuilder errorMessage, AttributeDefType attributeDefType, boolean usePIT, Timestamp pointInTimeFrom, Timestamp pointInTimeTo, int[] lookupCount) convert attributeDef lookups to attributeDef idsinteger ID for objectgetName()
name of the attributeDef to find (includes stems, e.g.getUuid()
uuid of the attributeDef to findboolean
hasData()
see if this attributeDef 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
retrieveAttributeDefIfNeeded
(GrouperSession grouperSession) retrieve the attributeDef for this lookup if not looked up yet.retrieveAttributeDefIfNeeded
(GrouperSession grouperSession, String invalidQueryReason) retrieve the attributeDef for this lookup if not looked up yet.Note: this is not a javabean property because we dont want it in the web serviceretrievePITAttributeDefsIfNeeded
(String invalidQueryReason, Timestamp pointInTimeFrom, Timestamp pointInTimeTo) retrieve the pit attribute defs for this lookup if not looked up yet.void
setIdIndex
(String idIndex1) integer ID for objectvoid
name of the attributeDef to find (includes stems, e.g.void
uuid of the attributeDef to findtoString()
make sure this is an explicit toStringmake sure this is an explicit toString
-
Constructor Details
-
WsAttributeDefLookup
public WsAttributeDefLookup() -
WsAttributeDefLookup
- Parameters:
name1
-uuid1
-
-
WsAttributeDefLookup
- Parameters:
name1
-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 attributeDef lookup has data- Returns:
- true if it has data
-
retrieveAttributeDef
Note: this is not a javabean property because we dont want it in the web service
- Returns:
- the attributeDef
-
retrievePITAttributeDefs
Note: this is not a javabean property because we dont want it in the web service
- Returns:
- the pit attributeDefs
-
retrieveAttributeDefFindResult
Note: this is not a javabean property because we dont want it in the web service
- Returns:
- the attributeDefFindResult, this is never null
-
toString
make sure this is an explicit toString -
retrieveAttributeDefIfNeeded
retrieve the attributeDef for this lookup if not looked up yet. pass in a grouper session- Parameters:
grouperSession
-
-
retrieveAttributeDefIfNeeded
public AttributeDef retrieveAttributeDefIfNeeded(GrouperSession grouperSession, String invalidQueryReason) throws WsInvalidQueryException retrieve the attributeDef 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 attributeDef
- Throws:
WsInvalidQueryException
- if there is a problem, and if the invalidQueryReason is set
-
retrievePITAttributeDefsIfNeeded
public Set<PITAttributeDef> retrievePITAttributeDefsIfNeeded(String invalidQueryReason, Timestamp pointInTimeFrom, Timestamp pointInTimeTo) throws WsInvalidQueryException retrieve the pit attribute defs for this lookup if not looked up yet.- Parameters:
invalidQueryReason
- is the text to go in the WsInvalidQueryExceptionpointInTimeFrom
-pointInTimeTo
-- Returns:
- the pit attribute def
- Throws:
WsInvalidQueryException
- if there is a problem, and if the invalidQueryReason is set
-
getUuid
uuid of the attributeDef to find- Returns:
- the uuid
-
setUuid
uuid of the attributeDef to find- Parameters:
uuid1
- the uuid to set
-
getName
name of the attributeDef to find (includes stems, e.g. stem1:stem2:attributeDef- Returns:
- the theName
-
setName
name of the attributeDef to find (includes stems, e.g. stem1:stem2:attributeDef- Parameters:
theName
- the theName to set
-
convertToAttributeDefIds
public static Set<String> convertToAttributeDefIds(GrouperSession grouperSession, WsAttributeDefLookup[] wsAttributeDefLookups, StringBuilder errorMessage, AttributeDefType attributeDefType, boolean usePIT, Timestamp pointInTimeFrom, Timestamp pointInTimeTo) convert attributeDef lookups to attributeDef ids- Parameters:
grouperSession
-wsAttributeDefLookups
-errorMessage
-attributeDefType
-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 attributeDef ids
-
convertToAttributeDefIds
public static Set<String> convertToAttributeDefIds(GrouperSession grouperSession, WsAttributeDefLookup[] wsAttributeDefLookups, StringBuilder errorMessage, AttributeDefType attributeDefType, boolean usePIT, Timestamp pointInTimeFrom, Timestamp pointInTimeTo, int[] lookupCount) convert attributeDef lookups to attributeDef ids- Parameters:
grouperSession
-wsAttributeDefLookups
-errorMessage
-attributeDefType
-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 attributeDef ids
-
toStringCompact
make sure this is an explicit toString- Specified by:
toStringCompact
in interfaceGrouperWsToStringCompact
- Returns:
- return a compact to string
-