Class WsAttributeAssignLookup

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

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

    • WsAttributeAssignLookup

      public WsAttributeAssignLookup()
    • WsAttributeAssignLookup

      public WsAttributeAssignLookup(String uuid1, String batchIndex1)
      Parameters:
      uuid1 -
      batchIndex1 -
    • WsAttributeAssignLookup

      public WsAttributeAssignLookup(String uuid1)
      Parameters:
      attributeAssign1 -
      uuid1 -
  • Method Details

    • blank

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

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

      public AttributeAssign retrieveAttributeAssign()
       
       Note: this is not a javabean property because we dont want it in the web service
       
      Returns:
      the attributeAssign
    • retrieveAttributeAssignFindResult

      public WsAttributeAssignLookup.AttributeAssignResult retrieveAttributeAssignFindResult()
       
       Note: this is not a javabean property because we dont want it in the web service
       
      Returns:
      the attributeAssignFindResult, this is never null
    • toString

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

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

      public AttributeAssign retrieveAttributeAssignIfNeeded(GrouperSession grouperSession, String invalidQueryReason, String[] backReferenceAttributeAssignIds) throws WsInvalidQueryException
      retrieve the attributeAssign for this lookup if not looked up yet. pass in a grouper session
      Parameters:
      grouperSession -
      invalidQueryReason - is the text to go in the WsInvalidQueryException
      backReferenceAttributeAssignIds - are attribute assign ids if in batch and needs backreferences
      Returns:
      the attributeAssign
      Throws:
      WsInvalidQueryException - if there is a problem, and if the invalidQueryReason is set
    • getUuid

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

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

      public static Set<String> convertToAttributeAssignIds(GrouperSession grouperSession, WsAttributeAssignLookup[] wsAttributeAssignLookups, StringBuilder errorMessage)
      convert attributeAssign lookups to attributeAssign ids
      Parameters:
      grouperSession -
      wsAttributeAssignLookups -
      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 membership ids
    • convertToAttributeAssignIds

      public static Set<String> convertToAttributeAssignIds(GrouperSession grouperSession, WsAttributeAssignLookup[] wsAttributeAssignLookups, StringBuilder errorMessage, int[] lookupCount)
      convert attributeAssign lookups to attributeAssign ids
      Parameters:
      grouperSession -
      wsAttributeAssignLookups -
      errorMessage -
      lookupCount - is an array of size one int where 1 will be added if there are records, and no change if not
      backReferenceAttributeAssignIds - are attribute assign ids if in batch and needs backreferences
      Returns:
      the membership ids
    • convertToAttributeAssignIds

      public static Set<String> convertToAttributeAssignIds(GrouperSession grouperSession, WsAttributeAssignLookup[] wsAttributeAssignLookups, StringBuilder errorMessage, int[] lookupCount, String[] backReferenceAttributeAssignIds)
      convert attributeAssign lookups to attributeAssign ids
      Parameters:
      grouperSession -
      wsAttributeAssignLookups -
      errorMessage -
      lookupCount - is an array of size one int where 1 will be added if there are records, and no change if not
      backReferenceAttributeAssignIds - are attribute assign ids if in batch and needs backreferences
      Returns:
      the membership ids
    • toStringCompact

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

      public String getBatchIndex()
      if there is a batch request, and this attribute assignment refers to a previously sent assignment, this is the index (0 indexed)
      Returns:
      the batch index
    • setBatchIndex

      public void setBatchIndex(String theIndex)
      if there is a batch request, and this attribute assignment refers to a previously sent assignment, this is the index (0 indexed)
      Parameters:
      theIndex - the index to set