eu.scape_project.watch.rest.resource
Class PropertyValueResource

java.lang.Object
  extended by com.wordnik.swagger.core.JavaHelp
      extended by eu.scape_project.watch.rest.resource.PropertyValueResource
Direct Known Subclasses:
PropertyValueResourceJSON, PropertyValueResourceXML

public class PropertyValueResource
extends com.wordnik.swagger.core.JavaHelp

REST API for PropertyValue operations.

Author:
Luis Faria

Constructor Summary
PropertyValueResource()
           
 
Method Summary
 javax.ws.rs.core.Response createPropertyValue(String entityName, String propertyName, String value)
          Create a new property value.
 javax.ws.rs.core.Response deletePropertyValue(String entityName, String propertyName)
          Delete an existing PropertyValue.
 javax.ws.rs.core.Response getPropertyValueByName(String entityName, String propertyName)
          Get an existing PropertyValue.
 javax.ws.rs.core.Response listPropertyValue()
          Ge a list with all existing PropertyValue, independently of the Entity or Property they refer to.
 javax.ws.rs.core.Response updatePropertyValue(String entityName, String propertyName, String value)
          Update an existing PropertyValue.
 
Methods inherited from class com.wordnik.swagger.core.JavaHelp
getHelp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyValueResource

public PropertyValueResource()
Method Detail

getPropertyValueByName

public javax.ws.rs.core.Response getPropertyValueByName(String entityName,
                                                        String propertyName)
Get an existing PropertyValue.

Parameters:
entityName - The name of the Entity this property value refers to.
propertyName - The name of the Property this property value refers to.
Returns:
The PropertyValue or throws NotFoundException if not found.

listPropertyValue

public javax.ws.rs.core.Response listPropertyValue()
Ge a list with all existing PropertyValue, independently of the Entity or Property they refer to.

Returns:
The complete list of PropertyValue in the KB

createPropertyValue

public javax.ws.rs.core.Response createPropertyValue(String entityName,
                                                     String propertyName,
                                                     String value)
Create a new property value.

Parameters:
entityName - The name of the related Entity
propertyName - The name of the related Property
value - The value of the Property for the Entity
Returns:
The newly created PropertyValue.

updatePropertyValue

public javax.ws.rs.core.Response updatePropertyValue(String entityName,
                                                     String propertyName,
                                                     String value)
Update an existing PropertyValue.

Parameters:
entityName - The name of the related Entity.
propertyName - The name of the related Property.
value - The new value of the Property for the Entity
Returns:
The updated PropertyValue.

deletePropertyValue

public javax.ws.rs.core.Response deletePropertyValue(String entityName,
                                                     String propertyName)
Delete an existing PropertyValue.

Parameters:
entityName - The name of the related Entity.
propertyName - The name of the related Property.
Returns:
The deleted PropertyValue or throws NotFoundException if not found.


Copyright © 2012 SCAPE. All Rights Reserved.