org.apache.clerezza.platform.content
Class Editor
java.lang.Object
org.apache.clerezza.web.fileserver.AbstractFileServer
org.apache.clerezza.web.fileserver.FileServer
org.apache.clerezza.platform.content.Editor
@Service(value=java.lang.Object.class)
@Property(name="javax.ws.rs",
boolValue=true)
public class Editor- extends org.apache.clerezza.web.fileserver.FileServer
This Jax-rs root resource provides an ajax edito ro edit content structured
using the Discobits ontology
- Author:
- rbn
|
Method Summary |
protected void |
activate(org.osgi.service.component.ComponentContext context)
On activation the FileServer is prepared |
org.apache.clerezza.rdf.utils.GraphNode |
getDiscobit(org.apache.clerezza.rdf.core.UriRef uri,
org.apache.clerezza.rdf.core.UriRef graphUri)
|
org.wymiwyg.commons.util.dirbrowser.PathNode |
getStaticFile(javax.ws.rs.core.UriInfo uriInfo)
|
void |
postDiscobit(org.apache.clerezza.rdf.core.UriRef graphUri,
String assertedString,
String revokedString)
replaces the subgraph serialized with RDF/XML in revokedString
with the one from assertedString. |
void |
setProviders(javax.ws.rs.ext.Providers providers)
The providers are injected by the Jax-rs implementation and used to
locate readers for the RDF content of the body |
| Methods inherited from class org.apache.clerezza.web.fileserver.FileServer |
configure, configure, configure, configure, getRootNode, reset |
| Methods inherited from class org.apache.clerezza.web.fileserver.AbstractFileServer |
getNode |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Editor
public Editor()
activate
protected void activate(org.osgi.service.component.ComponentContext context)
- On activation the
FileServer is prepared
- Parameters:
context -
setProviders
@Context
public void setProviders(javax.ws.rs.ext.Providers providers)
- The providers are injected by the Jax-rs implementation and used to
locate readers for the RDF content of the body
- Parameters:
providers -
getDiscobit
public org.apache.clerezza.rdf.utils.GraphNode getDiscobit(org.apache.clerezza.rdf.core.UriRef uri,
org.apache.clerezza.rdf.core.UriRef graphUri)
postDiscobit
public void postDiscobit(org.apache.clerezza.rdf.core.UriRef graphUri,
String assertedString,
String revokedString)
- replaces the subgraph serialized with RDF/XML in
revokedString
with the one from assertedString.
- Parameters:
graphUri - the graph within which the replacement has to take place or null
for the content graphassertedString - the asserted Graph as RDF/XMLrevokedString - the revoked Graph as RDF/XML
getStaticFile
public org.wymiwyg.commons.util.dirbrowser.PathNode getStaticFile(@Context
javax.ws.rs.core.UriInfo uriInfo)
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.