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 java.lang.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, 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, TAGGING_SERVICE, TEMPLATE_SERVICE, THUMBNAIL_SERVICE, TRANSACTION_SERVICE, VERSION_SERVICE, WEBDAV_SERVICE, WORKFLOW_SERVICE
-
-
Constructor Summary
Constructors Constructor Description ServiceDescriptorRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ActionServicegetActionService()AttributeServicegetAttributeService()Get the attribute service (or null if one is not provided)AuditServicegetAuditService()MutableAuthenticationServicegetAuthenticationService()AuthorityServicegetAuthorityService()CalendarServicegetCalendarService()Get the calendar service (or null if one is not provided)CategoryServicegetCategoryService()CheckOutCheckInServicegetCheckOutCheckInService()org.alfresco.opencmis.dictionary.CMISDictionaryServicegetCMISDictionaryService()Get the CMIS Dictionary service (or null if one is not provided)CMISQueryServicegetCMISQueryService()Get the CMIS Query service (or null if one is not provided)ContentFilterLanguagesServicegetContentFilterLanguagesService()ContentServicegetContentService()CopyServicegetCopyService()DescriptorServicegetDescriptorService()org.alfresco.service.cmr.dictionary.DictionaryServicegetDictionaryService()DocumentLinkServicegetDocumentLinkService()Get the document link serviceEditionServicegetEditionService()Get the Edition ServiceExporterServicegetExporterService()FacetLabelDisplayHandlerRegistrygetFacetLabelDisplayHandlerRegistry()Get the facet label display handler registry beanFileFolderServicegetFileFolderService()FormServicegetFormService()Get the form service (or null if one is not provided)ImapServicegetImapService()Get the IMAP service (or null if one is not provided)ImporterServicegetImporterService()InvitationServicegetInvitationService()Get the invitation service (or null if one is not provided)JobLockServicegetJobLockService()LockServicegetLockService()MessageServicegetMessageService()Get the Message service bean.org.alfresco.service.cmr.repository.MimetypeServicegetMimetypeService()ModuleServicegetModuleService()Get the module service bean.MultilingualContentServicegetMultilingualContentService()Get the Multilingual Content Serviceorg.alfresco.service.namespace.NamespaceServicegetNamespaceService()NodeLocatorServicegetNodeLocatorService()Get the node locator service (or null if one is not provided)org.alfresco.service.cmr.repository.NodeServicegetNodeService()NotificationServicegetNotificationService()OwnableServicegetOwnableService()Get the ownable service (or null if one is not provided)org.alfresco.service.cmr.security.PermissionServicegetPermissionService()PersonServicegetPersonService()Get the person service (or null if one is not provided)PolicyComponentgetPolicyComponent()Get the policy componentPublicServiceAccessServicegetPublicServiceAccessService()Get the Public Service Access service (or null if one is not provided)RatingServicegetRatingService()Get the rating service (or null if one is not provided)RenditionServicegetRenditionService()Deprecated.The RenditionService is being replace by the simpler async RenditionService2.RenditionService2getRenditionService2()Get the async rendition service componentRepoAdminServicegetRepoAdminService()Get the repo admin service (or null if one is not provided)RetryingTransactionHelpergetRetryingTransactionHelper()RuleServicegetRuleService()ScriptServicegetScriptService()org.alfresco.service.cmr.search.SearchServicegetSearchService()java.lang.ObjectgetService(org.alfresco.service.namespace.QName service)Get the specified service.java.util.Collection<org.alfresco.service.namespace.QName>getServices()Get the list of services provided by the RepositorySiteServicegetSiteService()Get the site service (or null if one is not provided)SolrFacetHelpergetSolrFacetHelper()Get the Solr facet helper beanSysAdminParamsgetSysAdminParams()Get the sys admin params helper bean.TaggingServicegetTaggingService()Get the Tagging ServiceTemplateServicegetTemplateService()ThumbnailServicegetThumbnailService()Deprecated.The thumbnails code is being moved out of the codebase and replaced by the new async RenditionService2 or other external libraries.TransactionServicegetTransactionService()VersionServicegetVersionService()WebDavServicegetWebDavService()Get the webdav service / helper bean.WorkflowServicegetWorkflowService()booleanisServiceProvided(org.alfresco.service.namespace.QName service)Is the specified service provided by the Repository?voidsetBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)voidsetMockSearchService(org.alfresco.service.cmr.search.SearchService mockSearchService)For use in test classes only that need to mock the searchServices.
-
-
-
Method Detail
-
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
public java.util.Collection<org.alfresco.service.namespace.QName> getServices()
Description copied from interface:ServiceRegistryGet the list of services provided by the Repository- Specified by:
getServicesin interfaceServiceRegistry- Returns:
- list of provided Services
- Throws:
java.lang.UnsupportedOperationException- always
-
isServiceProvided
public boolean isServiceProvided(org.alfresco.service.namespace.QName service)
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:
java.lang.UnsupportedOperationException- always
-
getService
public java.lang.Object getService(org.alfresco.service.namespace.QName service)
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
public DescriptorService getDescriptorService()
- Specified by:
getDescriptorServicein interfaceServiceRegistry- Returns:
- the descriptor service
-
getNodeService
public org.alfresco.service.cmr.repository.NodeService getNodeService()
- Specified by:
getNodeServicein interfaceServiceRegistry- Returns:
- the node service (or null, if one is not provided)
-
getAuthenticationService
public MutableAuthenticationService getAuthenticationService()
- Specified by:
getAuthenticationServicein interfaceServiceRegistry- Returns:
- the authentication service (or null, if one is not provided)
-
getContentService
public ContentService getContentService()
- Specified by:
getContentServicein interfaceServiceRegistry- Returns:
- the content service (or null, if one is not provided)
-
getMimetypeService
public org.alfresco.service.cmr.repository.MimetypeService getMimetypeService()
- Specified by:
getMimetypeServicein interfaceServiceRegistry- Returns:
- the mimetype service (or null, if one is not provided)
-
getVersionService
public VersionService getVersionService()
- Specified by:
getVersionServicein interfaceServiceRegistry- Returns:
- the version service (or null, if one is not provided)
-
getLockService
public LockService getLockService()
- Specified by:
getLockServicein interfaceServiceRegistry- Returns:
- the lock service (or null, if one is not provided)
-
getJobLockService
public JobLockService getJobLockService()
- Specified by:
getJobLockServicein interfaceServiceRegistry- Returns:
- the job lock service (or null, if one is not provided)
-
getDictionaryService
public org.alfresco.service.cmr.dictionary.DictionaryService getDictionaryService()
- Specified by:
getDictionaryServicein interfaceServiceRegistry- Returns:
- the dictionary service (or null, if one is not provided)
-
getSearchService
public org.alfresco.service.cmr.search.SearchService getSearchService()
- Specified by:
getSearchServicein interfaceServiceRegistry- Returns:
- the search service (or null, if one is not provided)
-
setMockSearchService
public void setMockSearchService(org.alfresco.service.cmr.search.SearchService mockSearchService)
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
public TransactionService getTransactionService()
- Specified by:
getTransactionServicein interfaceServiceRegistry- Returns:
- the transaction service
-
getRetryingTransactionHelper
public RetryingTransactionHelper getRetryingTransactionHelper()
- Specified by:
getRetryingTransactionHelperin interfaceServiceRegistry- Returns:
- a new instance of the
RetryingTransactionHelper
-
getCopyService
public CopyService getCopyService()
- Specified by:
getCopyServicein interfaceServiceRegistry- Returns:
- the copy service (or null, if one is not provided)
-
getCheckOutCheckInService
public CheckOutCheckInService getCheckOutCheckInService()
- Specified by:
getCheckOutCheckInServicein interfaceServiceRegistry- Returns:
- the checkout / checkin service (or null, if one is not provided)
-
getCategoryService
public CategoryService getCategoryService()
- Specified by:
getCategoryServicein interfaceServiceRegistry- Returns:
- the category service (or null, if one is not provided)
-
getNamespaceService
public org.alfresco.service.namespace.NamespaceService getNamespaceService()
- Specified by:
getNamespaceServicein interfaceServiceRegistry- Returns:
- the namespace service (or null, if one is not provided)
-
getImporterService
public ImporterService getImporterService()
- Specified by:
getImporterServicein interfaceServiceRegistry- Returns:
- the importer service or null if not present
-
getExporterService
public ExporterService getExporterService()
- Specified by:
getExporterServicein interfaceServiceRegistry- Returns:
- the exporter service or null if not present
-
getRuleService
public RuleService getRuleService()
- Specified by:
getRuleServicein interfaceServiceRegistry- Returns:
- the rule service (or null, if one is not provided)
-
getActionService
public ActionService getActionService()
- Specified by:
getActionServicein interfaceServiceRegistry- Returns:
- the action service (or null if one is not provided)
-
getPermissionService
public org.alfresco.service.cmr.security.PermissionService getPermissionService()
- Specified by:
getPermissionServicein interfaceServiceRegistry- Returns:
- the permission service (or null if one is not provided)
-
getAuthorityService
public AuthorityService getAuthorityService()
- Specified by:
getAuthorityServicein interfaceServiceRegistry- Returns:
- the authority service (or null if one is not provided)
-
getTemplateService
public TemplateService getTemplateService()
- Specified by:
getTemplateServicein interfaceServiceRegistry- Returns:
- the template service (or null if one is not provided)
-
getFileFolderService
public FileFolderService getFileFolderService()
- Specified by:
getFileFolderServicein interfaceServiceRegistry- Returns:
- the file-folder manipulation service (or null if one is not provided)
-
getScriptService
public ScriptService getScriptService()
- Specified by:
getScriptServicein interfaceServiceRegistry- Returns:
- the script execution service (or null if one is not provided)
-
getWorkflowService
public WorkflowService getWorkflowService()
- Specified by:
getWorkflowServicein interfaceServiceRegistry- Returns:
- the workflow service (or null if one is not provided)
-
getNotificationService
public NotificationService getNotificationService()
- Specified by:
getNotificationServicein interfaceServiceRegistry- Returns:
- the notification service (or null if on is not provided)
-
getAuditService
public AuditService getAuditService()
- Specified by:
getAuditServicein interfaceServiceRegistry- Returns:
- the audit service (or null if one is not provided)
-
getOwnableService
public OwnableService getOwnableService()
Description copied from interface:ServiceRegistryGet the ownable service (or null if one is not provided)- Specified by:
getOwnableServicein interfaceServiceRegistry- Returns:
- OwnableService
-
getPersonService
public PersonService getPersonService()
Description copied from interface:ServiceRegistryGet the person service (or null if one is not provided)- Specified by:
getPersonServicein interfaceServiceRegistry
-
getSiteService
public SiteService getSiteService()
Description copied from interface:ServiceRegistryGet the site service (or null if one is not provided)- Specified by:
getSiteServicein interfaceServiceRegistry
-
getAttributeService
public AttributeService getAttributeService()
Description copied from interface:ServiceRegistryGet the attribute service (or null if one is not provided)- Specified by:
getAttributeServicein interfaceServiceRegistry
-
getContentFilterLanguagesService
public ContentFilterLanguagesService getContentFilterLanguagesService()
- Specified by:
getContentFilterLanguagesServicein interfaceServiceRegistry- Returns:
- the content filter languages service (or null, if one is not provided)
-
getEditionService
public EditionService getEditionService()
Description copied from interface:ServiceRegistryGet the Edition Service- Specified by:
getEditionServicein interfaceServiceRegistry
-
getMultilingualContentService
public MultilingualContentService getMultilingualContentService()
Description copied from interface:ServiceRegistryGet the Multilingual Content Service- Specified by:
getMultilingualContentServicein interfaceServiceRegistry
-
getThumbnailService
@Deprecated public ThumbnailService 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
public TaggingService getTaggingService()
Description copied from interface:ServiceRegistryGet the Tagging Service- Specified by:
getTaggingServicein interfaceServiceRegistry
-
getFormService
public FormService getFormService()
Description copied from interface:ServiceRegistryGet the form service (or null if one is not provided)- Specified by:
getFormServicein interfaceServiceRegistry
-
getRenditionService
@Deprecated public RenditionService 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
public RatingService getRatingService()
Description copied from interface:ServiceRegistryGet the rating service (or null if one is not provided)- Specified by:
getRatingServicein interfaceServiceRegistry
-
getNodeLocatorService
public NodeLocatorService getNodeLocatorService()
Description copied from interface:ServiceRegistryGet the node locator service (or null if one is not provided)- Specified by:
getNodeLocatorServicein interfaceServiceRegistry
-
getCalendarService
public CalendarService getCalendarService()
Description copied from interface:ServiceRegistryGet the calendar service (or null if one is not provided)- Specified by:
getCalendarServicein interfaceServiceRegistry
-
getInvitationService
public InvitationService 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
public org.alfresco.opencmis.dictionary.CMISDictionaryService 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
public CMISQueryService 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
public ImapService 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
public PublicServiceAccessService 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
public RepoAdminService 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
public SysAdminParams getSysAdminParams()
Description copied from interface:ServiceRegistryGet the sys admin params helper bean.- Specified by:
getSysAdminParamsin interfaceServiceRegistry- Returns:
- the sys admin params bean.
-
getWebDavService
public WebDavService getWebDavService()
Description copied from interface:ServiceRegistryGet the webdav service / helper bean.- Specified by:
getWebDavServicein interfaceServiceRegistry- Returns:
- the webdav service / helper bean
-
getModuleService
public ModuleService getModuleService()
Description copied from interface:ServiceRegistryGet the module service bean.- Specified by:
getModuleServicein interfaceServiceRegistry- Returns:
- the module service bean
-
getSolrFacetHelper
public SolrFacetHelper getSolrFacetHelper()
Description copied from interface:ServiceRegistryGet the Solr facet helper bean- Specified by:
getSolrFacetHelperin interfaceServiceRegistry- Returns:
- the Solr facet helper bean
-
getFacetLabelDisplayHandlerRegistry
public FacetLabelDisplayHandlerRegistry 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
public MessageService getMessageService()
Description copied from interface:ServiceRegistryGet the Message service bean.- Specified by:
getMessageServicein interfaceServiceRegistry- Returns:
- the Message service bean
-
getDocumentLinkService
public DocumentLinkService getDocumentLinkService()
Description copied from interface:ServiceRegistryGet the document link service- Specified by:
getDocumentLinkServicein interfaceServiceRegistry- Returns:
- the document link service
-
getPolicyComponent
public PolicyComponent getPolicyComponent()
Description copied from interface:ServiceRegistryGet the policy component- Specified by:
getPolicyComponentin interfaceServiceRegistry- Returns:
- The policy component
-
getRenditionService2
public RenditionService2 getRenditionService2()
Description copied from interface:ServiceRegistryGet the async rendition service component- Specified by:
getRenditionService2in interfaceServiceRegistry- Returns:
- The async rendition component
-
-