public interface Command<RESOURCE,REQUEST,RESPONSE>
| Modifier and Type | Method and Description |
|---|---|
RESPONSE |
execute(RESOURCE resourceEntity,
REQUEST requestEntity)
Executes a Command operation on an entity.
|
java.lang.String |
getName()
Returns the name of this command.
|
java.lang.String getName()
RESPONSE execute(RESOURCE resourceEntity, REQUEST requestEntity) throws java.lang.Exception
resourceEntity - this is the entity the command is executed for, it is always a Hybris ModelrequestEntity - this is a parameter which is passed and shall be applied to the entity, as this is always a DTO it may
itself provide many single parameters as DTO membersjava.lang.ExceptionCopyright © 2018 SAP SE. All Rights Reserved.