edu.internet2.middleware.grouper.ws.coresoap
Class WsAttributeAssignLookup

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

public class WsAttributeAssignLookup
extends java.lang.Object
implements GrouperWsToStringCompact

 Class to lookup an attribute assignment via web service
 
 developers make sure each setter calls this.clearAttributeAssignment();
 

Author:
mchyzer

Nested Class Summary
static class WsAttributeAssignLookup.AttributeAssignResult
          result of attribute def name find
 
Constructor Summary
WsAttributeAssignLookup()
           
WsAttributeAssignLookup(java.lang.String uuid1)
           
WsAttributeAssignLookup(java.lang.String uuid1, java.lang.String batchIndex1)
           
 
Method Summary
 boolean blank()
          see if blank
static java.util.Set<java.lang.String> convertToAttributeAssignIds(GrouperSession grouperSession, WsAttributeAssignLookup[] wsAttributeAssignLookups, java.lang.StringBuilder errorMessage)
          convert attributeAssign lookups to attributeAssign ids
static java.util.Set<java.lang.String> convertToAttributeAssignIds(GrouperSession grouperSession, WsAttributeAssignLookup[] wsAttributeAssignLookups, java.lang.StringBuilder errorMessage, int[] lookupCount)
          convert attributeAssign lookups to attributeAssign ids
static java.util.Set<java.lang.String> convertToAttributeAssignIds(GrouperSession grouperSession, WsAttributeAssignLookup[] wsAttributeAssignLookups, java.lang.StringBuilder errorMessage, int[] lookupCount, java.lang.String[] backReferenceAttributeAssignIds)
          convert attributeAssign lookups to attributeAssign ids
 java.lang.String getBatchIndex()
          if there is a batch request, and this attribute assignment refers to a previously sent assignment, this is the index (0 indexed)
 java.lang.String getUuid()
          uuid of the attributeAssign to find
 boolean hasData()
          see if this attributeAssign lookup has data
 AttributeAssign retrieveAttributeAssign()
           Note: this is not a javabean property because we dont want it in the web service
 WsAttributeAssignLookup.AttributeAssignResult retrieveAttributeAssignFindResult()
           Note: this is not a javabean property because we dont want it in the web service
 void retrieveAttributeAssignIfNeeded(GrouperSession grouperSession)
          retrieve the attributeAssign for this lookup if not looked up yet.
 AttributeAssign retrieveAttributeAssignIfNeeded(GrouperSession grouperSession, java.lang.String invalidQueryReason, java.lang.String[] backReferenceAttributeAssignIds)
          retrieve the attributeAssign for this lookup if not looked up yet.
 void setBatchIndex(java.lang.String theIndex)
          if there is a batch request, and this attribute assignment refers to a previously sent assignment, this is the index (0 indexed)
 void setUuid(java.lang.String uuid1)
          uuid of the attributeAssign to find
 java.lang.String toString()
          make sure this is an explicit toString
 java.lang.String toStringCompact()
          make sure this is an explicit toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WsAttributeAssignLookup

public WsAttributeAssignLookup()

WsAttributeAssignLookup

public WsAttributeAssignLookup(java.lang.String uuid1,
                               java.lang.String batchIndex1)
Parameters:
uuid1 -
batchIndex1 -

WsAttributeAssignLookup

public WsAttributeAssignLookup(java.lang.String uuid1)
Parameters:
attributeAssign1 -
uuid1 -
Method Detail

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 java.lang.String toString()
make sure this is an explicit toString

Overrides:
toString in class java.lang.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,
                                                       java.lang.String invalidQueryReason,
                                                       java.lang.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 java.lang.String getUuid()
uuid of the attributeAssign to find

Returns:
the uuid

setUuid

public void setUuid(java.lang.String uuid1)
uuid of the attributeAssign to find

Parameters:
uuid1 - the uuid to set

convertToAttributeAssignIds

public static java.util.Set<java.lang.String> convertToAttributeAssignIds(GrouperSession grouperSession,
                                                                          WsAttributeAssignLookup[] wsAttributeAssignLookups,
                                                                          java.lang.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 java.util.Set<java.lang.String> convertToAttributeAssignIds(GrouperSession grouperSession,
                                                                          WsAttributeAssignLookup[] wsAttributeAssignLookups,
                                                                          java.lang.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 java.util.Set<java.lang.String> convertToAttributeAssignIds(GrouperSession grouperSession,
                                                                          WsAttributeAssignLookup[] wsAttributeAssignLookups,
                                                                          java.lang.StringBuilder errorMessage,
                                                                          int[] lookupCount,
                                                                          java.lang.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 java.lang.String toStringCompact()
make sure this is an explicit toString

Specified by:
toStringCompact in interface GrouperWsToStringCompact
Returns:
return a compact to string

getBatchIndex

public java.lang.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(java.lang.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