Package com.bytedesk.core.license
Class LicenseRestService
java.lang.Object
com.bytedesk.core.base.BaseRestService<LicenseEntity,LicenseRequest,LicenseResponse>
com.bytedesk.core.license.LicenseRestService
@Service
public class LicenseRestService
extends BaseRestService<LicenseEntity,LicenseRequest,LicenseResponse>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertToResponse
(LicenseEntity entity) create
(LicenseRequest request) void
delete
(LicenseRequest request) void
deleteByUid
(String uid) void
handleOptimisticLockingFailureException
(org.springframework.orm.ObjectOptimisticLockingFailureException e, LicenseEntity entity) org.springframework.data.domain.Page<LicenseResponse>
queryByOrg
(LicenseRequest request) queryByUid
(LicenseRequest request) org.springframework.data.domain.Page<LicenseResponse>
queryByUser
(LicenseRequest request) save
(LicenseEntity entity) update
(LicenseRequest request) Methods inherited from class com.bytedesk.core.base.BaseRestService
getUidFromRequest
-
Constructor Details
-
LicenseRestService
public LicenseRestService()
-
-
Method Details
-
queryByOrg
- Specified by:
queryByOrg
in classBaseRestService<LicenseEntity,
LicenseRequest, LicenseResponse>
-
queryByUser
- Specified by:
queryByUser
in classBaseRestService<LicenseEntity,
LicenseRequest, LicenseResponse>
-
findByUid
- Specified by:
findByUid
in classBaseRestService<LicenseEntity,
LicenseRequest, LicenseResponse>
-
create
- Specified by:
create
in classBaseRestService<LicenseEntity,
LicenseRequest, LicenseResponse>
-
update
- Specified by:
update
in classBaseRestService<LicenseEntity,
LicenseRequest, LicenseResponse>
-
save
- Specified by:
save
in classBaseRestService<LicenseEntity,
LicenseRequest, LicenseResponse>
-
deleteByUid
- Specified by:
deleteByUid
in classBaseRestService<LicenseEntity,
LicenseRequest, LicenseResponse>
-
delete
- Specified by:
delete
in classBaseRestService<LicenseEntity,
LicenseRequest, LicenseResponse>
-
handleOptimisticLockingFailureException
public void handleOptimisticLockingFailureException(org.springframework.orm.ObjectOptimisticLockingFailureException e, LicenseEntity entity) - Specified by:
handleOptimisticLockingFailureException
in classBaseRestService<LicenseEntity,
LicenseRequest, LicenseResponse>
-
convertToResponse
- Specified by:
convertToResponse
in classBaseRestService<LicenseEntity,
LicenseRequest, LicenseResponse>
-
queryByUid
- Overrides:
queryByUid
in classBaseRestService<LicenseEntity,
LicenseRequest, LicenseResponse>
-