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, unregisterExtension
public static final String NXCONTENT_CATEGORY_HEADER
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
registerContribution
in class DefaultComponent
Exception
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
unregisterContribution
in class DefaultComponent
Exception
public List<RestContributor> getContributors(String category, RestEvaluationContext context)
RestContributorService
Only contributors available in the given context are returned
getContributors
in interface RestContributorService
public void writeContext(org.codehaus.jackson.JsonGenerator jg, RestEvaluationContext ec) throws org.codehaus.jackson.JsonGenerationException, IOException, ClientException
RestContributorService
writeContext
in interface RestContributorService
org.codehaus.jackson.JsonGenerationException
IOException
ClientException
Copyright © 2013 Nuxeo SA. All Rights Reserved.