public abstract class AbstractYResource<RESOURCE> extends AbstractResource<RESOURCE>
httpHeaders, providers, request, resourceCtx, securityCtx, serviceLocator, uriInfo| Constructor and Description |
|---|
AbstractYResource(java.lang.String composedTypeName) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createOrUpdatePostResource(java.lang.Object reqEntity,
java.lang.Object resrcEntity,
boolean mustBeCreated)
This method creates new one or updates existing response model.
|
protected void |
createOrUpdateResource(java.lang.Object reqEntity,
RESOURCE resrcEntity,
boolean mustBeCreated)
This method creates new one or updates existing response model.
|
protected void |
deleteResource(RESOURCE respEntity) |
ItemModel |
getNotsavedModelForCreate() |
YObjectGraphTransformer |
getObjectGraph() |
java.lang.String |
getResourceType() |
ItemModel |
getUniqueMember() |
protected boolean |
isAccessGranted()
Method performs security check using the type based or property file based strategy.
|
protected void |
passUniqueMember(AbstractYResource resource) |
protected java.lang.String |
prepareJaloSession() |
protected boolean |
processDtoId(java.lang.Object dto,
java.lang.String expPropValueLiteral,
boolean strict)
Internal helper method.
|
protected ItemModel |
readResourceInternal(ItemModel modelToSet)
This method sets the unique members to the input unsaved model and return the saved instance.
|
void |
setObjectGraph(YObjectGraphTransformer objectGraph) |
void |
setUniqueMember(ItemModel uniqueMember) |
protected java.lang.String |
setUserIntoJaloSession() |
afterDelete, afterPost, afterPut, beforeDelete, beforePost, beforePut, createDeleteResponse, createGetResponse, createPostResource, createPostResponse, createPutResponse, createPutResponse, createResource, getEventActionFactory, getPagingStrategy, getParentResource, getPostCommandHandler, getPutCommandHandler, getRequest, getResourceId, getResourceValue, getResponse, getSecurityContext, getSecurityStrategy, getServiceLocator, getUriInfo, isAccessGrantedExternal, notifyAfterDelete, notifyAfterGet, notifyAfterPost, notifyAfterPut, notifyBeforeDelete, notifyBeforeGet, notifyBeforePost, notifyBeforePut, processException, readPostResource, readResource, setCachingStrategy, setDeleteMethod, setEventActionFactory, setGetMethod, setPagingStrategy, setParentResource, setPostCommandHandler, setPostMethod, setPutCommandHandler, setPutMethod, setRequestProcessChain, setResourceId, setResourceValue, setSecurityStrategy, setServiceLocatorpublic void setObjectGraph(YObjectGraphTransformer objectGraph)
public YObjectGraphTransformer getObjectGraph()
public java.lang.String getResourceType()
public void setUniqueMember(ItemModel uniqueMember)
public ItemModel getUniqueMember()
public ItemModel getNotsavedModelForCreate()
protected java.lang.String setUserIntoJaloSession()
protected java.lang.String prepareJaloSession()
protected boolean isAccessGranted()
isAccessGranted in class AbstractResource<RESOURCE>protected boolean processDtoId(java.lang.Object dto,
java.lang.String expPropValueLiteral,
boolean strict)
processDtoId in class AbstractResource<RESOURCE>dto - dto to validateprotected void createOrUpdateResource(java.lang.Object reqEntity,
RESOURCE resrcEntity,
boolean mustBeCreated)
throws java.lang.Exception
readResourceInternal(de.hybris.platform.core.model.ItemModel) method.createOrUpdateResource in class AbstractResource<RESOURCE>java.lang.Exceptionprotected void createOrUpdatePostResource(java.lang.Object reqEntity,
java.lang.Object resrcEntity,
boolean mustBeCreated)
throws java.lang.Exception
readResourceInternal(de.hybris.platform.core.model.ItemModel) method.createOrUpdatePostResource in class AbstractResource<RESOURCE>reqEntity - request entity (dto)resrcEntity - resource entity (model)mustBeCreated - true when response entity must be newly created (updated only otherwise)java.lang.Exception - is allowed to throw any kind of exceptionprotected void deleteResource(RESOURCE respEntity)
deleteResource in class AbstractResource<RESOURCE>protected ItemModel readResourceInternal(ItemModel modelToSet)
modelToSet - the unsaved empty model(only unique field is set)protected void passUniqueMember(AbstractYResource resource)
resource - the child resource where unique member model will be injected.Copyright © 2018 SAP SE. All Rights Reserved.