public class RESTRegistryService extends Object implements org.exoplatform.services.rest.resource.ResourceContainer
| Constructor and Description |
|---|
RESTRegistryService(RegistryService regService,
SessionProviderService sessionProviderService) |
| Modifier and Type | Method and Description |
|---|---|
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)
|
public RESTRegistryService(RegistryService regService, SessionProviderService sessionProviderService) throws Exception
Exceptionpublic javax.ws.rs.core.Response getRegistry(@Context
javax.ws.rs.core.UriInfo uriInfo)
<registry xlinks:href="http://localhost:8080/portal/rest/registry/">
<GroovyScript2RestLoader xlinks:href="http://localhost:8080/portal/rest/registry/exo:services/GroovyScript2RestLoader"/>
<Audit xlinks:href="http://localhost:8080/portal/rest/registry/exo:services/Audit"/>
</registry>
public javax.ws.rs.core.Response getEntry(String entryPath)
entryPath - The relative path to the registry entry<Audit jcr:primaryType="exo:registryEntry">
<adminIdentity jcr:primaryType="nt:unstructured" value="*:/Platform/Administrators"/>
</Audit>
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<registry xlinks:href="http://localhost:8080/portal/rest/registry/">
<GroovyScript2RestLoader xlinks:href="http://localhost:8080/portal/rest/registry/exo:services/GroovyScript2RestLoader"/>
<Audit xlinks:href="http://localhost:8080/portal/rest/registry/exo:services/Audit"/>
</registry>
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
yet<Audit jcr:primaryType="exo:registryEntry">
<adminIdentity jcr:primaryType="nt:unstructured" value="*:/Platform/Administrators"/>
</Audit>
public javax.ws.rs.core.Response removeEntry(String entryPath)
entryPath - the absolute path of the entry to removeCopyright © 2020 eXo Platform SAS. All Rights Reserved.