Class BaseFilterSupport
- All Implemented Interfaces:
Serializable,Filter,MetadataFilter,TagFilter
- Direct Known Subclasses:
FilterSupport
- Since:
- 1.2
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet a mapping of filter keys and associated filter values.Get a metadata search filter, in LDAP search filter syntax.getTag()Get the first tag.String[]getTags()Get an array of tags.Get the first user ID.Long[]Get all user IDs to filter on.inthashCode()voidsetMetadataFilter(String metadataFilter) Set a metadata search filter, in LDAP search filter syntax.voidSet a single tag.voidSet a list of tags to filter on.voidSet a single user ID.voidsetUserIds(Long[] userIds) Set a list of user IDs to filter on.toString()
-
Constructor Details
-
BaseFilterSupport
public BaseFilterSupport()
-
-
Method Details
-
getFilter
Description copied from interface:FilterGet a mapping of filter keys and associated filter values. -
toString
-
getTag
Description copied from interface:TagFilterGet the first tag.This returns the first available tag from the
TagFilter.getTags()array, or null if not available. -
setTag
Set a single tag.This is a convenience method for requests that use a single tag at a time. The tag is still stored on the
tagsarray, just as the first value. Calling this method replaces any existingtagsvalue with a new array containing just the tag passed into this method.- Parameters:
tag- the tag
-
getTags
Description copied from interface:TagFilterGet an array of tags. -
setTags
Set a list of tags to filter on.- Parameters:
tags- the tags to filter on
-
setUserId
Set a single user ID.This is a convenience method for requests that use a single user ID at a time. The user ID is still stored on the
userIdsarray, just as the first value. Calling this method replaces any existinguserIdsvalue with a new array containing just the ID passed into this method.- Parameters:
userId- the ID of the user
-
getUserId
Get the first user ID.This returns the first available user ID from the
userIdsarray, or null if not available.- Returns:
- the first user ID, or null
-
getUserIds
Get all user IDs to filter on.- Returns:
- The user IDs, or null.
-
setUserIds
Set a list of user IDs to filter on.- Parameters:
userIds- The user IDs to filter on.
-
getMetadataFilter
Description copied from interface:MetadataFilterGet a metadata search filter, in LDAP search filter syntax.The metadata filter must be expressed in LDAP search filter style, using JSON pointer style paths for keys, for example
(/m/foo=bar),(t=foo), or(&(/**/foo=bar)(t=special)).- Specified by:
getMetadataFilterin interfaceMetadataFilter- Returns:
- the metadata filter to use (may be null)
-
setMetadataFilter
Set a metadata search filter, in LDAP search filter syntax.- Parameters:
metadataFilter- the metadata filter to use, or null
-
hashCode
public int hashCode() -
equals
-