de.smartics.properties.admin.resources.controller
Class ConfigurationKeysResource

Package class diagram package ConfigurationKeysResource
java.lang.Object
  extended by de.smartics.properties.admin.resources.controller.ConfigurationKeysResource

@Path(value="")
@RolesAllowed(value="view")
public class ConfigurationKeysResource
     
     
extends Object

Provides access to configuration keys to select a configuration.


Constructor Summary
ConfigurationKeysResource()
           
 
Method Summary
 ConfigurationKeys getAsHtml()
          Returns the configuration keys for the configured application.
 String getAsText()
          Returns the configuration keys for the configured application.
 ConfigurationKeys getAsXml()
          Returns the configuration keys for the configured application.
 javax.ws.rs.core.Response postAsHtml(String configurationKey)
          Creates a new, empty configuration instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationKeysResource

public ConfigurationKeysResource()
Method Detail

getAsText

@GET
@Path(value="/configurations")
@Produces(value="text/plain")
public String getAsText()
Returns the configuration keys for the configured application.

Returns:
the string representation.

getAsHtml

@GET
@Path(value="/configurations")
@Produces(value="text/html")
public ConfigurationKeys getAsHtml()
Returns the configuration keys for the configured application.

Returns:
the HTML representation.

getAsXml

@GET
@Path(value="/configurations")
@Produces(value={"text/xml","application/xml"})
public ConfigurationKeys getAsXml()
Returns the configuration keys for the configured application.

Returns:
the SDoc XML representation.

postAsHtml

@POST
@Path(value="/configurations")
@Produces(value="text/html")
@RolesAllowed(value="create-config")
public javax.ws.rs.core.Response postAsHtml(@FormParam(value="configuration")
                                                                            String configurationKey)
Creates a new, empty configuration instance. As long as no properties are added, the configuration is only stored in-memory and will not be available after program start.

Parameters:
configurationKey - the key to the configuration to create.
Returns:
the HTML representation.


Copyright © 2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.