public class TypedIdResource extends FilterableResource
| Modifier and Type | Field and Description |
|---|---|
protected UuidResource |
idResource |
protected TypeResource |
typeResource |
wrappedResourceidProperty, securityContext| Modifier | Constructor and Description |
|---|---|
protected |
TypedIdResource(SecurityContext securityContext) |
|
TypedIdResource(SecurityContext securityContext,
UuidResource idResource,
TypeResource typeResource) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkAndConfigure(String part,
SecurityContext securityContext,
javax.servlet.http.HttpServletRequest request)
Check and configure this instance with the given values.
|
Result |
doGet(PropertyKey sortKey,
boolean sortDescending,
int pageSize,
int page,
String offsetId) |
RestMethodResult |
doPost(Map<String,Object> propertySet) |
GraphObject |
getEntity() |
Class |
getEntityClass() |
UuidResource |
getIdResource() |
String |
getResourceSignature() |
TypeResource |
getTypeResource() |
String |
getUriPart() |
boolean |
isCollectionResource() |
Resource |
tryCombineWith(Resource next) |
isPrimitiveArray, wrapResourceapplyDefaultSorting, buildLocationHeader, configureIdProperty, configurePropertyView, createPostTransaction, doDelete, doHead, doOptions, doPut, extractDistanceSearch, extractSearchableAttributes, findPropertyKey, parseInteger, postProcessResultSet, setSecurityContextprotected TypeResource typeResource
protected UuidResource idResource
protected TypedIdResource(SecurityContext securityContext)
public TypedIdResource(SecurityContext securityContext, UuidResource idResource, TypeResource typeResource)
public boolean checkAndConfigure(String part, SecurityContext securityContext, javax.servlet.http.HttpServletRequest request) throws FrameworkException
ResourcecheckAndConfigure in class Resourcepart - the uri part that matched this resourcesecurityContext - the security context of the current requestrequest - the current requestFrameworkExceptionpublic Result doGet(PropertyKey sortKey, boolean sortDescending, int pageSize, int page, String offsetId) throws FrameworkException
doGet in class ResourceFrameworkExceptionpublic RestMethodResult doPost(Map<String,Object> propertySet) throws FrameworkException
doPost in class WrappingResourceFrameworkExceptionpublic Class getEntityClass()
getEntityClass in class WrappingResourcepublic TypeResource getTypeResource()
public UuidResource getIdResource()
public Resource tryCombineWith(Resource next) throws FrameworkException
tryCombineWith in class FilterableResourceFrameworkExceptionpublic String getUriPart()
getUriPart in class WrappingResourcepublic String getResourceSignature()
getResourceSignature in class Resourcepublic boolean isCollectionResource()
isCollectionResource in class WrappingResourcepublic GraphObject getEntity() throws FrameworkException
FrameworkExceptionCopyright © 2014. All rights reserved.