Package io.tesler.core.service
Interface ResponseService<T extends DataResponseDTO,E extends BaseEntity>
-
- All Known Subinterfaces:
AudDictionaryService
,BcPropertiesService
,BcResponseAssocService
,BcResponseService
,BcService
,CustomizableResponseSrvsService
,DeptService
,DictionaryItemService
,DictionaryLnkRuleCondService
,DictionaryLnkRuleService
,DictionaryLnkRuleValueAssocService
,DictionaryLnkRuleValueService
,DictionaryTypeDescService
,FilterGroupService
,NotificationRecipientService
,NotificationService
,NotificationSettingsService
,NotificationTemplateService
,ScheduledJobParamService
,ScheduledJobService
,ScreenCrudmaService
,ScreenService
,ScreenViewGroupDataService
,SystemSettingService
,TaskChildBcService
,ViewCrudmaService
,ViewsService
,WidgetCrudmaService
,WidgetService
,WorkflowableTaskService<D,E>
,WorkflowAssigneeRecommendationService
,WorkflowConditionService
,WorkflowPostFunctionService
,WorkflowService
,WorkflowStepConditionGroupService
,WorkflowStepFieldService
,WorkflowStepService
,WorkflowTaskChildBcAvailabilityService
,WorkflowTaskFieldsService
,WorkflowTaskMigrationService
,WorkflowTransitionConditionGroupService
,WorkflowTransitionGroupService
,WorkflowTransitionService
,WorkflowTransitionValidationService
,WorkflowVersionService
- All Known Implementing Classes:
AbstractResponseService
,AudDictionaryServiceImpl
,BaseDictionaryLnkRuleCondServiceImpl
,BaseWorkflowAssigneeRecommendationServiceImpl
,BaseWorkflowConditionServiceImpl
,BaseWorkflowPostFunctionServiceImpl
,BaseWorkflowTransitionValidationServiceImpl
,BcPropertiesServiceImpl
,BcServiceImpl
,CustomizableRespSrvsServiceImpl
,DeptServiceImpl
,DictionaryItemsServiceImpl
,DictionaryLnkRuleCondServiceImpl
,DictionaryLnkRuleServiceImpl
,DictionaryLnkRuleValueAssocServiceImpl
,DictionaryLnkRuleValueServiceImpl
,DictionaryTypeDescServiceImpl
,FilterGroupServiceImpl
,HistoricityResponseService
,NotificationRecipientServiceImpl
,NotificationSettingsServiceImpl
,ScheduledJobParamServiceImpl
,ScheduledJobServiceImpl
,ScreenServiceImpl
,SystemSettingServiceImpl
,TaskChildBcServiceImpl
,VersionAwareResponseService
,WidgetServiceImpl
,WorkflowAssigneeRecommendationServiceImpl
,WorkflowConditionServiceImpl
,WorkflowPostFunctionServiceImpl
,WorkflowServiceImpl
,WorkflowStepConditionGroupServiceImpl
,WorkflowStepFieldServiceImpl
,WorkflowStepServiceImpl
,WorkflowTaskChildBcAvailabilityServiceImpl
,WorkflowTaskFieldsServiceImpl
,WorkflowTaskMigrationServiceImpl
,WorkflowTransitionConditionGroupServiceImpl
,WorkflowTransitionGroupServiceImpl
,WorkflowTransitionServiceImpl
,WorkflowTransitionValidationServiceImpl
,WorkflowVersionServiceImpl
public interface ResponseService<T extends DataResponseDTO,E extends BaseEntity>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description AssociateResultDTO
associate(List<AssociateDTO> data, BusinessComponent bc)
Сreates links between entitieslong
count(BusinessComponent bc)
Returns the number of matching entitiesCreateResult<T>
createEntity(BusinessComponent bc)
Creates an entity based on a business componentActionResultDTO<T>
deleteEntity(BusinessComponent bc)
Deletes an entity based on a business componentActions<T>
getActions()
Returns actions for entity with conditions of their availability invoked by method getAvailableActionsActionsDTO
getAvailableActions(RowMetaType metaType, DataResponseDTO data, BusinessComponent bc)
Returns actions for entity with conditions of their availability invoke method getActionsClass<? extends FieldMetaBuilder<T>>
getFieldMetaBuilder()
Returns FieldMetaBuilder for classResultPage<T>
getList(BusinessComponent bc)
Returns a list of matched objects based on a business componentT
getOne(BusinessComponent bc)
Returns object based on a business componentBaseEntity
getOneAsEntity(BusinessComponent bc)
Returns an entity based on a business componentClass<T>
getTypeOfDTO()
Returns the number of matching entitiesClass<E>
getTypeOfEntity()
Returns the number of matching entitiesboolean
hasPersister()
Determines whether the service interacts with an entity from the databaseActionResultDTO<T>
invokeAction(BusinessComponent bc, String actionName, DataResponseDTO data)
Invokes action with given name, add preactions, loads or updates entity if necessaryboolean
isDeferredCreationSupported(BusinessComponent bc)
Determines is deferred saving of new objects supportedActionResultDTO
onCancel(BusinessComponent bc)
Returns actions invoked with cancelActionResultDTO<T>
preview(BusinessComponent bc, DataResponseDTO data)
Updates an entity based on a business component by DTO Used in forceactive fields<V> V
unwrap(Class<V> cls)
Deprecated.ActionResultDTO<T>
updateEntity(BusinessComponent bc, DataResponseDTO data)
Updates an entity based on a business component by DTOvoid
validate(BusinessComponent bc, DataResponseDTO data)
Validates the entry on save
-
-
-
Method Detail
-
getOneAsEntity
BaseEntity getOneAsEntity(BusinessComponent bc)
Returns an entity based on a business component- Parameters:
bc
- businessComponent- Returns:
BaseEntity
entity
-
getOne
T getOne(BusinessComponent bc)
Returns object based on a business component- Parameters:
bc
- businessComponent- Returns:
- object
-
hasPersister
boolean hasPersister()
Determines whether the service interacts with an entity from the database- Returns:
- true/false
-
getList
ResultPage<T> getList(BusinessComponent bc)
Returns a list of matched objects based on a business component- Parameters:
bc
- businessComponent- Returns:
- list of matched objects
-
createEntity
CreateResult<T> createEntity(BusinessComponent bc)
Creates an entity based on a business component- Parameters:
bc
- businessComponent- Returns:
CreateResult
class with DataResponseDTO and postactions
-
updateEntity
ActionResultDTO<T> updateEntity(BusinessComponent bc, DataResponseDTO data)
Updates an entity based on a business component by DTO- Parameters:
bc
- businessComponentdata
- information about entity, it's changed fields, errors- Returns:
ActionResultDTO
class with DataResponseDTO and postactions
-
preview
ActionResultDTO<T> preview(BusinessComponent bc, DataResponseDTO data)
Updates an entity based on a business component by DTO Used in forceactive fields- Parameters:
bc
- businessComponentdata
- information about entity, it's changed fields, errors- Returns:
ActionResultDTO
class with DataResponseDTO and postactions
-
deleteEntity
ActionResultDTO<T> deleteEntity(BusinessComponent bc)
Deletes an entity based on a business component- Parameters:
bc
- businessComponent- Returns:
ActionResultDTO
class with DataResponseDTO and postactions
-
invokeAction
ActionResultDTO<T> invokeAction(BusinessComponent bc, String actionName, DataResponseDTO data)
Invokes action with given name, add preactions, loads or updates entity if necessary- Parameters:
bc
- businessComponentactionName
- name of actiondata
- information about entity, it's changed fields, errors- Returns:
ActionResultDTO
class with DataResponseDTO and postactions
-
associate
AssociateResultDTO associate(List<AssociateDTO> data, BusinessComponent bc)
Сreates links between entities- Parameters:
data
- information about an entity, whether the entity was associatedbc
- businessComponent- Returns:
AssociateResultDTO
class with DataResponseDTO and postactions
-
getAvailableActions
ActionsDTO getAvailableActions(RowMetaType metaType, DataResponseDTO data, BusinessComponent bc)
Returns actions for entity with conditions of their availability invoke method getActions- Parameters:
metaType
- type of metadata
- information about entity, it's changed fields, errorsbc
- businessComponent- Returns:
AssociateResultDTO
class with DataResponseDTO and postactions
-
getActions
Actions<T> getActions()
Returns actions for entity with conditions of their availability invoked by method getAvailableActions- Returns:
AssociateResultDTO
class with DataResponseDTO and postactions
-
onCancel
ActionResultDTO onCancel(BusinessComponent bc)
Returns actions invoked with cancel- Parameters:
bc
- businessComponent- Returns:
AssociateResultDTO
class with DataResponseDTO and postactions
-
getFieldMetaBuilder
Class<? extends FieldMetaBuilder<T>> getFieldMetaBuilder()
Returns FieldMetaBuilder for class- Returns:
FieldMetaBuilder
class for building field meta
-
count
long count(BusinessComponent bc)
Returns the number of matching entities- Parameters:
bc
- businessComponent- Returns:
- count
-
validate
void validate(BusinessComponent bc, DataResponseDTO data)
Validates the entry on save- Parameters:
bc
- businessComponentdata
- information about entity, it's changed fields, errors
-
unwrap
@Deprecated <V> V unwrap(Class<V> cls)
Deprecated.
-
isDeferredCreationSupported
boolean isDeferredCreationSupported(BusinessComponent bc)
Determines is deferred saving of new objects supported- Parameters:
bc
- businessComponent
-
-