public class ContentTemplateServiceImpl extends DefaultComponent implements ContentTemplateService
Modifier and Type | Field and Description |
---|---|
static String |
FACTORY_BINDING_EP |
static String |
FACTORY_DECLARATION_EP |
static String |
NAME |
static String |
POST_CONTENT_CREATION_HANDLERS_EP |
lastModified
Constructor and Description |
---|
ContentTemplateServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
activate(ComponentContext context)
Activates the component.
|
void |
deactivate(ComponentContext context)
Deactivates the component.
|
void |
executeFactoryForType(DocumentModel createdDocument) |
void |
executePostContentCreationHandlers(CoreSession session)
Executes all the registered
PostContentCreationHandler s. |
Map<String,ContentFactoryDescriptor> |
getFactories() |
Map<String,FactoryBindingDescriptor> |
getFactoryBindings() |
ContentFactory |
getFactoryForFacet(String facet) |
ContentFactory |
getFactoryForType(String documentType) |
Map<String,ContentFactory> |
getFactoryInstancesByFacet() |
Map<String,ContentFactory> |
getFactoryInstancesByType() |
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
applicationStarted, getAdapter, getApplicationStartedOrder, getLastModified, registerExtension, setLastModified, setModifiedNow, unregisterContribution, unregisterExtension
public static final String NAME
public static final String FACTORY_DECLARATION_EP
public static final String FACTORY_BINDING_EP
public static final String POST_CONTENT_CREATION_HANDLERS_EP
public ContentTemplateServiceImpl()
public void activate(ComponentContext context)
Component
This method is called by the runtime when a component is activated.
activate
in interface Component
activate
in class DefaultComponent
context
- the runtime contextpublic void deactivate(ComponentContext context)
Component
This method is called by the runtime when a component is deactivated.
deactivate
in interface Component
deactivate
in class DefaultComponent
context
- the runtime contextpublic void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution
in class DefaultComponent
public ContentFactory getFactoryForType(String documentType)
getFactoryForType
in interface ContentTemplateService
public ContentFactory getFactoryForFacet(String facet)
public void executeFactoryForType(DocumentModel createdDocument)
executeFactoryForType
in interface ContentTemplateService
public void executePostContentCreationHandlers(CoreSession session)
ContentTemplateService
PostContentCreationHandler
s.executePostContentCreationHandlers
in interface ContentTemplateService
public Map<String,ContentFactoryDescriptor> getFactories()
public Map<String,FactoryBindingDescriptor> getFactoryBindings()
public Map<String,ContentFactory> getFactoryInstancesByType()
public Map<String,ContentFactory> getFactoryInstancesByFacet()
Copyright © 2016 Nuxeo SA. All rights reserved.