Package org.opencastproject.list.impl
Class ListProvidersServiceImpl
java.lang.Object
org.opencastproject.list.impl.ListProvidersServiceImpl
- All Implemented Interfaces:
ListProvidersService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProvider(String listName, ResourceListProvider provider) Adds an source to the servicevoidaddProvider(String listName, ResourceListProvider provider, String organizationId) voidaddProvider(ResourceListProvider provider) OSGi callback for provider.Returns the resources list providers availablegetDefault(String listName) Defines the key of a default value in the given list.getList(String listName, ResourceListQuery query, boolean inverseValueKey) Returns the list for the given providerbooleanhasProvider(String name) Returns if the given source name is or not availablebooleanhasProvider(String name, String organizationId) booleanisTranslatable(String listName) Defines if keys and values of the given list should be translated in the administrative user interface.voidremoveProvider(String name) Removes the given sourcevoidremoveProvider(String name, String organizationId) voidremoveProvider(ResourceListProvider provider) OSGi callback for provider.voidsetSecurityService(org.opencastproject.security.api.SecurityService securityService) OSGi callback for security service
-
Constructor Details
-
ListProvidersServiceImpl
public ListProvidersServiceImpl()
-
-
Method Details
-
setSecurityService
public void setSecurityService(org.opencastproject.security.api.SecurityService securityService) OSGi callback for security service -
addProvider
OSGi callback for provider. -
removeProvider
OSGi callback for provider. -
getList
public Map<String,String> getList(String listName, ResourceListQuery query, boolean inverseValueKey) throws ListProviderException Description copied from interface:ListProvidersServiceReturns the list for the given provider- Specified by:
getListin interfaceListProvidersService- Parameters:
listName- The name of the sourcequery- The query for the list- Returns:
- a list of tuple id - value from the given source
- Throws:
ListProviderException
-
isTranslatable
Description copied from interface:ListProvidersServiceDefines if keys and values of the given list should be translated in the administrative user interface.- Specified by:
isTranslatablein interfaceListProvidersService- Parameters:
listName- the name of the list- Returns:
- if the results should be translated
- Throws:
ListProviderNotFoundException
-
getDefault
Description copied from interface:ListProvidersServiceDefines the key of a default value in the given list.- Specified by:
getDefaultin interfaceListProvidersService- Parameters:
listName- the name of the list- Returns:
- the key of the default value
- Throws:
ListProviderNotFoundException
-
addProvider
Description copied from interface:ListProvidersServiceAdds an source to the service- Specified by:
addProviderin interfaceListProvidersService- Parameters:
listName- The name of the sourceprovider- The list provider to add
-
addProvider
- Specified by:
addProviderin interfaceListProvidersService
-
removeProvider
Description copied from interface:ListProvidersServiceRemoves the given source- Specified by:
removeProviderin interfaceListProvidersService- Parameters:
name- The provider to remove
-
removeProvider
- Specified by:
removeProviderin interfaceListProvidersService
-
hasProvider
Description copied from interface:ListProvidersServiceReturns if the given source name is or not available- Specified by:
hasProviderin interfaceListProvidersService- Parameters:
name- The source to check- Returns:
- true if a source with the given name is available in the service
-
hasProvider
- Specified by:
hasProviderin interfaceListProvidersService
-
getAvailableProviders
Description copied from interface:ListProvidersServiceReturns the resources list providers available- Specified by:
getAvailableProvidersin interfaceListProvidersService- Returns:
- the list of available providers
-