Package org.nuclos.api.rule
Interface InsertRule
@RuleType(name="nuclos.ruletype.insertrule.name",
description="nuclos.ruletype.insertrule.description")
public interface InsertRule
InsertRule is the interface that should be used to make an rule
applicable for Insert-Events.
Classes implementing this interface can be attached to entities. In case of an Insert-Event the method insert is called.
- Author:
- Matthias Reichart
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidinsert(InsertContext context) InsertContextis the context providing all insert - relevant attributes and methods.
-
Method Details
-
insert
InsertContextis the context providing all insert - 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
-