Class ThreadRatingRestService
java.lang.Object
com.bytedesk.core.base.BaseRestService<ThreadRatingEntity,ThreadRatingRequest,ThreadRatingResponse>
com.bytedesk.service.thread_rating.ThreadRatingRestService
@Service
public class ThreadRatingRestService
extends BaseRestService<ThreadRatingEntity,ThreadRatingRequest,ThreadRatingResponse>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.modelmapper.ModelMapper
private final ThreadRatingRepository
private final ThreadRestService
private final UidUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertToExcel
(ThreadRatingEntity ThreadRating) convertToResponse
(ThreadRatingEntity entity) create
(ThreadRatingRequest request) void
delete
(ThreadRatingRequest entity) void
deleteByUid
(String uid) void
handleOptimisticLockingFailureException
(org.springframework.orm.ObjectOptimisticLockingFailureException e, ThreadRatingEntity entity) org.springframework.data.domain.Page<ThreadRatingResponse>
queryByOrg
(ThreadRatingRequest request) org.springframework.data.domain.Page<ThreadRatingEntity>
queryByOrgExcel
(ThreadRatingRequest request) org.springframework.data.domain.Page<ThreadRatingResponse>
queryByUser
(ThreadRatingRequest request) save
(ThreadRatingEntity entity) update
(ThreadRatingRequest request) Methods inherited from class com.bytedesk.core.base.BaseRestService
getUidFromRequest, queryByUid
-
Field Details
-
ThreadRatingRepository
-
modelMapper
private final org.modelmapper.ModelMapper modelMapper -
uidUtils
-
threadRestService
-
-
Constructor Details
-
ThreadRatingRestService
public ThreadRatingRestService()
-
-
Method Details
-
queryByOrg
public org.springframework.data.domain.Page<ThreadRatingResponse> queryByOrg(ThreadRatingRequest request) - Specified by:
queryByOrg
in classBaseRestService<ThreadRatingEntity,
ThreadRatingRequest, ThreadRatingResponse>
-
queryByUser
public org.springframework.data.domain.Page<ThreadRatingResponse> queryByUser(ThreadRatingRequest request) - Specified by:
queryByUser
in classBaseRestService<ThreadRatingEntity,
ThreadRatingRequest, ThreadRatingResponse>
-
findByUid
- Specified by:
findByUid
in classBaseRestService<ThreadRatingEntity,
ThreadRatingRequest, ThreadRatingResponse>
-
create
- Specified by:
create
in classBaseRestService<ThreadRatingEntity,
ThreadRatingRequest, ThreadRatingResponse>
-
update
- Specified by:
update
in classBaseRestService<ThreadRatingEntity,
ThreadRatingRequest, ThreadRatingResponse>
-
save
- Specified by:
save
in classBaseRestService<ThreadRatingEntity,
ThreadRatingRequest, ThreadRatingResponse>
-
deleteByUid
- Specified by:
deleteByUid
in classBaseRestService<ThreadRatingEntity,
ThreadRatingRequest, ThreadRatingResponse>
-
delete
- Specified by:
delete
in classBaseRestService<ThreadRatingEntity,
ThreadRatingRequest, ThreadRatingResponse>
-
handleOptimisticLockingFailureException
public void handleOptimisticLockingFailureException(org.springframework.orm.ObjectOptimisticLockingFailureException e, ThreadRatingEntity entity) - Specified by:
handleOptimisticLockingFailureException
in classBaseRestService<ThreadRatingEntity,
ThreadRatingRequest, ThreadRatingResponse>
-
queryByOrgExcel
public org.springframework.data.domain.Page<ThreadRatingEntity> queryByOrgExcel(ThreadRatingRequest request) -
convertToExcel
-
convertToResponse
- Specified by:
convertToResponse
in classBaseRestService<ThreadRatingEntity,
ThreadRatingRequest, ThreadRatingResponse>
-