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

java.lang.Object
  extended by edu.internet2.middleware.grouper.ws.coresoap.WsStemQueryFilter

public class WsStemQueryFilter
extends Object

this represents a query which can be and'ed or or'ed


Constructor Summary
WsStemQueryFilter()
           
 
Method Summary
 void assignGrouperSession(GrouperSession grouperSession1)
          grouper session
 String getParentStemName()
          parentStemName will return stems only in this stem
 String getParentStemNameScope()
          parentStemNameScope if searching by stem, ONE_LEVEL is for one level, ALL_IN_SUBTREE will return all in sub tree.
 String getQueryTerm()
          queryTerm if searching by query, this is a term that will be matched to name, extension, etc
 String getStemAttributeName()
          if querying, this is the attribute name, or null or search all attributes
 String getStemAttributeValue()
          stemAttributeValue if searching by query, this is a term that will be matched to
 String getStemName()
          stemName search by stem name (must match exactly), cannot use other params with this
 WsStemQueryFilter getStemQueryFilter0()
          if 'and' or 'or' this is the first stem, and if complement, this is the stem to complement
 WsStemQueryFilter getStemQueryFilter1()
          if 'and' or 'or', this is the second stem
 String getStemQueryFilterType()
          findStemType is the WsFindStemType enum for which type of find is happening: e.g.
 String getStemUuid()
          stemUuid search by stem uuid (must match exactly), cannot use other
 GrouperSession retrieveGrouperSession()
          grouper session
 Stem retrieveParentStem()
          if there is no stem, return null.
 QueryFilter retrieveQueryFilter()
          convert the query into a query filter
 WsStemQueryFilterType retrieveStemQueryFilterType()
           
 StemScope retrieveStemScope(StemScope defaultScope)
          convert the stem scope into a stem scope
 void setParentStemName(String stemName1)
          parentStemName will return stems only in this stem
 void setParentStemNameScope(String stemNameScope1)
          parentStemNameScope if searching by stem, ONE_LEVEL is for one level, ALL_IN_SUBTREE will return all in sub tree.
 void setQueryTerm(String queryTerm1)
          queryTerm if searching by query, this is a term that will be matched to name, extension, etc
 void setStemAttributeName(String attributeName1)
          if querying, this is the attribute name, or null or search all attributes
 void setStemAttributeValue(String stemAttributeValue1)
          stemAttributeValue if searching by query, this is a term that will be matched to
 void setStemName(String stemName1)
          stemName search by stem name (must match exactly), cannot use other params with this
 void setStemQueryFilter0(WsStemQueryFilter theQueryFilter0)
          if 'and' or 'or' this is the first stem, and if complement, this is the stem to complement
 void setStemQueryFilter1(WsStemQueryFilter theQueryFilter1)
          if 'and' or 'or', this is the second stem
 void setStemQueryFilterType(String findStemType1)
          findStemType is the WsFindStemType enum for which type of find is happening: e.g.
 void setStemUuid(String stemUuid1)
          stemUuid search by stem uuid (must match exactly), cannot use other
 String toString()
           
 void validate()
          validate the tree of queries
 void validateHasParentStemName()
          if there is no parent stem name, there should be
 void validateHasParentStemNameScope()
          if there is no parent stem name, there should be
 void validateHasStemAttributeName()
          if there is no attribute name, there should be
 void validateHasStemAttributeValue()
          if there is no stemAttributeValue, there should be
 void validateHasStemName()
          if there is no stem name, there should be
 void validateHasStemQueryFilter0()
          if there is no stem query filter 0, there should be
 void validateHasStemQueryFilter1()
          if there is no stem query filter 1, there should be
 void validateHasStemUuid()
          if there is no stem uuid, there should be
 void validateNoParentStemName()
          if there is a parent stem name, there shouldnt be
 void validateNoParentStemNameScope()
          if there is a parent stem name, there shouldnt be
 void validateNoStemAttributeName()
          if there is a attribute name, there shouldnt be
 void validateNoStemAttributeValue()
          if there is a stemAttributeValue, there shouldnt be
 void validateNoStemName()
          if there is a stem name, there shouldnt be
 void validateNoStemQueryFilter0()
          if there is a stem query filter 0, there shouldnt be
 void validateNoStemQueryFilter1()
          if there is a stem query filter 1, there shouldnt be
 void validateNoStemUuid()
          if there is a stem uuid, there shouldnt be
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WsStemQueryFilter

public WsStemQueryFilter()
Method Detail

validateNoStemName

public void validateNoStemName()
if there is a stem name, there shouldnt be


validateHasStemName

public void validateHasStemName()
if there is no stem name, there should be


validateNoParentStemName

public void validateNoParentStemName()
if there is a parent stem name, there shouldnt be


validateHasParentStemName

public void validateHasParentStemName()
if there is no parent stem name, there should be


validateNoParentStemNameScope

public void validateNoParentStemNameScope()
if there is a parent stem name, there shouldnt be


validateHasParentStemNameScope

public void validateHasParentStemNameScope()
if there is no parent stem name, there should be


validateNoStemUuid

public void validateNoStemUuid()
if there is a stem uuid, there shouldnt be


validateHasStemUuid

public void validateHasStemUuid()
if there is no stem uuid, there should be


validateNoStemAttributeValue

public void validateNoStemAttributeValue()
if there is a stemAttributeValue, there shouldnt be


validateHasStemAttributeValue

public void validateHasStemAttributeValue()
if there is no stemAttributeValue, there should be


validateNoStemAttributeName

public void validateNoStemAttributeName()
if there is a attribute name, there shouldnt be


validateHasStemAttributeName

public void validateHasStemAttributeName()
if there is no attribute name, there should be


