@ApplicationScoped public class ItemDefinitionRecordEngine extends Object implements DataTypeRecordEngine
Constructor and Description |
---|
ItemDefinitionRecordEngine(ItemDefinitionStore itemDefinitionStore,
ItemDefinitionDestroyHandler itemDefinitionDestroyHandler,
ItemDefinitionUpdateHandler itemDefinitionUpdateHandler,
ItemDefinitionCreateHandler itemDefinitionCreateHandler,
DataTypeDestroyHandler dataTypeDestroyHandler,
DataTypeUpdateHandler dataTypeUpdateHandler,
DataTypeCreateHandler dataTypeCreateHandler,
DataTypeNameValidator dataTypeNameValidator) |
Modifier and Type | Method and Description |
---|---|
List<DataType> |
create(DataType dataType)
Create a record.
|
List<DataType> |
create(DataType record,
DataType reference,
CreationType creationType)
Create record by using
CreationType strategy. |
List<DataType> |
destroy(DataType dataType)
Destroys a record
|
List<DataType> |
destroyWithoutDependentTypes(DataType dataType)
Destroy record, but keep all references
nested to the reference.
|
void |
doDestroy(DataType dataType) |
void |
doUpdate(DataType dataType,
ItemDefinition itemDefinition) |
void |
init() |
boolean |
isValid(DataType dataType)
Check if a record is valid.
|
List<DataType> |
update(DataType dataType)
Updates a record
|
@Inject public ItemDefinitionRecordEngine(ItemDefinitionStore itemDefinitionStore, ItemDefinitionDestroyHandler itemDefinitionDestroyHandler, ItemDefinitionUpdateHandler itemDefinitionUpdateHandler, ItemDefinitionCreateHandler itemDefinitionCreateHandler, DataTypeDestroyHandler dataTypeDestroyHandler, DataTypeUpdateHandler dataTypeUpdateHandler, DataTypeCreateHandler dataTypeCreateHandler, DataTypeNameValidator dataTypeNameValidator)
@PostConstruct public void init()
public List<DataType> update(DataType dataType)
RecordEngine
update
in interface RecordEngine<DataType>
public List<DataType> destroy(DataType dataType)
RecordEngine
destroy
in interface RecordEngine<DataType>
public List<DataType> destroyWithoutDependentTypes(DataType dataType)
DataTypeRecordEngine
destroyWithoutDependentTypes
in interface DataTypeRecordEngine
dataType
- represents the destroyed DataType
public List<DataType> create(DataType dataType)
RecordEngine
create
in interface RecordEngine<DataType>
public List<DataType> create(DataType record, DataType reference, CreationType creationType)
DataTypeRecordEngine
CreationType
strategy. The new record can be created above, below, or even
nested to the reference.create
in interface DataTypeRecordEngine
record
- represents the new DataType
reference
- represents the reference DataType
used by the 'creationType'creationType
- represents the strategy for creating a new type.public boolean isValid(DataType dataType)
RecordEngine
isValid
in interface RecordEngine<DataType>
public void doUpdate(DataType dataType, ItemDefinition itemDefinition)
public void doDestroy(DataType dataType)
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.