Package org.alfresco.repo.service
Class ServiceDescriptorRegistry
java.lang.Object
org.alfresco.repo.service.ServiceDescriptorRegistry
- All Implemented Interfaces:
ServiceRegistry,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanFactoryAware
public class ServiceDescriptorRegistry
extends Object
implements org.springframework.beans.factory.BeanFactoryAware, ServiceRegistry
Implementation of a Service Registry based on the definition of Services contained within a Spring Bean Factory.
- Author:
- David Caruana
-
Field Summary
Fields inherited from interface org.alfresco.service.ServiceRegistry
ACTION_SERVICE, ATTRIBUTE_SERVICE, AUDIT_SERVICE, AUTHENTICATION_SERVICE, AUTHORITY_SERVICE, BLOG_SERVICE, CALENDAR_SERVICE, CATEGORY_SERVICE, CMIS_DICTIONARY_SERVICE, CMIS_QUERY_SERVICE, CMIS_SERVICE, COCI_SERVICE, CONTENT_FILTER_LANGUAGES_SERVICE, CONTENT_SERVICE, COPY_SERVICE, DESCRIPTOR_SERVICE, DICTIONARY_SERVICE, DOCUMENT_LINK_SERVICE, EDITION_SERVICE, EXPORTER_SERVICE, FILE_FOLDER_SERVICE, FORM_SERVICE, IMAP_SERVICE, IMPORTER_SERVICE, INVITATION_SERVICE, JOB_LOCK_SERVICE, LOCK_SERVICE, MESSAGE_SERVICE, MIMETYPE_SERVICE, MODULE_SERVICE, MULTILINGUAL_CONTENT_SERVICE, NAMESPACE_SERVICE, NODE_LOCATOR_SERVICE, NODE_SERVICE, NOTIFICATION_SERVICE, OWNABLE_SERVICE, PERMISSIONS_SERVICE, PERSON_SERVICE, POLICY_COMPONENT, PREFERENCE_SERVICE, PUBLIC_SERVICE_ACCESS_SERVICE, RATING_SERVICE, REGISTRY_SERVICE, RENDITION_SERVICE, RENDITION_SERVICE_2, REPO_ADMIN_SERVICE, RETRYING_TRANSACTION_HELPER, RULE_SERVICE, SCRIPT_SERVICE, SEARCH_SERVICE, SERVICE_REGISTRY, SITE_SERVICE, SYNCHRONOUS_TRANSFORM_CLIENT, TAGGING_SERVICE, TEMPLATE_SERVICE, THUMBNAIL_SERVICE, TRANSACTION_SERVICE, VERSION_SERVICE, WEBDAV_SERVICE, WORKFLOW_SERVICE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the attribute service (or null if one is not provided)Get the blog service (or null if one is not provided)Get the calendar service (or null if one is not provided)Get the CMIS Dictionary service (or null if one is not provided)Get the CMIS Query service (or null if one is not provided)Get the document link serviceGet the Edition ServiceGet the facet label display handler registry beanGet the form service (or null if one is not provided)Get the IMAP service (or null if one is not provided)Get the invitation service (or null if one is not provided)Get the Message service bean.Get the module service bean.Get the Multilingual Content ServiceGet the node locator service (or null if one is not provided)Get the ownable service (or null if one is not provided)Get the person service (or null if one is not provided)Get the policy componentGet the Public Service Access service (or null if one is not provided)Get the rating service (or null if one is not provided)Deprecated.The RenditionService is being replace by the simpler async RenditionService2.Get the async rendition service componentGet the repo admin service (or null if one is not provided)getService(QName service) Get the specified service.Get the list of services provided by the RepositoryGet the site service (or null if one is not provided)Get the Solr facet helper beanGet the sys admin params helper bean.Get the Tagging ServiceDeprecated.The thumbnails code is being moved out of the codebase and replaced by the new async RenditionService2 or other external libraries.Get the webdav service / helper bean.booleanisServiceProvided(QName service) Is the specified service provided by the Repository?voidsetBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) voidsetMockSearchService(SearchService mockSearchService) For use in test classes only that need to mock the searchServices.
-
Constructor Details
-
ServiceDescriptorRegistry
public ServiceDescriptorRegistry()
-
-
Method Details
-
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException - Specified by:
setBeanFactoryin interfaceorg.springframework.beans.factory.BeanFactoryAware- Throws:
org.springframework.beans.BeansException
-
getServices
Description copied from interface:ServiceRegistryGet the list of services provided by the Repository- Specified by:
getServicesin interfaceServiceRegistry- Returns:
- list of provided Services
- Throws:
UnsupportedOperationException- always
-
isServiceProvided
Description copied from interface:ServiceRegistryIs the specified service provided by the Repository?- Specified by:
isServiceProvidedin interfaceServiceRegistry- Parameters:
service- name of service to test provision of- Returns:
- true => provided, false => not provided
- Throws:
UnsupportedOperationException- always
-
getService
Description copied from interface:ServiceRegistryGet the specified service.- Specified by:
getServicein interfaceServiceRegistry- Parameters:
service- name of service to retrieve- Returns:
- the service interface (must cast to interface as described in service meta-data)
-
getDescriptorService
- Specified by:
getDescriptorServicein interfaceServiceRegistry- Returns:
- the descriptor service
-
getNodeService
- Specified by:
getNodeServicein interfaceServiceRegistry- Returns:
- the node service (or null, if one is not provided)
-
getAuthenticationService
- Specified by:
getAuthenticationServicein interfaceServiceRegistry- Returns:
- the authentication service (or null, if one is not provided)
-
getContentService
- Specified by:
getContentServicein interfaceServiceRegistry- Returns:
- the content service (or null, if one is not provided)
-
getSynchronousTransformClient
- Specified by:
getSynchronousTransformClientin interfaceServiceRegistry- Returns:
- the synchronous transform client (or null, if one is not provided)
-
getMimetypeService
- Specified by:
getMimetypeServicein interfaceServiceRegistry- Returns:
- the mimetype service (or null, if one is not provided)
-
getVersionService
- Specified by:
getVersionServicein interfaceServiceRegistry- Returns:
- the version service (or null, if one is not provided)
-
getLockService
- Specified by:
getLockServicein interfaceServiceRegistry- Returns:
- the lock service (or null, if one is not provided)
-
getJobLockService
- Specified by:
getJobLockServicein interfaceServiceRegistry- Returns:
- the job lock service (or null, if one is not provided)
-
getDictionaryService
- Specified by:
getDictionaryServicein interfaceServiceRegistry- Returns:
- the dictionary service (or null, if one is not provided)
-
getSearchService
- Specified by:
getSearchServicein interfaceServiceRegistry- Returns:
- the search service (or null, if one is not provided)
-
setMockSearchService
For use in test classes only that need to mock the searchServices.- Parameters:
mockSearchService- to be set. Ifnullthe next call togetSearchService()will return the real search service from the context.
-
getTransactionService
- Specified by:
getTransactionServicein interfaceServiceRegistry- Returns:
- the transaction service
-
getRetryingTransactionHelper
- Specified by:
getRetryingTransactionHelperin interfaceServiceRegistry- Returns:
- a new instance of the
RetryingTransactionHelper
-
getCopyService
- Specified by:
getCopyServicein interfaceServiceRegistry- Returns:
- the copy service (or null, if one is not provided)
-
getCheckOutCheckInService
- Specified by:
getCheckOutCheckInServicein interfaceServiceRegistry- Returns:
- the checkout / checkin service (or null, if one is not provided)
-
getCategoryService
- Specified by:
getCategoryServicein interfaceServiceRegistry- Returns:
- the category service (or null, if one is not provided)
-
getNamespaceService
- Specified by:
getNamespaceServicein interfaceServiceRegistry- Returns:
- the namespace service (or null, if one is not provided)
-
getImporterService
- Specified by:
getImporterServicein interfaceServiceRegistry- Returns:
- the importer service or null if not present
-
getExporterService
- Specified by:
getExporterServicein interfaceServiceRegistry- Returns:
- the exporter service or null if not present
-
getRuleService
- Specified by:
getRuleServicein interfaceServiceRegistry- Returns:
- the rule service (or null, if one is not provided)
-
getActionService
- Specified by:
getActionServicein interfaceServiceRegistry- Returns:
- the action service (or null if one is not provided)
-
getPermissionService
- Specified by:
getPermissionServicein interfaceServiceRegistry- Returns:
- the permission service (or null if one is not provided)
-
getAuthorityService
- Specified by:
getAuthorityServicein interfaceServiceRegistry- Returns:
- the authority service (or null if one is not provided)
-
getTemplateService
- Specified by:
getTemplateServicein interfaceServiceRegistry- Returns:
- the template service (or null if one is not provided)
-
getFileFolderService
- Specified by:
getFileFolderServicein interfaceServiceRegistry- Returns:
- the file-folder manipulation service (or null if one is not provided)
-
getScriptService
- Specified by:
getScriptServicein interfaceServiceRegistry- Returns:
- the script execution service (or null if one is not provided)
-
getWorkflowService
- Specified by:
getWorkflowServicein interfaceServiceRegistry- Returns:
- the workflow service (or null if one is not provided)
-
getNotificationService
- Specified by:
getNotificationServicein interfaceServiceRegistry- Returns:
- the notification service (or null if on is not provided)
-
getAuditService
- Specified by:
getAuditServicein interfaceServiceRegistry- Returns:
- the audit service (or null if one is not provided)
-
getOwnableService
Description copied from interface:ServiceRegistryGet the ownable service (or null if one is not provided)- Specified by:
getOwnableServicein interfaceServiceRegistry- Returns:
- OwnableService
-
getPersonService
Description copied from interface:ServiceRegistryGet the person service (or null if one is not provided)- Specified by:
getPersonServicein interfaceServiceRegistry
-
getSiteService
Description copied from interface:ServiceRegistryGet the site service (or null if one is not provided)- Specified by:
getSiteServicein interfaceServiceRegistry
-
getAttributeService
Description copied from interface:ServiceRegistryGet the attribute service (or null if one is not provided)- Specified by:
getAttributeServicein interfaceServiceRegistry
-
getContentFilterLanguagesService
- Specified by:
getContentFilterLanguagesServicein interfaceServiceRegistry- Returns:
- the content filter languages service (or null, if one is not provided)
-
getEditionService
Description copied from interface:ServiceRegistryGet the Edition Service- Specified by:
getEditionServicein interfaceServiceRegistry
-
getMultilingualContentService
Description copied from interface:ServiceRegistryGet the Multilingual Content Service- Specified by:
getMultilingualContentServicein interfaceServiceRegistry
-
getThumbnailService
Deprecated.The thumbnails code is being moved out of the codebase and replaced by the new async RenditionService2 or other external libraries.- Specified by:
getThumbnailServicein interfaceServiceRegistry
-
getTaggingService
Description copied from interface:ServiceRegistryGet the Tagging Service- Specified by:
getTaggingServicein interfaceServiceRegistry
-
getFormService
Description copied from interface:ServiceRegistryGet the form service (or null if one is not provided)- Specified by:
getFormServicein interfaceServiceRegistry
-
getRenditionService
Deprecated.The RenditionService is being replace by the simpler async RenditionService2.Description copied from interface:ServiceRegistryGet the rendition service (or null if one is not provided)- Specified by:
getRenditionServicein interfaceServiceRegistry
-
getRatingService
Description copied from interface:ServiceRegistryGet the rating service (or null if one is not provided)- Specified by:
getRatingServicein interfaceServiceRegistry
-
getNodeLocatorService
Description copied from interface:ServiceRegistryGet the node locator service (or null if one is not provided)- Specified by:
getNodeLocatorServicein interfaceServiceRegistry
-
getBlogService
Description copied from interface:ServiceRegistryGet the blog service (or null if one is not provided)- Specified by:
getBlogServicein interfaceServiceRegistry
-
getCalendarService
Description copied from interface:ServiceRegistryGet the calendar service (or null if one is not provided)- Specified by:
getCalendarServicein interfaceServiceRegistry
-
getInvitationService
Description copied from interface:ServiceRegistryGet the invitation service (or null if one is not provided)- Specified by:
getInvitationServicein interfaceServiceRegistry- Returns:
- the invitation service
-
getCMISDictionaryService
Description copied from interface:ServiceRegistryGet the CMIS Dictionary service (or null if one is not provided)- Specified by:
getCMISDictionaryServicein interfaceServiceRegistry- Returns:
- the CMIS Dictionary service
-
getCMISQueryService
Description copied from interface:ServiceRegistryGet the CMIS Query service (or null if one is not provided)- Specified by:
getCMISQueryServicein interfaceServiceRegistry- Returns:
- the CMIS Query service
-
getImapService
Description copied from interface:ServiceRegistryGet the IMAP service (or null if one is not provided)- Specified by:
getImapServicein interfaceServiceRegistry- Returns:
- the IMAP service
-
getPublicServiceAccessService
Description copied from interface:ServiceRegistryGet the Public Service Access service (or null if one is not provided)- Specified by:
getPublicServiceAccessServicein interfaceServiceRegistry- Returns:
- the Public Service Access service
-
getRepoAdminService
Description copied from interface:ServiceRegistryGet the repo admin service (or null if one is not provided)- Specified by:
getRepoAdminServicein interfaceServiceRegistry- Returns:
- the repo admin service
-
getSysAdminParams
Description copied from interface:ServiceRegistryGet the sys admin params helper bean.- Specified by:
getSysAdminParamsin interfaceServiceRegistry- Returns:
- the sys admin params bean.
-
getWebDavService
Description copied from interface:ServiceRegistryGet the webdav service / helper bean.- Specified by:
getWebDavServicein interfaceServiceRegistry- Returns:
- the webdav service / helper bean
-
getModuleService
Description copied from interface:ServiceRegistryGet the module service bean.- Specified by:
getModuleServicein interfaceServiceRegistry- Returns:
- the module service bean
-
getSolrFacetHelper
Description copied from interface:ServiceRegistryGet the Solr facet helper bean- Specified by:
getSolrFacetHelperin interfaceServiceRegistry- Returns:
- the Solr facet helper bean
-
getFacetLabelDisplayHandlerRegistry
Description copied from interface:ServiceRegistryGet the facet label display handler registry bean- Specified by:
getFacetLabelDisplayHandlerRegistryin interfaceServiceRegistry- Returns:
- the Facet label display handler registry bean
-
getMessageService
Description copied from interface:ServiceRegistryGet the Message service bean.- Specified by:
getMessageServicein interfaceServiceRegistry- Returns:
- the Message service bean
-
getDocumentLinkService
Description copied from interface:ServiceRegistryGet the document link service- Specified by:
getDocumentLinkServicein interfaceServiceRegistry- Returns:
- the document link service
-
getPolicyComponent
Description copied from interface:ServiceRegistryGet the policy component- Specified by:
getPolicyComponentin interfaceServiceRegistry- Returns:
- The policy component
-
getRenditionService2
Description copied from interface:ServiceRegistryGet the async rendition service component- Specified by:
getRenditionService2in interfaceServiceRegistry- Returns:
- The async rendition component
-