public class Params extends Object implements Parameters
| Modifier and Type | Class and Description |
|---|---|
static class |
Params.RecognizedParams
A formal set of params that any rest service could potentially have passed in as request params
|
| Modifier | Constructor and Description |
|---|---|
protected |
Params(String entityId,
String relationshipId,
Object passedIn,
InputStream stream,
String addressedProperty,
Params.RecognizedParams recognizedParams,
BasicContentInfo contentInfo) |
| Modifier and Type | Method and Description |
|---|---|
String |
getBinaryProperty()
Gets the name of the property that was requested.
|
BasicContentInfo |
getContentInfo()
Gets the basic information about content, typically taken from a HTTPServletRequest.
|
String |
getEntityId() |
BeanPropertiesFilter |
getFilter()
Returns a
BeanPropertiesFilter for filtering out properties. |
Paging |
getPaging()
Returns a representation of the Paging of collections of resources, with skip count and max items.
|
String |
getParameter(String parameterName)
Gets a single request parameter passed in by the user.
|
org.apache.poi.ss.formula.functions.T |
getParameter(String parameterName,
Class<org.apache.poi.ss.formula.functions.T> clazz)
Gets a single request parameter passed in by the user.
|
Object |
getPassedIn() |
Query |
getQuery()
Represents a Query specified by the client.
|
Map<String,BeanPropertiesFilter> |
getRelationsFilter() |
String |
getRelationshipId() |
List<String> |
getSelectedProperties()
A list of property names passed in the request using the json pointer syntax
Specified by the "SELECT" request parameter.
|
List<SortColumn> |
getSorting()
Returns a List of
SortColumn for sorting properties. |
InputStream |
getStream() |
boolean |
hasBinaryProperty(String propertyName)
Indicates if the specified property was requested.
|
String |
toString() |
static Params |
valueOf(BeanPropertiesFilter paramFilter,
String entityId) |
static Params |
valueOf(Params.RecognizedParams recognizedParams,
String entityId,
String relationshipId) |
static Params |
valueOf(String entityId,
Params.RecognizedParams recognizedParams,
Object passedIn) |
static Params |
valueOf(String entityId,
String relationshipId) |
static Params |
valueOf(String entityId,
String relationshipId,
Object passedIn,
InputStream stream,
String addressedProperty,
Params.RecognizedParams recognizedParams,
BasicContentInfo contentInfo) |
protected Params(String entityId, String relationshipId, Object passedIn, InputStream stream, String addressedProperty, Params.RecognizedParams recognizedParams, BasicContentInfo contentInfo)
public static Params valueOf(BeanPropertiesFilter paramFilter, String entityId)
public static Params valueOf(Params.RecognizedParams recognizedParams, String entityId, String relationshipId)
public static Params valueOf(String entityId, Params.RecognizedParams recognizedParams, Object passedIn)
public static Params valueOf(String entityId, String relationshipId, Object passedIn, InputStream stream, String addressedProperty, Params.RecognizedParams recognizedParams, BasicContentInfo contentInfo)
public String getEntityId()
public Object getPassedIn()
public String getRelationshipId()
public Query getQuery()
ParametersgetQuery in interface ParametersQuerypublic Paging getPaging()
ParametersPaging
Specified by the "skipCount" and "maxItems" request parameters.getPaging in interface Parameterspublic BeanPropertiesFilter getFilter()
ParametersBeanPropertiesFilter for filtering out properties.
Specified by the "properties" request parameter.getFilter in interface ParametersBeanPropertiesFilterpublic Map<String,BeanPropertiesFilter> getRelationsFilter()
public InputStream getStream()
public String getParameter(String parameterName)
ParametersgetParameter in interface Parameterspublic org.apache.poi.ss.formula.functions.T getParameter(String parameterName, Class<org.apache.poi.ss.formula.functions.T> clazz) throws InvalidArgumentException
ParametersgetParameter in interface Parametersclazz - - type to use for conversion.InvalidArgumentExceptionpublic boolean hasBinaryProperty(String propertyName)
ParametershasBinaryProperty in interface ParameterspropertyName - the property
Specified as part of the url request.public List<SortColumn> getSorting()
ParametersSortColumn for sorting properties.
Specified by the "orderBy" request parameter.getSorting in interface ParametersSortColumnpublic String getBinaryProperty()
ParametersgetBinaryProperty in interface Parameterspublic List<String> getSelectedProperties()
ParametersgetSelectedProperties in interface Parameterspublic BasicContentInfo getContentInfo()
ParametersgetContentInfo in interface ParametersCopyright © 2005–2014 Alfresco Software. All rights reserved.