|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.web.rest.OnmsRestService
public class OnmsRestService
| Nested Class Summary | |
|---|---|
protected static class |
OnmsRestService.ComparisonOperation
|
| Constructor Summary | |
|---|---|
OnmsRestService()
|
|
| Method Summary | ||
|---|---|---|
protected void |
addFiltersToCriteria(javax.ws.rs.core.MultivaluedMap<String,String> params,
OnmsCriteria criteria,
Class<?> objectClass)
Method to pull out all the named params in params and use them to add restriction filters to a criteria object. |
|
protected void |
addOrdering(javax.ws.rs.core.MultivaluedMap<String,String> params,
OnmsCriteria criteria)
Does ordering processing; pulled out to a separate method for visual clarity. |
|
static String |
convertNameToPropertyName(String name)
Convert a column name with underscores to the corresponding property name using "camel case". |
|
protected Category |
log()
|
|
protected void |
setLimitOffset(javax.ws.rs.core.MultivaluedMap<String,String> params,
OnmsCriteria criteria)
Convenience for the other setLimitOffset method with the extra parameter, passing a default limit of 10 |
|
protected void |
setLimitOffset(javax.ws.rs.core.MultivaluedMap<String,String> params,
OnmsCriteria criteria,
int defaultLimit)
Uses parameters in params to setup criteria with standard limit and offset parameters. |
|
protected void |
setProperties(MultivaluedMapImpl params,
Object req)
|
|
protected
|
throwException(javax.ws.rs.core.Response.Status status,
String msg)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OnmsRestService()
| Method Detail |
|---|
protected void setLimitOffset(javax.ws.rs.core.MultivaluedMap<String,String> params,
OnmsCriteria criteria)
params - See other setLimitOffsetcriteria - See other setLimitOffset
protected void setLimitOffset(javax.ws.rs.core.MultivaluedMap<String,String> params,
OnmsCriteria criteria,
int defaultLimit)
params - Set of parameters to look in for limit and offsetcriteria - The Criteria that will be modified with the limit and offsetdefaultLimit - A limit to use if none is specified in the params
protected void addFiltersToCriteria(javax.ws.rs.core.MultivaluedMap<String,String> params,
OnmsCriteria criteria,
Class<?> objectClass)
params - set of string parameters from which various configuration properties are extractedcriteria - the object which will be populated with the filter/orderingobjectClass - the type of thing being filtered.
protected void addOrdering(javax.ws.rs.core.MultivaluedMap<String,String> params,
OnmsCriteria criteria)
params - - set of values to look in for the "order" and "orderBy" valuescriteria - - the criteria object which will be updated with ordering configuration
protected <T> T throwException(javax.ws.rs.core.Response.Status status,
String msg)
protected Category log()
public static String convertNameToPropertyName(String name)
name - the column name to be converted
protected void setProperties(MultivaluedMapImpl params,
Object req)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||