org.nuxeo.ecm.platform.content.template.service
Class ContentTemplateServiceImpl
java.lang.Object
org.nuxeo.runtime.model.DefaultComponent
org.nuxeo.ecm.platform.content.template.service.ContentTemplateServiceImpl
- All Implemented Interfaces:
- ContentTemplateService, Adaptable, Component, Extensible
public class ContentTemplateServiceImpl
- extends DefaultComponent
- implements ContentTemplateService
NAME
public static final String NAME
- See Also:
- Constant Field Values
FACTORY_DECLARATION_EP
public static final String FACTORY_DECLARATION_EP
- See Also:
- Constant Field Values
FACTORY_BINDING_EP
public static final String FACTORY_BINDING_EP
- See Also:
- Constant Field Values
ContentTemplateServiceImpl
public ContentTemplateServiceImpl()
activate
public void activate(ComponentContext context)
- Description copied from interface:
Component
- Activates the component.
This method is called by the runtime when a component is activated.
- Specified by:
activate
in interface Component
- Overrides:
activate
in class DefaultComponent
- Parameters:
context
- the runtime context
deactivate
public void deactivate(ComponentContext context)
throws Exception
- Description copied from interface:
Component
- Deactivates the component.
This method is called by the runtime when a component is deactivated.
- Specified by:
deactivate
in interface Component
- Overrides:
deactivate
in class DefaultComponent
- Parameters:
context
- the runtime context
- Throws:
Exception
- if an error occurs during activation
registerContribution
public void registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor)
- Overrides:
registerContribution
in class DefaultComponent
getFactoryForType
public ContentFactory getFactoryForType(String documentType)
- Specified by:
getFactoryForType
in interface ContentTemplateService
getFactoryForFacet
public ContentFactory getFactoryForFacet(String facet)
executeFactoryForType
public void executeFactoryForType(DocumentModel createdDocument)
throws ClientException
- Specified by:
executeFactoryForType
in interface ContentTemplateService
- Throws:
ClientException
getFactories
public Map<String,ContentFactoryDescriptor> getFactories()
getFactoryBindings
public Map<String,FactoryBindingDescriptor> getFactoryBindings()
getFactoryInstancesByType
public Map<String,ContentFactory> getFactoryInstancesByType()
getFactoryInstancesByFacet
public Map<String,ContentFactory> getFactoryInstancesByFacet()
Copyright © 2011 Nuxeo SAS. All Rights Reserved.