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 |
| 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) |
Map<String,ContentFactory> |
getFactoryInstancesByFacet() |
Map<String,ContentFactory> |
getFactoryInstancesByType() |
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
applicationStarted, getAdapter, getApplicationStartedOrder, getLastModified, registerExtension, setLastModified, unregisterContribution, unregisterExtensionpublic 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 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) throws Exception
ComponentThis method is called by the runtime when a component is deactivated.
deactivate in interface Componentdeactivate in class DefaultComponentcontext - the runtime contextException - if an error occurs during activationpublic void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution in class DefaultComponentpublic ContentFactory getFactoryForType(String documentType)
getFactoryForType in interface ContentTemplateServicepublic ContentFactory getFactoryForFacet(String facet)
public void executeFactoryForType(DocumentModel createdDocument) throws ClientException
executeFactoryForType in interface ContentTemplateServiceClientExceptionpublic void executePostContentCreationHandlers(CoreSession session)
ContentTemplateServicePostContentCreationHandlers.executePostContentCreationHandlers in interface ContentTemplateServicepublic Map<String,ContentFactoryDescriptor> getFactories()
public Map<String,FactoryBindingDescriptor> getFactoryBindings()
public Map<String,ContentFactory> getFactoryInstancesByType()
public Map<String,ContentFactory> getFactoryInstancesByFacet()
Copyright © 2014 Nuxeo SA. All rights reserved.