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
PostContentCreationHandlers. |
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, unregisterExtensionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplicationStarted, getApplicationStartedOrderpublic 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)
ComponentThis method is called by the runtime when a component is activated.
activate in interface Componentactivate in class DefaultComponentcontext - the runtime contextpublic void deactivate(ComponentContext context)
ComponentThis method is called by the runtime when a component is deactivated.
deactivate in interface Componentdeactivate in class DefaultComponentcontext - the runtime contextpublic void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution in class DefaultComponentpublic void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
unregisterContribution in class DefaultComponentpublic ContentFactory getFactoryForType(String documentType)
getFactoryForType in interface ContentTemplateServicepublic ContentFactory getFactoryForFacet(String facet)
protected ContentFactory getFactoryInstance(FactoryBindingDescriptor descriptor)
public void executeFactoryForType(DocumentModel createdDocument)
executeFactoryForType in interface ContentTemplateServicepublic void executePostContentCreationHandlers(CoreSession session)
ContentTemplateServicePostContentCreationHandlers.executePostContentCreationHandlers in interface ContentTemplateServicepublic Map<String,ContentFactoryDescriptor> getFactories()
public Map<String,FactoryBindingDescriptor> getFactoryBindings()
Copyright © 2018 Nuxeo. All rights reserved.