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

java.lang.Object
  extended by edu.internet2.middleware.grouper.ws.soap.WsAttributeAssignLookup

public class WsAttributeAssignLookup
extends Object

 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(String uuid1)
           
 
Method Summary
 boolean blank()
          see if blank
static Set<String> convertToAttributeAssignIds(GrouperSession grouperSession, WsAttributeAssignLookup[] wsAttributeAssignLookups, StringBuilder errorMessage)
          convert attributeAssign lookups to attributeAssign ids
static Set<String> convertToAttributeAssignIds(GrouperSession grouperSession, WsAttributeAssignLookup[] wsAttributeAssignLookups, StringBuilder errorMessage, int[] lookupCount)
          convert attributeAssign lookups to attributeAssign ids
 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, String invalidQueryReason)
          retrieve the attributeAssign for this lookup if not looked up yet.
 void setUuid(String uuid1)
          uuid of the attributeAssign to find
 String toString()
          make sure this is an explicit toString
 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(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 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)
                                                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
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
Returns:
the membership ids

toStringCompact

public String toStringCompact()
make sure this is an explicit toString

Returns:
return a compact to string