Class ServersListProvider
java.lang.Object
org.opencastproject.list.common.provider.ServersListProvider
- All Implemented Interfaces:
ResourceListProvider
Servers list provider.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringHostname list name.static final StringNodeName list name.static final StringStatus list name.static final StringStatus maintenance filter label.static final StringStatus offline filter label.static final StringStatus online filter label.static final StringStatus maintenance filter name.static final StringStatus offline filter name.static final StringStatus online filter name. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidactivate(org.osgi.framework.BundleContext bundleContext) OSGi service activation callback.Returns the key of the default value in the list if customized, else null.getList(String listName, ResourceListQuery query) Returns the key-value list for the generator resource filtered with the given filter and based on the given organization context.String[]Returns the names of the list(s) providedbooleanisTranslatable(String listName) Defines if keys and values of the given list should be translated in the administrative user interface.voidsetServiceRegistry(ServiceRegistry serviceRegistry) OSGi callback for the service registry.
-
Field Details
-
LIST_HOSTNAME
Hostname list name.- See Also:
-
LIST_NODE_NAME
NodeName list name.- See Also:
-
LIST_STATUS
Status list name.- See Also:
-
SERVER_STATUS_ONLINE
Status online filter name.- See Also:
-
SERVER_STATUS_LABEL_ONLINE
Status online filter label.- See Also:
-
SERVER_STATUS_OFFLINE
Status offline filter name.- See Also:
-
SERVER_STATUS_LABEL_OFFLINE
Status offline filter label.- See Also:
-
SERVER_STATUS_MAINTENANCE
Status maintenance filter name.- See Also:
-
SERVER_STATUS_LABEL_MAINTENANCE
Status maintenance filter label.- See Also:
-
-
Constructor Details
-
ServersListProvider
public ServersListProvider()
-
-
Method Details
-
getListNames
Description copied from interface:ResourceListProviderReturns the names of the list(s) provided- Specified by:
getListNamesin interfaceResourceListProvider- Returns:
- an array containing the lists available
-
getList
public Map<String,String> getList(String listName, ResourceListQuery query) throws ListProviderException Description copied from interface:ResourceListProviderReturns the key-value list for the generator resource filtered with the given filter and based on the given organization context.- Specified by:
getListin interfaceResourceListProvider- Parameters:
listName- the list namequery- the list query- Returns:
- the key-value list for the generator resource
- Throws:
ListProviderException
-
activate
protected void activate(org.osgi.framework.BundleContext bundleContext) OSGi service activation callback. -
setServiceRegistry
OSGi callback for the service registry. -
isTranslatable
Description copied from interface:ResourceListProviderDefines if keys and values of the given list should be translated in the administrative user interface.- Specified by:
isTranslatablein interfaceResourceListProvider- Parameters:
listName- the name of the list- Returns:
- if the results should be translated
-
getDefault
Description copied from interface:ResourceListProviderReturns the key of the default value in the list if customized, else null.- Specified by:
getDefaultin interfaceResourceListProvider- Returns:
- key of default value or null
-