public class NodeRepresentationService extends Object implements org.picocontainer.Startable
| Constructor and Description |
|---|
NodeRepresentationService(org.exoplatform.container.ExoContainerContext containerContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
addNodeRepresentationFactory(String nodeType,
NodeRepresentationFactory representationFactory)
Add new NodeRepresentationFactory for node type.
|
Collection<String> |
getKeys() |
NodeRepresentation |
getNodeRepresentation(javax.jcr.Node node,
String mediaTypeHint)
Get NodeRepresentation for given node.
|
Collection<String> |
getNodeTypes() |
void |
start() |
void |
stop() |
public NodeRepresentationService(org.exoplatform.container.ExoContainerContext containerContext)
public void addNodeRepresentationFactory(String nodeType, NodeRepresentationFactory representationFactory)
nodeType - the node type.representationFactory - the NodeRepresentationFactory.public NodeRepresentation getNodeRepresentation(javax.jcr.Node node, String mediaTypeHint) throws javax.jcr.RepositoryException
node - the jcr node.mediaTypeHint - the mimetype hint or null if not known.javax.jcr.RepositoryExceptionpublic Collection<String> getNodeTypes()
public Collection<String> getKeys()
public void start()
start in interface org.picocontainer.Startablepublic void stop()
stop in interface org.picocontainer.StartableCopyright © 2015 eXo Platform SAS. All Rights Reserved.