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, name
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) |
protected ContentFactory |
getFactoryInstance(FactoryBindingDescriptor descriptor) |
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
void |
unregisterContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerExtension, setLastModified, setModifiedNow, setName, start, stop, unregister, unregisterExtension
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applicationStarted, getApplicationStartedOrder
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 void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
unregisterContribution
in class DefaultComponent
public ContentFactory getFactoryForType(String documentType)
getFactoryForType
in interface ContentTemplateService
public ContentFactory getFactoryForFacet(String facet)
protected ContentFactory getFactoryInstance(FactoryBindingDescriptor descriptor)
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()
Copyright © 2018 Nuxeo. All rights reserved.