Class WsQueryFilter
java.lang.Object
edu.internet2.middleware.grouper.ws.coresoap.WsQueryFilter
this represents a query which can be and'ed or or'ed
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
assignGrouperSession
(GrouperSession grouperSession1) grouper sessiontrue or null for ascending, false for descending.if querying, this is the attribute name, or null for search all attributesgroupAttributeValue if searching by query, this is a term that will be matched togroupName search by group name (must match exactly), cannot use other params with thisif searching by type, this is the type to search for.groupUuid search by group uuid (must match exactly), cannot use otherT|F default to F.field that will be sent back for cursor based pagingpage number 1 indexed if pagingpage size if pagingif 'and' or 'or' this is the first group, and if complement, this is the group to complementif 'and' or 'or', this is the second groupfindGroupType is the WsQueryFilterType enum for which type of find is happening: e.g.queryTerm if searching by query, this is a term that will be matched to name, extension, etcmust be an hql query field, e.g.stemName will return groups only in this stemstemNameScope if searching by stem, ONE_LEVEL is for one level, ALL_IN_SUBTREE will return all in sub tree.comma separated type of groups can be an enum of TypeOfGroup, e.g.true or null for ascending, false for descending.grouper sessionif there is no group type name, return null if there is a group type name, then find it, and return it.page number 1 indexed if pagingpage size if pagingconvert the query into a query filterif there is no stem, return null.retrieveStemScope
(StemScope defaultScope) convert the stem scope into a stem scopevoid
setAscending
(String ascending1) true or null for ascending, false for descending.void
setEnabled
(String enabled1) void
setGroupAttributeName
(String attributeName1) if querying, this is the attribute name, or null or search all attributesvoid
setGroupAttributeValue
(String groupAttributeValue1) groupAttributeValue if searching by query, this is a term that will be matched tovoid
setGroupName
(String groupName1) groupName search by group name (must match exactly), cannot use other params with thisvoid
setGroupTypeName
(String theType1) if searching by type, this is the type to search for.void
setGroupUuid
(String groupUuid1) groupUuid search by group uuid (must match exactly), cannot use othervoid
setPageCursorFieldIncludesLastRetrieved
(String pageCursorFieldIncludesLastRetrieved1) void
setPageIsCursor
(String pageIsCursor1) T|F default to F.void
setPageLastCursorField
(String pageLastCursorField1) field that will be sent back for cursor based pagingvoid
setPageLastCursorFieldType
(String pageLastCursorFieldType1) void
setPageNumber
(String pageNumber1) page number 1 indexed if pagingvoid
setPageSize
(String pageSize1) page size if pagingvoid
setQueryFilter0
(WsQueryFilter theQueryFilter0) if 'and' or 'or' this is the first group, and if complement, this is the group to complementvoid
setQueryFilter1
(WsQueryFilter theQueryFilter1) if 'and' or 'or', this is the second groupvoid
setQueryFilterType
(String findGroupType1) findGroupType is the WsQueryFilterType enum for which type of find is happening: e.g.void
setQueryTerm
(String queryTerm1) queryTerm if searching by query, this is a term that will be matched to name, extension, etcvoid
setSortString
(String sortString1) must be an hql query field, e.g.void
setStemName
(String stemName1) stemName will return groups only in this stemvoid
setStemNameScope
(String stemNameScope1) stemNameScope if searching by stem, ONE_LEVEL is for one level, ALL_IN_SUBTREE will return all in sub tree.void
setTypeOfGroups
(String typeOfGroups1) comma separated type of groups can be an enum of TypeOfGroup, e.g.toString()
void
validate()
validate the tree of queriesvoid
if there is no attribute name, there should bevoid
if there is no groupAttributeValue, there should bevoid
if there is no group name, there should bevoid
if there is no type, there should bevoid
if there is no group uuid, there should bevoid
if there is no query filter 0, there should bevoid
if there is no query filter 1, there should bevoid
if there is no stem name, there should bevoid
if there is no group name, there should bevoid
if there is an enabled name, there shouldnt bevoid
if there is a attribute name, there shouldnt bevoid
if there is a groupAttributeValue, there shouldnt bevoid
if there is a group name, there shouldnt bevoid
if there is a type, there shouldnt bevoid
if there is a group uuid, there shouldnt bevoid
if there is a query filter 0, there shouldnt bevoid
if there is a query filter 1, there shouldnt bevoid
if there is a stem name, there shouldnt bevoid
if there is a group name, there shouldnt bevoid
if there is a typeOfGroup name, there shouldnt bevoid
validateShouldHavePagingSorting
(boolean canHavePagingSorting) if there is no attribute name, there should be
-
Constructor Details
-
WsQueryFilter
public WsQueryFilter()
-
-
Method Details
-
getTypeOfGroups
comma separated type of groups can be an enum of TypeOfGroup, e.g. group, role, entity- Returns:
- type of group
-
setTypeOfGroups
comma separated type of groups can be an enum of TypeOfGroup, e.g. group, role, entity- Parameters:
typeOfGroups1
-
-
retrievePageSize
page size if paging- Returns:
- page size if paging
-
retrieveAscending
true or null for ascending, false for descending. If you pass true or false, must pass a sort string- Returns:
- true or null for ascending, false for descending. If you pass true or false, must pass a sort string
-
retrievePageNumber
page number 1 indexed if paging- Returns:
- page number 1 indexed if paging
-
getPageSize
page size if paging- Returns:
- the pageSize
-
setPageSize
page size if paging- Parameters:
pageSize1
- the pageSize to set
-
getPageNumber
page number 1 indexed if paging- Returns:
- the pageNumber
-
setPageNumber
page number 1 indexed if paging- Parameters:
pageNumber1
- the pageNumber to set
-
getSortString
must be an hql query field, e.g. can sort on name, displayName, extension, displayExtension- Returns:
- the sortString
-
setSortString
must be an hql query field, e.g. can sort on name, displayName, extension, displayExtension- Parameters:
sortString1
- the sortString to set
-
getAscending
true or null for ascending, false for descending. If you pass true or false, must pass a sort string- Returns:
- the ascending
-
setAscending
true or null for ascending, false for descending. If you pass true or false, must pass a sort string- Parameters:
ascending1
- the ascending to set
-
validateNoGroupName
public void validateNoGroupName()if there is a group name, there shouldnt be -
validateHasGroupName
public void validateHasGroupName()if there is no group name, there should be -
validateNoTypeOfGroups
public void validateNoTypeOfGroups()if there is a typeOfGroup name, there shouldnt be -
validateNoEnabled
public void validateNoEnabled()if there is an enabled name, there shouldnt be -
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 -
validateNoStemNameScope
public void validateNoStemNameScope()if there is a group name, there shouldnt be -
validateHasStemNameScope
public void validateHasStemNameScope()if there is no group name, there should be -
validateNoGroupUuid
public void validateNoGroupUuid()if there is a group uuid, there shouldnt be -
validateHasGroupUuid
public void validateHasGroupUuid()if there is no group uuid, there should be -
validateNoGroupAttributeValue
public void validateNoGroupAttributeValue()if there is a groupAttributeValue, there shouldnt be -
validateHasGroupAttributeValue
public void validateHasGroupAttributeValue()if there is no groupAttributeValue, there should be -
validateNoGroupAttributeName
public void validateNoGroupAttributeName()if there is a attribute name, there shouldnt be -
validateShouldHavePagingSorting
public void validateShouldHavePagingSorting(boolean canHavePagingSorting) if there is no attribute name, there should be- Parameters:
canHavePagingSorting
- if can have paging/sorting
-
validateHasGroupAttributeName
public void validateHasGroupAttributeName()if there is no attribute name, there should be -
validateNoGroupTypeName
public void validateNoGroupTypeName()if there is a type, there shouldnt be -
validateHasGroupTypeName
public void validateHasGroupTypeName()if there is no type, there should be -
validateNoQueryFilter0
public void validateNoQueryFilter0()if there is a query filter 0, there shouldnt be -
validateHasQueryFilter0
public void validateHasQueryFilter0()if there is no query filter 0, there should be -
validateNoQueryFilter1
public void validateNoQueryFilter1()if there is a query filter 1, there shouldnt be -
validateHasQueryFilter1
public void validateHasQueryFilter1()if there is no query filter 1, there should be -
getQueryFilterType
findGroupType is the WsQueryFilterType enum for which type of find is happening: e.g. FIND_BY_GROUP_UUID, FIND_BY_GROUP_NAME_EXACT, FIND_BY_STEM_NAME, FIND_BY_APPROXIMATE_ATTRIBUTE, FIND_BY_ATTRIBUTE, FIND_BY_GROUP_NAME_APPROXIMATE, FIND_BY_TYPE, AND, OR, MINUS;- Returns:
- the findGroupType
-
setQueryFilterType
findGroupType is the WsQueryFilterType enum for which type of find is happening: e.g. FIND_BY_GROUP_UUID, FIND_BY_GROUP_NAME_EXACT, FIND_BY_STEM_NAME, FIND_BY_APPROXIMATE_ATTRIBUTE, FIND_BY_ATTRIBUTE, FIND_BY_GROUP_NAME_APPROXIMATE, FIND_BY_TYPE, AND, OR, MINUS;- Parameters:
findGroupType1
- the findGroupType to set
-
getGroupName
groupName search by group name (must match exactly), cannot use other params with this- Returns:
- the groupName
-
setGroupName
groupName search by group name (must match exactly), cannot use other params with this- Parameters:
groupName1
- the groupName to set
-
getStemName
stemName will return groups only in this stem- Returns:
- the stemName
-
setStemName
stemName will return groups only in this stem- Parameters:
stemName1
- the stemName to set
-
getStemNameScope
stemNameScope 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 stemNameScope
-
retrieveStemScope
convert the stem scope into a stem scope- Parameters:
defaultScope
- is the default scope- Returns:
- the stem scope, or the default
-
setStemNameScope
stemNameScope 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 stemNameScope to set
-
getGroupUuid
groupUuid search by group uuid (must match exactly), cannot use other- Returns:
- the groupUuid
-
setGroupUuid
groupUuid search by group uuid (must match exactly), cannot use other- Parameters:
groupUuid1
- the groupUuid to set
-
getQueryTerm
queryTerm if searching by query, this is a term that will be matched to name, extension, etc- Returns:
- the queryTerm
-
setQueryTerm
queryTerm if searching by query, this is a term that will be matched to name, extension, etc- Parameters:
queryTerm1
- the queryTerm to set
-
getGroupAttributeName
if querying, this is the attribute name, or null for search all attributes- Returns:
- the attributeName
-
setGroupAttributeName
if querying, this is the attribute name, or null or search all attributes- Parameters:
attributeName1
- the attributeName to set
-
getGroupTypeName
if searching by type, this is the type to search for. not yet implemented- Returns:
- the theType
-
setGroupTypeName
if searching by type, this is the type to search for. not yet implemented- Parameters:
theType1
- the theType to set
-
getQueryFilter0
if 'and' or 'or' this is the first group, and if complement, this is the group to complement- Returns:
- the queryFilter0
-
setQueryFilter0
if 'and' or 'or' this is the first group, and if complement, this is the group to complement- Parameters:
theQueryFilter0
- the queryFilter0 to set
-
getQueryFilter1
if 'and' or 'or', this is the second group- Returns:
- the queryFilter1
-
setQueryFilter1
if 'and' or 'or', this is the second group- Parameters:
theQueryFilter1
- the queryFilter1 to set
-
retrieveQueryFilter
convert the query into a query filter- Returns:
- the query filter
-
retrieveQueryFilterType
- Returns:
-
retrieveTypeOfGroups
- Returns:
- type of group
-
toString
-
validate
public void validate()validate the tree of queries -
retrieveStem
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
-
retrieveGroupType
if there is no group type name, return null if there is a group type name, then find it, and return it. If not found, then throw WsInvalidQueryException- Returns:
- the stem or null
-
retrieveGrouperSession
grouper session- Returns:
- the grouperSession
-
assignGrouperSession
grouper session- Parameters:
grouperSession1
- the grouperSession to set
-
getGroupAttributeValue
groupAttributeValue if searching by query, this is a term that will be matched to- Returns:
- the groupAttributeValue
-
setGroupAttributeValue
groupAttributeValue if searching by query, this is a term that will be matched to- Parameters:
groupAttributeValue1
- the groupAttributeValue to set
-
getPageIsCursor
T|F default to F. if this is T then we are doing cursor paging- Returns:
- the pageIsCursor
-
setPageIsCursor
T|F default to F. if this is T then we are doing cursor paging- Parameters:
pageIsCursor1
- the pageIsCursor to set
-
getPageLastCursorField
field that will be sent back for cursor based paging- Returns:
- the pageLastCursorField
-
setPageLastCursorField
field that will be sent back for cursor based paging- Parameters:
pageLastCursorField1
- the pageLastCursorField to set
-
getPageLastCursorFieldType
- Returns:
- the pageLastCursorFieldType
-
setPageLastCursorFieldType
- Parameters:
pageLastCursorFieldType1
- the pageLastCursorFieldType to set
-
getPageCursorFieldIncludesLastRetrieved
- Returns:
- the pageCursorFieldIncludesLastRetrieved
-
setPageCursorFieldIncludesLastRetrieved
- Parameters:
pageCursorFieldIncludesLastRetrieved1
- the pageCursorFieldIncludesLastRetrieved to set
-
getEnabled
- Returns:
- the enabled
-
setEnabled
- Parameters:
enabled1
- the enabled to set
-
retrieveEnabledAsBoolean
- Returns:
- true if enabled only, false if disabled only, null if everything
-