Class UsersListQuery
java.lang.Object
org.opencastproject.list.api.DefaultResourceListQuery
org.opencastproject.list.common.query.UsersListQuery
- All Implemented Interfaces:
ResourceListQuery
Query for the users list.
The following filters can be used:
- name
- role
- provider
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringFields 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> createProviderFilter(Optional<String> provider) Create a newResourceListFilterbased on a providerstatic ResourceListFilter<String> createRoleFilter(Optional<String> role) Create a newResourceListFilterbased on a rolegetName()Returns anOptionalcontaining the name used to filter if setReturns anOptionalcontaining the provider used to filter if setgetRole()Returns anOptionalcontaining the role used to filter if setvoidAdd aResourceListFilterfilter to the query with the given namevoidwithProvider(String provider) Add aResourceListFilterfilter to the query with the given providervoidAdd 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_PROVIDER_NAME
- See Also:
-
FILTER_TEXT_NAME
- See Also:
-
-
Constructor Details
-
UsersListQuery
public UsersListQuery()
-
-
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.
-
withProvider
Add aResourceListFilterfilter to the query with the given provider- Parameters:
provider- the provider to filter for
-
getProvider
Returns anOptionalcontaining the provider used to filter if set- Returns:
- an
Optionalcontaining the provider 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
Create a newResourceListFilterbased on a role- Parameters:
role- the role to filter on wrapped in anOptionalorOptional.empty()- Returns:
- a new
ResourceListFilterfor a role based query
-
createProviderFilter
Create a newResourceListFilterbased on a provider- Parameters:
provider- the provider to filter on wrapped in anOptionalorOptional.empty()- Returns:
- a new
ResourceListFilterfor a provider based query
-