Class GroupsListQuery
java.lang.Object
org.opencastproject.list.api.DefaultResourceListQuery
org.opencastproject.list.common.query.GroupsListQuery
- All Implemented Interfaces:
ResourceListQuery
Query for the users list.
The following filters can be used:
- name
- role
- provider
-
Field Summary
FieldsFields inherited from class org.opencastproject.list.api.DefaultResourceListQuery
availableFilters, sortBy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceListFilter<String> createNameFilter(Optional<String> name) Create a newResourceListFilterbased on a namestatic ResourceListFilter<String> createRoleFilter(Optional<String> role) getName()Returns anOptionalcontaining the name used to filter if setgetRole()Returns anOptionalcontaining the role used to filter if setvoidAdd aResourceListFilterfilter to the query with the given namevoidAdd aResourceListFilterfilter to the query with the given roleMethods inherited from class org.opencastproject.list.api.DefaultResourceListQuery
addFilter, getAvailableFilters, getFilter, getFilters, getFilterValue, getLimit, getOffset, getSortBy, hasFilter, removeFilter, setLimit, setOffset
-
Field Details
-
FILTER_NAME_NAME
- See Also:
-
FILTER_ROLE_NAME
- See Also:
-
FILTER_TEXT_NAME
- See Also:
-
-
Constructor Details
-
GroupsListQuery
public GroupsListQuery()
-
-
Method Details
-
withName
Add aResourceListFilterfilter to the query with the given name- Parameters:
name- the name to filter for
-
getName
Returns anOptionalcontaining the name used to filter if set- Returns:
- an
Optionalcontaining the name or none.
-
withRole
Add aResourceListFilterfilter to the query with the given role- Parameters:
role- the role to filter for
-
getRole
Returns anOptionalcontaining the role used to filter if set- Returns:
- an
Optionalcontaining the role or none.
-
createNameFilter
Create a newResourceListFilterbased on a name- Parameters:
name- the name to filter on wrapped in anOptionalorOptional.empty()- Returns:
- a new
ResourceListFilterfor a name based query
-
createRoleFilter
-