public class TypeResource extends SortableResource
AbstractNode#getRelationshipWith) and follow that path.| Modifier and Type | Field and Description |
|---|---|
protected Class |
entityClass |
protected boolean |
isNode |
protected Query |
query |
protected String |
rawType |
protected javax.servlet.http.HttpServletRequest |
request |
protected Class<? extends SearchCommand> |
searchCommandType |
wrappedResourceidProperty, securityContext| Constructor and Description |
|---|
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.
|
void |
collectSearchAttributes(Query query) |
NodeInterface |
createNode(Map<String,Object> propertySet) |
Result |
doGet(PropertyKey sortKey,
boolean sortDescending,
int pageSize,
int page,
String offsetId) |
RestMethodResult |
doPost(Map<String,Object> propertySet) |
RestMethodResult |
doPut(Map<String,Object> propertySet) |
Class |
getEntityClass() |
String |
getRawType() |
String |
getResourceSignature() |
String |
getUriPart() |
boolean |
isCollectionResource() |
void |
setEntityClass(Class<? extends GraphObject> type) |
void |
setSearchCommandType(Class<? extends SearchCommand> searchCommand) |
Resource |
tryCombineWith(Resource next) |
isPrimitiveArray, wrapResourceapplyDefaultSorting, buildLocationHeader, configureIdProperty, configurePropertyView, createPostTransaction, doDelete, doHead, doOptions, extractDistanceSearch, extractSearchableAttributes, findPropertyKey, parseInteger, postProcessResultSet, setSecurityContextprotected Class<? extends SearchCommand> searchCommandType
protected Class entityClass
protected String rawType
protected javax.servlet.http.HttpServletRequest request
protected Query query
protected boolean isNode
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 RestMethodResult doPut(Map<String,Object> propertySet) throws FrameworkException
doPut in class ResourceFrameworkExceptionpublic NodeInterface createNode(Map<String,Object> propertySet) throws FrameworkException
FrameworkExceptionpublic Resource tryCombineWith(Resource next) throws FrameworkException
tryCombineWith in class SortableResourceFrameworkExceptionpublic String getUriPart()
getUriPart in class WrappingResourcepublic String getRawType()
public Class getEntityClass()
getEntityClass in class WrappingResourcepublic void setEntityClass(Class<? extends GraphObject> type)
public void setSearchCommandType(Class<? extends SearchCommand> searchCommand)
public String getResourceSignature()
getResourceSignature in class Resourcepublic boolean isCollectionResource()
isCollectionResource in class WrappingResourcepublic void collectSearchAttributes(Query query) throws FrameworkException
FrameworkExceptionCopyright © 2014. All rights reserved.