ActionHandlerService¶
-
public interface
ActionHandlerService
¶ The
ActionHandlerService
interface provides methods for handling tasks actions events related with MDS CRUD operations.
Methods¶
create¶
-
void
create
(Map<String, Object> parameters)¶ Creates an instance of the entity, based on the provided parameters. The parameters should contain the entity class name and field values.
Parameters: - parameters – a map of parameters
Throws: - ActionHandlerException – if the instance of the entity could not get created due to missing class name, lack of constructor, or any other reasons
createOrUpdate¶
-
void
createOrUpdate
(Map<String, Object> parameters)¶ Updates or creates an instance of the entity, based on the provided parameters.
Parameters: - parameters – a map of parameters
Throws: - ActionHandlerException – if the instance could not get updated / created due to missing class name, missing id of the instance, missing instance of the given id, problems setting instance properties, or any other reasons
delete¶
-
void
delete
(Map<String, Object> parameters)¶ Deletes an instance of the entity, based on the provided parameters. The parameters should contain the entity class name and instance id.
Parameters: - parameters – a map of parameters
Throws: - ActionHandlerException – if the instance could not get deleted due to missing class name, missing id of the instance, missing instance of the given id, or any other reasons.
queryAndUpdate¶
-
void
queryAndUpdate
(Map<String, Object> parameters)¶ Query and updates each instance of the entity, based on the provided parameters.
Parameters: - parameters –
Throws: - ActionHandlerException – if the instance could not get updated due to missing class name, missing id of the instance, missing instance of the given id, problems setting instance properties, or any other reasons
update¶
-
void
update
(Map<String, Object> parameters)¶ Updates an instance of the entity, based on the provided parameters. The parameters should contain the entity class name, id of the instance and field values to update.
Parameters: - parameters – a map of parameters
Throws: - ActionHandlerException – if the instance could not get updated due to missing class name, missing id of the instance, missing instance of the given id, problems setting instance properties, or any other reasons