@Path(value="context") public class ContextManager extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ContextManagement |
contextManager |
static String |
ID_PATH_PARAM |
| Constructor and Description |
|---|
ContextManager() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
create(String parentUUID,
String name)
e.g.
|
boolean |
delete(String uuid)
e.g.
|
String |
move(String uuid,
String newParentUUID)
e.g.
|
String |
rename(String uuid,
String name)
e.g.
|
public static final String ID_PATH_PARAM
protected ContextManagement contextManager
@PUT
@Produces(value="application/json;charset=UTF-8")
public javax.ws.rs.core.Response create(@QueryParam(value="parentContextId") @DefaultValue(value="")
String parentUUID,
@QueryParam(value="name")
String name)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextCreationException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
parentUUID - name - InternalExceptionExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextCreationExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException@DELETE
@Path(value="{id}")
@Produces(value="application/json;charset=UTF-8")
public boolean delete(@PathParam(value="id")
String uuid)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextException
uuid - org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundException@POST
@Path(value="rename/{id}")
@Produces(value="application/json;charset=UTF-8")
public String rename(@PathParam(value="id")
String uuid,
@QueryParam(value="name")
String name)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextException
uuid - name - org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextException@POST
@Path(value="move/{id}")
@Produces(value="application/json;charset=UTF-8")
public String move(@PathParam(value="id")
String uuid,
@QueryParam(value="parentContextId")
String newParentUUID)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextException
uuid - newParentUUID - org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextExceptionCopyright © 2017. All Rights Reserved.