Class AgentStatusLogService
java.lang.Object
com.bytedesk.core.base.BaseRestService<AgentStatusLogEntity,AgentStatusLogRequest,AgentStatusLogResponse>
com.bytedesk.service.agent_status.AgentStatusLogService
@Service
public class AgentStatusLogService
extends BaseRestService<AgentStatusLogEntity,AgentStatusLogRequest,AgentStatusLogResponse>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AgentStatusLogRepository
private final org.modelmapper.ModelMapper
private final UidUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate
(AgentStatusLogRequest request) void
delete
(AgentStatusLogRequest entity) void
deleteByUid
(String uid) void
handleOptimisticLockingFailureException
(org.springframework.orm.ObjectOptimisticLockingFailureException e, AgentStatusLogEntity entity) org.springframework.data.domain.Page<AgentStatusLogResponse>
queryByOrg
(AgentStatusLogRequest request) org.springframework.data.domain.Page<AgentStatusLogResponse>
queryByUser
(AgentStatusLogRequest request) save
(AgentStatusLogEntity entity) update
(AgentStatusLogRequest request) Methods inherited from class com.bytedesk.core.base.BaseRestService
getUidFromRequest, queryByUid
-
Field Details
-
agentStatusRepository
-
modelMapper
private final org.modelmapper.ModelMapper modelMapper -
uidUtils
-
-
Constructor Details
-
AgentStatusLogService
public AgentStatusLogService()
-
-
Method Details
-
queryByOrg
public org.springframework.data.domain.Page<AgentStatusLogResponse> queryByOrg(AgentStatusLogRequest request) - Specified by:
queryByOrg
in classBaseRestService<AgentStatusLogEntity,
AgentStatusLogRequest, AgentStatusLogResponse>
-
queryByUser
public org.springframework.data.domain.Page<AgentStatusLogResponse> queryByUser(AgentStatusLogRequest request) - Specified by:
queryByUser
in classBaseRestService<AgentStatusLogEntity,
AgentStatusLogRequest, AgentStatusLogResponse>
-
findByUid
- Specified by:
findByUid
in classBaseRestService<AgentStatusLogEntity,
AgentStatusLogRequest, AgentStatusLogResponse>
-
create
- Specified by:
create
in classBaseRestService<AgentStatusLogEntity,
AgentStatusLogRequest, AgentStatusLogResponse>
-
update
- Specified by:
update
in classBaseRestService<AgentStatusLogEntity,
AgentStatusLogRequest, AgentStatusLogResponse>
-
save
- Specified by:
save
in classBaseRestService<AgentStatusLogEntity,
AgentStatusLogRequest, AgentStatusLogResponse>
-
deleteByUid
- Specified by:
deleteByUid
in classBaseRestService<AgentStatusLogEntity,
AgentStatusLogRequest, AgentStatusLogResponse>
-
delete
- Specified by:
delete
in classBaseRestService<AgentStatusLogEntity,
AgentStatusLogRequest, AgentStatusLogResponse>
-
handleOptimisticLockingFailureException
public void handleOptimisticLockingFailureException(org.springframework.orm.ObjectOptimisticLockingFailureException e, AgentStatusLogEntity entity) -
convertToResponse
- Specified by:
convertToResponse
in classBaseRestService<AgentStatusLogEntity,
AgentStatusLogRequest, AgentStatusLogResponse>
-