Class AgentsListQuery
java.lang.Object
org.opencastproject.list.api.DefaultResourceListQuery
org.opencastproject.capture.admin.api.AgentsListQuery
- All Implemented Interfaces:
ResourceListQuery
Query for the capture-agents list.
The following filters can be used:
- name
- status
-
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> createStatusFilter(Optional<String> status) Create a newResourceListFilterbased on a stategetName()Returns anOptionalcontaining the name used to filter if setReturns anOptionalcontaining the status used to filter if setvoidAdd aResourceListFilterfilter to the query with the given namevoidwithStatus(String status) Add aResourceListFilterfilter to the query with the given statusMethods 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_STATUS_NAME
- See Also:
-
FILTER_LAST_UPDATED
- See Also:
-
FILTER_TEXT_NAME
- See Also:
-
-
Constructor Details
-
AgentsListQuery
public AgentsListQuery()
-
-
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.
-
withStatus
Add aResourceListFilterfilter to the query with the given status- Parameters:
status- the status to filter for
-
getStatus
Returns anOptionalcontaining the status used to filter if set- Returns:
- an
Optionalcontaining the status 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
-
createStatusFilter
Create a newResourceListFilterbased on a state- Parameters:
status- the status to filter on wrapped in anOptionalorOptional.empty()- Returns:
- a new
ResourceListFilterfor a status based query
-