Class EventCommentsListProvider
java.lang.Object
org.opencastproject.event.comment.list.EventCommentsListProvider
- All Implemented Interfaces:
ResourceListProvider
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe list of filter criteria for this providerstatic enumThe resolutions -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidactivate(org.osgi.framework.BundleContext bundleContext) 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.static StringReturns the list name related to the given filterString[]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.voidsetEventCommentService(EventCommentService eventCommentService) OSGi callback for the event comment service.
-
Field Details
-
PROVIDER_PREFIX
- See Also:
-
-
Constructor Details
-
EventCommentsListProvider
public EventCommentsListProvider()
-
-
Method Details
-
activate
protected void activate(org.osgi.framework.BundleContext bundleContext) -
setEventCommentService
OSGi callback for the event comment service. -
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
-
getListNameFromFilter
Returns the list name related to the given filter- Parameters:
filter- the filter from which the list name is needed- Returns:
- the list name related to the given filter
-
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
-