validateNoStemQueryFilter0

public void validateNoStemQueryFilter0()
if there is a stem query filter 0, there shouldnt be


validateHasStemQueryFilter0

public void validateHasStemQueryFilter0()
if there is no stem query filter 0, there should be


validateNoStemQueryFilter1

public void validateNoStemQueryFilter1()
if there is a stem query filter 1, there shouldnt be


validateHasStemQueryFilter1

public void validateHasStemQueryFilter1()
if there is no stem query filter 1, there should be


getStemQueryFilterType

public String getStemQueryFilterType()
findStemType is the WsFindStemType enum for which type of find is happening: e.g. FIND_BY_STEM_UUID, FIND_BY_STEM_NAME, FIND_BY_STEM_NAME, FIND_BY_APPROXIMATE_ATTRIBUTE, FIND_BY_ATTRIBUTE, FIND_BY_TYPE, AND, OR, MINUS;

Returns:
the findStemType

setStemQueryFilterType

public void setStemQueryFilterType(String findStemType1)
findStemType is the WsFindStemType enum for which type of find is happening: e.g. FIND_BY_STEM_UUID, FIND_BY_STEM_NAME, FIND_BY_STEM_NAME, FIND_BY_APPROXIMATE_ATTRIBUTE, FIND_BY_ATTRIBUTE, FIND_BY_TYPE, AND, OR, MINUS;

Parameters:
findStemType1 - the findStemType to set

getStemName

public String getStemName()
stemName search by stem name (must match exactly), cannot use other params with this

Returns:
the stemName

setStemName

public void setStemName(String stemName1)
stemName search by stem name (must match exactly), cannot use other params with this

Parameters:
stemName1 - the stemName to set

getParentStemName

public String getParentStemName()
parentStemName will return stems only in this stem

Returns:
the parentStemName

setParentStemName

public void setParentStemName(String stemName1)
parentStemName will return stems only in this stem

Parameters:
stemName1 - the parentStemName to set

getParentStemNameScope

public String getParentStemNameScope()
parentStemNameScope if searching by stem, ONE_LEVEL is for one level, ALL_IN_SUBTREE will return all in sub tree. Default is ALL_IN_SUBTREE

Returns:
the parentStemNameScope

retrieveStemScope

public StemScope retrieveStemScope(StemScope defaultScope)
convert the stem scope into a stem scope

Parameters:
defaultScope - is the default scope
Returns:
the stem scope, or the default

setParentStemNameScope

public void setParentStemNameScope(String stemNameScope1)
parentStemNameScope if searching by stem, ONE_LEVEL is for one level, ALL_IN_SUBTREE will return all in sub tree. Default is ALL_IN_SUBTREE

Parameters:
stemNameScope1 - the parentStemNameScope to set

getStemUuid

public String getStemUuid()
stemUuid search by stem uuid (must match exactly), cannot use other

Returns:
the stemUuid

setStemUuid

public void setStemUuid(String stemUuid1)
stemUuid search by stem uuid (must match exactly), cannot use other

Parameters:
stemUuid1 - the stemUuid to set

getQueryTerm

public String getQueryTerm()
queryTerm if searching by query, this is a term that will be matched to name, extension, etc

Returns:
the queryTerm

setQueryTerm

public void setQueryTerm(String queryTerm1)
queryTerm if searching by query, this is a term that will be matched to name, extension, etc

Parameters:
queryTerm1 - the queryTerm to set

getStemAttributeName

public String getStemAttributeName()
if querying, this is the attribute name, or null or search all attributes

Returns:
the attributeName

setStemAttributeName

public void setStemAttributeName(String attributeName1)
if querying, this is the attribute name, or null or search all attributes

Parameters:
attributeName1 - the attributeName to set

getStemQueryFilter0

public WsStemQueryFilter getStemQueryFilter0()
if 'and' or 'or' this is the first stem, and if complement, this is the stem to complement

Returns:
the stemQueryFilter0

setStemQueryFilter0

public void setStemQueryFilter0(WsStemQueryFilter theQueryFilter0)
if 'and' or 'or' this is the first stem, and if complement, this is the stem to complement

Parameters:
theQueryFilter0 - the stemQueryFilter0 to set

getStemQueryFilter1

public WsStemQueryFilter getStemQueryFilter1()
if 'and' or 'or', this is the second stem

Returns:
the stemQueryFilter1

setStemQueryFilter1

public void setStemQueryFilter1(WsStemQueryFilter theQueryFilter1)
if 'and' or 'or', this is the second stem

Parameters:
theQueryFilter1 - the stemQueryFilter1 to set

retrieveQueryFilter

public QueryFilter retrieveQueryFilter()
convert the query into a query filter

Returns:
the query filter

retrieveStemQueryFilterType

public WsStemQueryFilterType retrieveStemQueryFilterType()
Returns:

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()

validate

public void validate()
validate the tree of queries


retrieveParentStem

public Stem retrieveParentStem()
if there is no stem, return null. if there is a stem, then find it, and return it. If not found, then throw WsInvalidQueryException

Returns:
the stem or null

retrieveGrouperSession

public GrouperSession retrieveGrouperSession()
grouper session

Returns:
the grouperSession

assignGrouperSession

public void assignGrouperSession(GrouperSession grouperSession1)
grouper session

Parameters:
grouperSession1 - the grouperSession to set

getStemAttributeValue

public String getStemAttributeValue()
stemAttributeValue if searching by query, this is a term that will be matched to

Returns:
the stemAttributeValue

setStemAttributeValue

public void setStemAttributeValue(String stemAttributeValue1)
stemAttributeValue if searching by query, this is a term that will be matched to

Parameters:
stemAttributeValue1 - the stemAttributeValue to set