Class NotificationSettingsServiceImpl
- java.lang.Object
-
- io.tesler.core.crudma.impl.AbstractResponseService<T,E>
-
- io.tesler.core.crudma.impl.VersionAwareResponseService<NotificationSettingsDTO,NotificationSettings>
-
- io.tesler.notifications.crudma.impl.NotificationSettingsServiceImpl
-
- All Implemented Interfaces:
ResponseService<NotificationSettingsDTO,NotificationSettings>
,NotificationSettingsService
@Service public class NotificationSettingsServiceImpl extends VersionAwareResponseService<NotificationSettingsDTO,NotificationSettings> implements NotificationSettingsService
-
-
Field Summary
-
Fields inherited from class io.tesler.core.crudma.impl.AbstractResponseService
applicationContext, baseDAO, bcSpecificationHolder, linkSpecificationHolder, parentSpec, preActionConditionHolderAssoc, preActionConditionHolderDataResponse, securitySpecificationHolder, typeOfDTO, typeOfEntity
-
-
Constructor Summary
Constructors Constructor Description NotificationSettingsServiceImpl()
-
Method Summary
-
Methods inherited from class io.tesler.core.crudma.impl.VersionAwareResponseService
create, createEntity, doPreview, getLockTimeout, loadEntity, preview, updateEntity
-
Methods inherited from class io.tesler.core.crudma.impl.AbstractResponseService
associate, cast, count, count, count, doAssociate, doGetOne, dtoListToResultPage, entityListToResultPage, getAssociatedSsNames, getAvailableActions, getBcSpecification, getFetchGraph, getFetchGraphName, getFieldMetaBuilder, getLinkSpecification, getList, getList, getList, getOne, getOneAsEntity, getPageEntities, getPreActionsForSave, getSecuritySpecification, getSpecification, hasPersister, invokeAction, isDeferredCreationSupported, isExist, onCancel, unwrap, validate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.tesler.core.service.ResponseService
associate, count, createEntity, getAvailableActions, getFieldMetaBuilder, getList, getOne, getOneAsEntity, getTypeOfDTO, getTypeOfEntity, hasPersister, invokeAction, isDeferredCreationSupported, onCancel, preview, unwrap, updateEntity, validate
-
-
-
-
Method Detail
-
entitiesToDtos
protected ResultPage<NotificationSettingsDTO> entitiesToDtos(BusinessComponent bc, ResultPage<NotificationSettings> entities)
- Overrides:
entitiesToDtos
in classAbstractResponseService<NotificationSettingsDTO,NotificationSettings>
-
entityToDto
protected NotificationSettingsDTO entityToDto(BusinessComponent bc, NotificationSettings entity, NotificationSettings userSettings)
-
entityToDto
protected NotificationSettingsDTO entityToDto(BusinessComponent bc, NotificationSettings entity)
- Overrides:
entityToDto
in classAbstractResponseService<NotificationSettingsDTO,NotificationSettings>
-
getParentSpecification
protected org.springframework.data.jpa.domain.Specification<NotificationSettings> getParentSpecification(BusinessComponent bc)
- Overrides:
getParentSpecification
in classAbstractResponseService<NotificationSettingsDTO,NotificationSettings>
-
doCreateEntity
protected CreateResult<NotificationSettingsDTO> doCreateEntity(NotificationSettings entity, BusinessComponent bc)
- Specified by:
doCreateEntity
in classVersionAwareResponseService<NotificationSettingsDTO,NotificationSettings>
-
doUpdateEntity
protected ActionResultDTO<NotificationSettingsDTO> doUpdateEntity(NotificationSettings entity, NotificationSettingsDTO dto, BusinessComponent bc)
- Specified by:
doUpdateEntity
in classVersionAwareResponseService<NotificationSettingsDTO,NotificationSettings>
-
getActions
public Actions<NotificationSettingsDTO> getActions()
Description copied from interface:ResponseService
Returns actions for entity with conditions of their availability invoked by method getAvailableActions- Specified by:
getActions
in interfaceResponseService<NotificationSettingsDTO,NotificationSettings>
- Overrides:
getActions
in classAbstractResponseService<NotificationSettingsDTO,NotificationSettings>
- Returns:
AssociateResultDTO
class with DataResponseDTO and postactions
-
deleteEntity
public ActionResultDTO<NotificationSettingsDTO> deleteEntity(BusinessComponent bc)
Description copied from interface:ResponseService
Deletes an entity based on a business component- Specified by:
deleteEntity
in interfaceResponseService<NotificationSettingsDTO,NotificationSettings>
- Overrides:
deleteEntity
in classAbstractResponseService<NotificationSettingsDTO,NotificationSettings>
- Parameters:
bc
- businessComponent- Returns:
ActionResultDTO
class with DataResponseDTO and postactions
-
evictCache
public void evictCache(NotificationSettings settings)
- Specified by:
evictCache
in interfaceNotificationSettingsService
-
getOrCreateUserCopy
public NotificationSettings getOrCreateUserCopy(NotificationSettings entity)
- Specified by:
getOrCreateUserCopy
in interfaceNotificationSettingsService
-
getGlobalSettings
public NotificationSettings getGlobalSettings(LOV event)
- Specified by:
getGlobalSettings
in interfaceNotificationSettingsService
-
getUserSettings
public NotificationSettings getUserSettings(LOV event)
- Specified by:
getUserSettings
in interfaceNotificationSettingsService
-
-