Class ImportRecordEngine
- java.lang.Object
-
- org.kie.workbench.common.dmn.client.editors.included.imports.persistence.ImportRecordEngine
-
- All Implemented Interfaces:
RecordEngine<BaseIncludedModelActiveRecord>
public class ImportRecordEngine extends Object implements RecordEngine<BaseIncludedModelActiveRecord>
-
-
Constructor Summary
Constructors Constructor Description ImportRecordEngine(IncludedModelsPageStateProviderImpl stateProvider, IncludedModelsIndex includedModelsIndex, IncludedModelErrorMessageFactory messageFactory, ImportFactory importFactory, javax.enterprise.event.Event<FlashMessage> flashMessageEvent, DefinitionsHandler definitionsHandler, org.jboss.errai.ioc.client.api.ManagedInstance<DRGElementHandler> drgElementHandlers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<BaseIncludedModelActiveRecord>create(BaseIncludedModelActiveRecord record)Create a record.List<BaseIncludedModelActiveRecord>destroy(BaseIncludedModelActiveRecord record)Destroys a recordbooleanisValid(BaseIncludedModelActiveRecord record)Check if a record is valid.List<BaseIncludedModelActiveRecord>update(BaseIncludedModelActiveRecord record)Updates a record
-
-
-
Constructor Detail
-
ImportRecordEngine
@Inject public ImportRecordEngine(IncludedModelsPageStateProviderImpl stateProvider, IncludedModelsIndex includedModelsIndex, IncludedModelErrorMessageFactory messageFactory, ImportFactory importFactory, javax.enterprise.event.Event<FlashMessage> flashMessageEvent, DefinitionsHandler definitionsHandler, @Any org.jboss.errai.ioc.client.api.ManagedInstance<DRGElementHandler> drgElementHandlers)
-
-
Method Detail
-
update
public List<BaseIncludedModelActiveRecord> update(BaseIncludedModelActiveRecord record)
Description copied from interface:RecordEngineUpdates a record- Specified by:
updatein interfaceRecordEngine<BaseIncludedModelActiveRecord>- Returns:
- returning a list of all affected records by the update operation.
-
destroy
public List<BaseIncludedModelActiveRecord> destroy(BaseIncludedModelActiveRecord record)
Description copied from interface:RecordEngineDestroys a record- Specified by:
destroyin interfaceRecordEngine<BaseIncludedModelActiveRecord>- Returns:
- returning a list of all affected records by the destroy operation.
-
create
public List<BaseIncludedModelActiveRecord> create(BaseIncludedModelActiveRecord record)
Description copied from interface:RecordEngineCreate a record.- Specified by:
createin interfaceRecordEngine<BaseIncludedModelActiveRecord>- Returns:
- returning a list of all affected records by the create operation.
-
isValid
public boolean isValid(BaseIncludedModelActiveRecord record)
Description copied from interface:RecordEngineCheck if a record is valid.- Specified by:
isValidin interfaceRecordEngine<BaseIncludedModelActiveRecord>
-
-