|
eXo JCR :: Component :: Extension Service 1.16.0-CR2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.services.jcr.ext.registry.RESTRegistryService
public class RESTRegistryService
RESTRegistryService is RESTfull service intended to manage registry nodes.
| Constructor Summary | |
|---|---|
RESTRegistryService(RegistryService regService,
SessionProviderService sessionProviderService)
|
|
| Method Summary | |
|---|---|
javax.ws.rs.core.Response |
createEntry(InputStream entryStream,
String groupName,
javax.ws.rs.core.UriInfo uriInfo)
Creates an entry in the group. |
javax.ws.rs.core.Response |
getEntry(String entryPath)
Returns the corresponding registry entry which wraps a node of type "exo:registryEntry" |
javax.ws.rs.core.Response |
getRegistry(javax.ws.rs.core.UriInfo uriInfo)
Returns the registry node which wraps a node of type "exo:registry" (the whole registry tree) |
javax.ws.rs.core.Response |
recreateEntry(InputStream entryStream,
String groupName,
javax.ws.rs.core.UriInfo uriInfo,
boolean createIfNotExist)
Recreates a registry entry |
javax.ws.rs.core.Response |
removeEntry(String entryPath)
Removes the entry at the given absolute path (concatenation of group path / entry name) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RESTRegistryService(RegistryService regService,
SessionProviderService sessionProviderService)
throws Exception
Exception| Method Detail |
|---|
public javax.ws.rs.core.Response getRegistry(@Context
javax.ws.rs.core.UriInfo uriInfo)
public javax.ws.rs.core.Response getEntry(String entryPath)
entryPath - The relative path to the registry entry
public javax.ws.rs.core.Response createEntry(InputStream entryStream,
String groupName,
@Context
javax.ws.rs.core.UriInfo uriInfo)
entryStream - the input stream corresponding to the content of the registry entrygroupName - the relative path to the group
public javax.ws.rs.core.Response recreateEntry(InputStream entryStream,
String groupName,
@Context
javax.ws.rs.core.UriInfo uriInfo,
boolean createIfNotExist)
entryStream - the input stream corresponding to the content of the registry entrygroupName - the relative path to the groupcreateIfNotExist - if set to true, it will try to create the registry if it doesn't exist
yetpublic javax.ws.rs.core.Response removeEntry(String entryPath)
entryPath - the absolute path of the entry to remove
|
eXo JCR :: Component :: Extension Service 1.16.0-CR2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||