Class ContributorsListProvider
java.lang.Object
org.opencastproject.list.common.provider.ContributorsListProvider
- All Implemented Interfaces:
ResourceListProvider
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidaddIndexNamesToMap(Set<String> userLabels, Collection<org.opencastproject.list.common.provider.ContributorsListProvider.Contributor> contributors, List<String> indexNames) Add all names in the index to the map if they aren't already present as a user.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.getList(ResourceListQuery query) Get all of the contributors with friendly printable names.String[]Returns the names of the list(s) providedGet the contributors list including usernames and organizations for the users available.Get the contributors list including usernames and organizations for the users available.booleanisTranslatable(String listName) Defines if keys and values of the given list should be translated in the administrative user interface.voidvoidsetIndex(ElasticsearchIndex index) OSGi callback for the search index.voidsetUserDirectoryService(UserDirectoryService userDirectoryService) OSGi callback for users services.
-
Field Details
-
DEFAULT
- See Also:
-
NAMES_TO_USERNAMES
- See Also:
-
USERNAMES
- See Also:
-
NAMES
-
-
Constructor Details
-
ContributorsListProvider
public ContributorsListProvider()
-
-
Method Details
-
activate
-
modified
-
setUserDirectoryService
OSGi callback for users services. -
setIndex
OSGi callback for the search index. -
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
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
-
getList
Get all of the contributors with friendly printable names.- Parameters:
query- The query for the list including limit and offset.- Returns:
- The
Mapincluding all of the contributors.
-
getListWithTechnicalPresenters
Get the contributors list including usernames and organizations for the users available.- Parameters:
query- The query for the list including limit and offset.- Returns:
- The
Mapincluding all of the contributors.
-
getListWithUserNames
Get the contributors list including usernames and organizations for the users available.- Parameters:
query- The query for the list including limit and offset.- Returns:
- The
Mapincluding all of the contributors.
-
addIndexNamesToMap
protected void addIndexNamesToMap(Set<String> userLabels, Collection<org.opencastproject.list.common.provider.ContributorsListProvider.Contributor> contributors, List<String> indexNames) Add all names in the index to the map if they aren't already present as a user.- Parameters:
userLabels- The collection of user labels, the full names of the users.contributors- The collection of all contributors including the index names that will be added.indexNames- The list of new names from the index.
-
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
-