@Path(value="profiles") public class Profile extends BaseREST
| Modifier and Type | Field and Description |
|---|---|
static int |
PRETTY_PRINT_INDENT_FACTOR |
static String |
PROFILE_NAME_PARAMETER |
APPLICATION_JSON_CHARSET_UTF_8, GROUPS, ITEMS, LICENSES, LIMIT_PARAMETER, LOCATION_HEADER, NAMESPACES, OFFSET_PARAMETER, ORGANIZATIONS, PROFILES, PURGE_QUERY_PARAMETER, RESOURCES, USERS| Constructor and Description |
|---|
Profile() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createGenericResource(String name,
String xml) |
String |
createOrUpdate(String name,
String xml) |
javax.ws.rs.core.Response |
delete(String name) |
static org.gcube.datacatalogue.metadatadiscovery.DataCalogueMetadataFormatReader |
getDataCalogueMetadataFormatReader() |
protected org.gcube.common.resources.gcore.GenericResource |
getGenericResource(String name) |
static List<String> |
getProfilesNames()
Returns the names of the metadata profiles in a given context
|
static String |
getProfileSource(String profileName)
Returns the source xml of the metadata profile (specified via name) in a given context
|
protected org.gcube.common.resources.gcore.GenericResource |
instantiateGenericResource(String name,
String xml) |
String |
list() |
String |
read(String name,
String accept) |
protected void |
removeGenericResource(String name) |
protected void |
updateGenericResource(String name,
String xml) |
addLocation, setCalledMethodpublic static final String PROFILE_NAME_PARAMETER
public static int PRETTY_PRINT_INDENT_FACTOR
public static org.gcube.datacatalogue.metadatadiscovery.DataCalogueMetadataFormatReader getDataCalogueMetadataFormatReader()
throws Exception
Exceptionpublic static List<String> getProfilesNames() throws Exception
context - Exceptionpublic static String getProfileSource(String profileName) throws Exception
context - Exception@GET @Produces(value="application/json") public String list()
@GET
@Path(value="/{PROFILE_NAME}")
@Produces(value={"application/xml","application/json;charset=UTF-8"})
public String read(@PathParam(value="PROFILE_NAME")
String name,
@DefaultValue(value="application/json") @HeaderParam(value="Accept")
String accept)
protected org.gcube.common.resources.gcore.GenericResource instantiateGenericResource(String name, String xml) throws Exception
Exceptionprotected void createGenericResource(String name, String xml) throws Exception
Exceptionprotected org.gcube.common.resources.gcore.GenericResource getGenericResource(String name)
protected void removeGenericResource(String name)
@PUT
@Path(value="/{PROFILE_NAME}")
@Consumes(value="application/xml")
@Produces(value="application/xml")
public String createOrUpdate(@PathParam(value="PROFILE_NAME")
String name,
String xml)
@DELETE
@Path(value="/{PROFILE_NAME}")
@Consumes(value="application/xml")
@Produces(value="application/xml")
public javax.ws.rs.core.Response delete(@PathParam(value="PROFILE_NAME")
String name)
Copyright © 2019. All Rights Reserved.