Class WsAttributeDefNameLookup

java.lang.Object
edu.internet2.middleware.grouper.ws.coresoap.WsAttributeDefNameLookup
All Implemented Interfaces:
GrouperWsToStringCompact

public class WsAttributeDefNameLookup extends Object implements GrouperWsToStringCompact
 Class to lookup an attribute def name via web service
 
 developers make sure each setter calls this.clearAttributeDefName();
 
  • Constructor Details

    • WsAttributeDefNameLookup

      public WsAttributeDefNameLookup()
    • WsAttributeDefNameLookup

      public WsAttributeDefNameLookup(String attributeDefNameName1, String uuid1)
      Parameters:
      attributeDefNameName1 -
      uuid1 -
    • WsAttributeDefNameLookup

      public WsAttributeDefNameLookup(String attributeDefNameName1, String uuid1, String idIndex1)
      Parameters:
      attributeDefNameName1 -
      uuid1 -
      idIndex1 -
  • Method Details

    • createIfNeeded

      public static WsAttributeDefNameLookup createIfNeeded(String uuid, String name)
      create if any not null, otherwise null
      Parameters:
      uuid -
      name -
      Returns:
      the lookup
    • getIdIndex

      public String getIdIndex()
      integer ID for object
      Returns:
      the id
    • setIdIndex

      public void setIdIndex(String idIndex1)
      integer ID for object
      Parameters:
      idIndex1 -
    • blank

      public boolean blank()
      see if blank
      Returns:
      true if blank
    • hasData

      public boolean hasData()
      see if this attributeDefName lookup has data
      Returns:
      true if it has data
    • retrieveAttributeDefName

      public AttributeDefName retrieveAttributeDefName()
       
       Note: this is not a javabean property because we dont want it in the web service
       
      Returns:
      the attributeDefName
    • retrievePITAttributeDefNames

      public Set<PITAttributeDefName> retrievePITAttributeDefNames()
       
       Note: this is not a javabean property because we dont want it in the web service
       
      Returns:
      the pit attributeDefs
    • retrieveAttributeDefNameFindResult

      public WsAttributeDefNameLookup.AttributeDefNameFindResult retrieveAttributeDefNameFindResult()
       
       Note: this is not a javabean property because we dont want it in the web service
       
      Returns:
      the attributeDefNameFindResult, this is never null
    • toString

      public String toString()
      make sure this is an explicit toString
      Overrides:
      toString in class Object
    • retrieveAttributeDefNameIfNeeded

      public void retrieveAttributeDefNameIfNeeded(GrouperSession grouperSession)
      retrieve the attributeDefName for this lookup if not looked up yet. pass in a grouper session
      Parameters:
      grouperSession -
    • retrieveAttributeDefNameIfNeeded

      public AttributeDefName retrieveAttributeDefNameIfNeeded(GrouperSession grouperSession, String invalidQueryReason) throws WsInvalidQueryException
      retrieve the attributeDefName 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 attributeDefName
      Throws:
      WsInvalidQueryException - if there is a problem, and if the invalidQueryReason is set
    • retrievePITAttributeDefNamesIfNeeded

      public Set<PITAttributeDefName> retrievePITAttributeDefNamesIfNeeded(String invalidQueryReason, Timestamp pointInTimeFrom, Timestamp pointInTimeTo) throws WsInvalidQueryException
      retrieve the pit attribute def names for this lookup if not looked up yet.
      Parameters:
      invalidQueryReason - is the text to go in the WsInvalidQueryException
      pointInTimeFrom -
      pointInTimeTo -
      Returns:
      the pit attribute def name
      Throws:
      WsInvalidQueryException - if there is a problem, and if the invalidQueryReason is set
    • getUuid

      public String getUuid()
      uuid of the attributeDefName to find
      Returns:
      the uuid
    • setUuid

      public void setUuid(String uuid1)
      uuid of the attributeDefName to find
      Parameters:
      uuid1 - the uuid to set
    • getName

      public String getName()
      name of the attributeDefName to find (includes stems, e.g. stem1:stem2:attributeDefNameName
      Returns:
      the theName
    • setName

      public void setName(String theName)
      name of the attributeDefName to find (includes stems, e.g. stem1:stem2:attributeDefNameName
      Parameters:
      theName - the theName to set
    • convertToAttributeDefNameIds

      public static Set<String> convertToAttributeDefNameIds(GrouperSession grouperSession, WsAttributeDefNameLookup[] wsAttributeDefNameLookups, StringBuilder errorMessage, AttributeDefType attributeDefType, boolean usePIT, Timestamp pointInTimeFrom, Timestamp pointInTimeTo)
      convert attributeDefName lookups to attributeDefName ids
      Parameters:
      grouperSession -
      wsAttributeDefNameLookups -
      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
    • convertToAttributeDefNameIds

      public static Set<String> convertToAttributeDefNameIds(GrouperSession grouperSession, WsAttributeDefNameLookup[] wsAttributeDefNameLookups, StringBuilder errorMessage, AttributeDefType attributeDefType, boolean usePIT, Timestamp pointInTimeFrom, Timestamp pointInTimeTo, int[] lookupCount)
      convert attributeDefName lookups to attributeDefName ids
      Parameters:
      grouperSession -
      wsAttributeDefNameLookups -
      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 attributeDefName ids
    • toStringCompact

      public String toStringCompact()
      make sure this is an explicit toString
      Specified by:
      toStringCompact in interface GrouperWsToStringCompact
      Returns:
      return a compact to string