public class PathSegmentComponent extends DefaultComponent implements PathSegmentService
| Constructor and Description |
|---|
PathSegmentComponent() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(ComponentContext context)
Activates the component.
|
void |
deactivate(ComponentContext context)
Deactivates the component.
|
String |
generatePathSegment(DocumentModel doc)
Generate the path segment to use for a
DocumentModel that's about
to be created. |
String |
generatePathSegment(String s)
Generate the path segment to use from a string.
|
void |
registerContribution(Object contrib,
String xp,
ComponentInstance contributor) |
void |
unregisterContribution(Object contrib,
String xp,
ComponentInstance contributor) |
applicationStarted, getAdapter, getApplicationStartedOrder, getLastModified, registerExtension, setLastModified, unregisterExtensionpublic static final String XP
public void activate(ComponentContext context) throws Exception
ComponentThis method is called by the runtime when a component is activated.
activate in interface Componentactivate in class DefaultComponentcontext - the runtime contextException - if an error occurs during activationpublic 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 contrib, String xp, ComponentInstance contributor) throws Exception
registerContribution in class DefaultComponentExceptionpublic void unregisterContribution(Object contrib, String xp, ComponentInstance contributor) throws Exception
unregisterContribution in class DefaultComponentExceptionpublic String generatePathSegment(DocumentModel doc) throws ClientException
PathSegmentServiceDocumentModel that's about
to be created.generatePathSegment in interface PathSegmentServicedoc - the document/ characterClientExceptionpublic String generatePathSegment(String s) throws ClientException
PathSegmentServicegeneratePathSegment in interface PathSegmentServices - the string/ characterClientExceptionCopyright © 2014 Nuxeo SA. All rights reserved.