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