Package com.bytedesk.core.flow
Class FlowRestService
java.lang.Object
com.bytedesk.core.base.BaseRestService<FlowEntity,FlowRequest,FlowResponse>
com.bytedesk.core.flow.FlowRestService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final FlowRepository
private final org.modelmapper.ModelMapper
private final UidUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertToResponse
(FlowEntity entity) create
(FlowRequest request) void
delete
(FlowRequest request) void
deleteByUid
(String uid) void
handleOptimisticLockingFailureException
(org.springframework.orm.ObjectOptimisticLockingFailureException e, FlowEntity entity) org.springframework.data.domain.Page<FlowResponse>
queryByOrg
(FlowRequest request) queryByUid
(FlowRequest request) org.springframework.data.domain.Page<FlowResponse>
queryByUser
(FlowRequest request) save
(FlowEntity entity) update
(FlowRequest request) Methods inherited from class com.bytedesk.core.base.BaseRestService
getUidFromRequest
-
Field Details
-
flowRepository
-
modelMapper
private final org.modelmapper.ModelMapper modelMapper -
uidUtils
-
-
Constructor Details
-
FlowRestService
public FlowRestService()
-
-
Method Details
-
queryByOrg
- Specified by:
queryByOrg
in classBaseRestService<FlowEntity,
FlowRequest, FlowResponse>
-
queryByUser
- Specified by:
queryByUser
in classBaseRestService<FlowEntity,
FlowRequest, FlowResponse>
-
findByUid
@Cacheable(value="flow", key="#uid", unless="#result==null") public Optional<FlowEntity> findByUid(String uid) - Specified by:
findByUid
in classBaseRestService<FlowEntity,
FlowRequest, FlowResponse>
-
create
- Specified by:
create
in classBaseRestService<FlowEntity,
FlowRequest, FlowResponse>
-
update
- Specified by:
update
in classBaseRestService<FlowEntity,
FlowRequest, FlowResponse>
-
save
- Specified by:
save
in classBaseRestService<FlowEntity,
FlowRequest, FlowResponse>
-
deleteByUid
- Specified by:
deleteByUid
in classBaseRestService<FlowEntity,
FlowRequest, FlowResponse>
-
delete
- Specified by:
delete
in classBaseRestService<FlowEntity,
FlowRequest, FlowResponse>
-
handleOptimisticLockingFailureException
public void handleOptimisticLockingFailureException(org.springframework.orm.ObjectOptimisticLockingFailureException e, FlowEntity entity) - Specified by:
handleOptimisticLockingFailureException
in classBaseRestService<FlowEntity,
FlowRequest, FlowResponse>
-
convertToResponse
- Specified by:
convertToResponse
in classBaseRestService<FlowEntity,
FlowRequest, FlowResponse>
-
queryByUid
- Overrides:
queryByUid
in classBaseRestService<FlowEntity,
FlowRequest, FlowResponse>
-