Package io.tesler.core.crudma
Interface Crudma
-
- All Known Implementing Classes:
AbstractCrudmaService
,BcCrudmaService
,DmnHelperFieldsCrudmaService
,DmnTaskFieldsCrudmaService
,InnerCrudmaService
,SqlCrudmaService
,TranslationCrudmaService
,UniversalCrudmaService
,WorkflowDictionaryCrudmaService
public interface Crudma
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AssociateResultDTO
associate(BusinessComponent bc, List<AssociateDTO> data)
Creates links between entitieslong
count(BusinessComponent bc)
Returns the number of matching entitiesCreateResult
create(BusinessComponent bc)
Creates an entity based on a business componentActionResultDTO
delete(BusinessComponent bc)
Deletes an entity based on a business componentDataResponseDTO
get(BusinessComponent bc)
Returns object based on a business componentResultPage<? extends DataResponseDTO>
getAll(BusinessComponent bc)
Returns all matched objects based on a business componentMetaDTO
getMeta(BusinessComponent bc)
Returns meta for entity based on a business componentMetaDTO
getMetaEmpty(BusinessComponent bc)
Returns empty meta for entity based on a business componentMetaDTO
getMetaNew(BusinessComponent bc, CreateResult data)
Returns new meta for entity based on a business componentMetaDTO
getOnFieldUpdateMeta(BusinessComponent bc, DataResponseDTO dto)
Returns on-field-update meta for entity based on a business componentActionResultDTO
invokeAction(BusinessComponent bc, String actionName, Map<String,Object> data)
Invokes action with given name, add preactions, loads or updates entity if necessaryPreviewResult
preview(BusinessComponent bc, Map<String,Object> data)
Updates an entity based on a business component by map Used in forceactive fieldsActionResultDTO
update(BusinessComponent bc, Map<String,Object> data)
Updates an entity based on a business component by map
-
-
-
Method Detail
-
get
DataResponseDTO get(BusinessComponent bc)
Returns object based on a business component- Parameters:
bc
- businessComponent- Returns:
DataResponseDTO
information about entity, it's changed fields, errors
-
getAll
ResultPage<? extends DataResponseDTO> getAll(BusinessComponent bc)
Returns all matched objects based on a business component- Parameters:
bc
- businessComponent- Returns:
ResultPage
class with list of objects
-
create
CreateResult create(BusinessComponent bc)
Creates an entity based on a business component- Parameters:
bc
- businessComponent- Returns:
CreateResult
class with DataResponseDTO and postactions
-
preview
PreviewResult preview(BusinessComponent bc, Map<String,Object> data)
Updates an entity based on a business component by map Used in forceactive fields- Parameters:
bc
- businessComponentdata
- information about entity- Returns:
PreviewResult
class with DataResponseDTO
-
update
ActionResultDTO update(BusinessComponent bc, Map<String,Object> data)
Updates an entity based on a business component by map- Parameters:
bc
- businessComponentdata
- information about entity- Returns:
ActionResultDTO
class with DataResponseDTO and postactions
-
delete
ActionResultDTO delete(BusinessComponent bc)
Deletes an entity based on a business component- Parameters:
bc
- businessComponent- Returns:
ActionResultDTO
class with DataResponseDTO and postactions
-
invokeAction
ActionResultDTO invokeAction(BusinessComponent bc, String actionName, Map<String,Object> data)
Invokes action with given name, add preactions, loads or updates entity if necessary- Parameters:
bc
- businessComponentactionName
- name of actiondata
- information about entity- Returns:
ActionResultDTO
class with DataResponseDTO and postactions
-
associate
AssociateResultDTO associate(BusinessComponent bc, List<AssociateDTO> data)
Creates links between entities- Parameters:
data
- information about an entity, whether the entity was associatedbc
- businessComponent- Returns:
AssociateResultDTO
class with DataResponseDTO and postactions
-
getMetaNew
MetaDTO getMetaNew(BusinessComponent bc, CreateResult data)
Returns new meta for entity based on a business component- Parameters:
data
- class with DataResponseDTO and postactionsbc
- businessComponent- Returns:
MetaDTO
class with meta DTO and postactions
-
getMeta
MetaDTO getMeta(BusinessComponent bc)
Returns meta for entity based on a business component- Parameters:
bc
- businessComponent- Returns:
MetaDTO
class with meta DTO and postactions
-
getMetaEmpty
MetaDTO getMetaEmpty(BusinessComponent bc)
Returns empty meta for entity based on a business component- Parameters:
bc
- businessComponent- Returns:
MetaDTO
class with meta DTO and postactions
-
getOnFieldUpdateMeta
MetaDTO getOnFieldUpdateMeta(BusinessComponent bc, DataResponseDTO dto)
Returns on-field-update meta for entity based on a business component- Parameters:
bc
- businessComponentdto
- information about entity, it's changed fields, errors- Returns:
MetaDTO
class with meta DTO and postactions
-
count
long count(BusinessComponent bc)
Returns the number of matching entities- Parameters:
bc
- businessComponent- Returns:
- count
-
-