Package org.nuclos.api.rule
Interface UpdateRule
@RuleType(name="nuclos.ruletype.updaterule.name",
description="nuclos.ruletype.updaterule.description")
public interface UpdateRule
UpdateRule
is the interface that should be used to make an rule
applicable for Update-Events.
Classes implementing this interface can be attached to entities. In case of an Update-Event the method update is called.
- Author:
- Matthias Reichart
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
update
(UpdateContext context) UpdateContext
is the context providing all update - relevant attributes and methods.
-
Method Details
-
update
UpdateContext
is the context providing all update - relevant attributes and methods.To get the BusinessObject the method getBusinessObject() can be called.
Note: Only
BusinessObject
/ Entities that are modifiable can be used in Update-Event.If a
BusinessObject
cannot be used in this context check wether the entity is set modifiyable- Parameters:
context
-- Throws:
BusinessException
-