public class RestContributorServiceImpl extends DefaultComponent implements RestContributorService
| Modifier and Type | Field and Description |
|---|---|
static String |
NXCONTENT_CATEGORY_HEADER |
| Constructor and Description |
|---|
RestContributorServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
List<RestContributor> |
getContributors(String category,
RestEvaluationContext context)
Gets contributors for a category
|
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
void |
unregisterContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
void |
writeContext(org.codehaus.jackson.JsonGenerator jg,
RestEvaluationContext ec)
Write some JSon for a given evaluation context.
|
activate, applicationStarted, deactivate, getAdapter, getApplicationStartedOrder, getLastModified, registerExtension, setLastModified, unregisterExtensionpublic static final String NXCONTENT_CATEGORY_HEADER
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
registerContribution in class DefaultComponentExceptionpublic void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
unregisterContribution in class DefaultComponentExceptionpublic List<RestContributor> getContributors(String category, RestEvaluationContext context)
RestContributorServiceOnly contributors available in the given context are returned
getContributors in interface RestContributorServicepublic void writeContext(org.codehaus.jackson.JsonGenerator jg,
RestEvaluationContext ec)
throws org.codehaus.jackson.JsonGenerationException,
IOException,
ClientException
RestContributorServicewriteContext in interface RestContributorServiceorg.codehaus.jackson.JsonGenerationExceptionIOExceptionClientExceptionCopyright © 2014 Nuxeo SA. All Rights Reserved.