public class UnitResource
extends <any>
| Constructor and Description |
|---|
UnitResource()
Generated constructor - for generic creation.
|
| Modifier and Type | Method and Description |
|---|---|
Response |
deleteUnit()
Generated HTTP method for covering DELETE requests.
|
AbstractYResource |
getHMCHistoryEntryResource(String resourceKey)
Generated getter for sub resource of type
HMCHistoryEntryResource for current root resource |
AbstractYResource |
getLinkResource(String resourceKey)
Generated getter for sub resource of type
LinkResource for current root resource |
Response |
getUnit()
Generated HTTP method for covering GET requests.
|
UnitModel |
getUnitModel()
Convenience method which just delegates to
#getResourceValue() |
Response |
putUnit(UnitDTO dto)
Generated HTTP method for covering PUT requests.
|
protected UnitModel |
readResource(String resourceId)
Gets the
UnitModel resource which is addressed by current resource request. |
void |
setUnitModel(UnitModel value)
Convenience method which just delegates to
#setResourceValue(UnitModel) |
public Response deleteUnit()
Responsepublic AbstractYResource getHMCHistoryEntryResource(String resourceKey)
HMCHistoryEntryResource for current root resourcepublic AbstractYResource getLinkResource(String resourceKey)
LinkResource for current root resourcepublic Response getUnit()
Responsepublic UnitModel getUnitModel()
#getResourceValue()public Response putUnit(UnitDTO dto)
Responseprotected UnitModel readResource(String resourceId) throws Exception
UnitModel resource which is addressed by current resource request.Exceptionde.hybris.platform.webservices.AbstractYResource#readResource(String)public void setUnitModel(UnitModel value)
#setResourceValue(UnitModel)Copyright © 2017 SAP SE. All Rights Reserved.