@Path(value="configurations") public interface ConfigurationService extends JAXRSService
DEFAULT_PARAM_PAGE, DEFAULT_PARAM_PAGE_VALUE, DEFAULT_PARAM_SIZE, DEFAULT_PARAM_SIZE_VALUE, PARAM_DETAILS, PARAM_FIQL, PARAM_ORDERBY, PARAM_PAGE, PARAM_SIZE| Modifier and Type | Method and Description |
|---|---|
void |
delete(String key)
Deletes the configuration parameter with matching key.
|
javax.ws.rs.core.Response |
export()
Exports internal storage content as downloadable XML file.
|
List<MailTemplate> |
getMailTemplates()
Returns a list of known mail-template names.
|
List<Validator> |
getValidators()
Returns a list of known validator names.
|
ConfTO |
list()
Returns all configuration parameters.
|
AttributeTO |
read(String key)
Returns configuration parameter with matching key.
|
void |
set(String key,
AttributeTO value)
Creates / updates the configuration parameter with the given key.
|
@GET @Path(value="stream") javax.ws.rs.core.Response export()
@GET
@Path(value="mailTemplates")
@Produces(value={"application/xml","application/json"})
List<MailTemplate> getMailTemplates()
@GET
@Path(value="validators")
@Produces(value={"application/xml","application/json"})
List<Validator> getValidators()
@GET
@Produces(value={"application/xml","application/json"})
ConfTO list()
@GET
@Path(value="{key}")
@Produces(value={"application/xml","application/json"})
AttributeTO read(@NotNull@PathParam(value="key")
String key)
key - identifier of configuration to be read@PUT
@Path(value="{key}")
@Consumes(value={"application/xml","application/json"})
void set(@NotNull@PathParam(value="key")
String key,
@NotNull
AttributeTO value)
key - parameter keyvalue - parameter value@DELETE
@Path(value="{key}")
@Consumes(value={"application/xml","application/json"})
void delete(@NotNull@PathParam(value="key")
String key)
key - configuration parameter keyCopyright © 2010–2018 The Apache Software Foundation. All rights reserved.