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

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

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

Provides access to properties used by the application.


Constructor Summary
PropertyKeysResource()
           
 
Method Summary
 PropertiesConfiguration getAsHtml(String configurationKey)
          Returns the property keys for a selected configuration.
 String getAsText(String configurationKey)
          Returns the property keys for a selected configuration.
 PropertiesConfiguration getAsXml(String configurationKey)
          Returns the property keys for a selected configuration as SDoc XML.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyKeysResource

public PropertyKeysResource()
Method Detail

getAsText

@GET
@Path(value="/configurations/{configuration : .+}/keys")
@Produces(value="text/plain")
public String getAsText(@PathParam(value="configuration")
                                          String configurationKey)
Returns the property keys for a selected configuration.

Parameters:
configurationKey - the configuration key with slashes replaced by pipes.
Returns:
the string representation.

getAsHtml

@GET
@Path(value="/configurations/{configuration : .+}/keys")
@Produces(value="text/html")
public PropertiesConfiguration getAsHtml(@PathParam(value="configuration")
                                                           String configurationKey)
Returns the property keys for a selected configuration.

Parameters:
configurationKey - the configuration key to fetch property keys from.
Returns:
the HTML representation.

getAsXml

@GET
@Path(value="/configurations/{configuration : .+}/keys")
@Produces(value="text/xml")
public PropertiesConfiguration getAsXml(@PathParam(value="configuration")
                                                          String configurationKey)
Returns the property keys for a selected configuration as SDoc XML.

Parameters:
configurationKey - the configuration key to fetch property keys from.
Returns:
the XML representation.


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