org.opennms.web.rest
Class OnmsCategoryResource

java.lang.Object
  extended by org.opennms.web.rest.OnmsRestService
      extended by org.opennms.web.rest.OnmsCategoryResource

@Component
@PerRequest
@Scope(value="prototype")
@Transactional
public class OnmsCategoryResource
extends OnmsRestService


Nested Class Summary
 
Nested classes/interfaces inherited from class org.opennms.web.rest.OnmsRestService
OnmsRestService.ComparisonOperation
 
Field Summary
 
Fields inherited from class org.opennms.web.rest.OnmsRestService
DEFAULT_LIMIT
 
Constructor Summary
OnmsCategoryResource()
           
 
Method Summary
 javax.ws.rs.core.Response addCategory(String nodeCriteria, OnmsCategory category)
          addCategory
 javax.ws.rs.core.Response deleteCaegory(String nodeCriteria, String categoryName)
          deleteCaegory
 OnmsCategoryCollection getCategories(String nodeCriteria)
          getCategories
 OnmsCategory getCategory(String nodeCriteria, String categoryName)
          getCategory
 javax.ws.rs.core.Response updateCategory(String nodeCriteria, String categoryName, MultivaluedMapImpl params)
          updateCategory
 
Methods inherited from class org.opennms.web.rest.OnmsRestService
addFiltersToCriteria, addOrdering, addOrdering, convertNameToPropertyName, getDistinctIdCriteria, log, setLimitOffset, setLimitOffset, setLimitOffset, setProperties, throwException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OnmsCategoryResource

public OnmsCategoryResource()
Method Detail

getCategories

public OnmsCategoryCollection getCategories(String nodeCriteria)

getCategories

Parameters:
nodeCriteria - a String object.
Returns:
a OnmsCategoryCollection object.

getCategory

public OnmsCategory getCategory(String nodeCriteria,
                                String categoryName)

getCategory

Parameters:
nodeCriteria - a String object.
categoryName - a String object.
Returns:
a OnmsCategory object.

addCategory

public javax.ws.rs.core.Response addCategory(String nodeCriteria,
                                             OnmsCategory category)

addCategory

Parameters:
nodeCriteria - a String object.
category - a OnmsCategory object.
Returns:
a Response object.

updateCategory

public javax.ws.rs.core.Response updateCategory(String nodeCriteria,
                                                String categoryName,
                                                MultivaluedMapImpl params)

updateCategory

Parameters:
nodeCriteria - a String object.
categoryName - a String object.
params - a MultivaluedMapImpl object.
Returns:
a Response object.

deleteCaegory

public javax.ws.rs.core.Response deleteCaegory(String nodeCriteria,
                                               String categoryName)

deleteCaegory

Parameters:
nodeCriteria - a String object.
categoryName - a String object.
Returns:
a Response object.


Copyright © 2011. All Rights Reserved.