Package com.bytedesk.core.feature
Class FeatureRestService
java.lang.Object
com.bytedesk.core.base.BaseRestService<FeatureEntity,FeatureRequest,FeatureResponse>
com.bytedesk.core.feature.FeatureRestService
@Service
public class FeatureRestService
extends BaseRestService<FeatureEntity,FeatureRequest,FeatureResponse>
-
Field Summary
Fields inherited from class com.bytedesk.core.base.BaseRestService
authService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertToResponse(FeatureEntity entity) create(FeatureRequest request) protected org.springframework.data.jpa.domain.Specification<FeatureEntity>createSpecification(FeatureRequest request) 创建Specification对象,子类必须实现 用于queryByOrg的通用实现voiddelete(FeatureRequest request) voiddeleteByUid(String uid) protected FeatureEntitydoSave(FeatureEntity entity) 子类实现具体的保存逻辑protected org.springframework.data.domain.Page<FeatureEntity>executePageQuery(org.springframework.data.jpa.domain.Specification<FeatureEntity> spec, org.springframework.data.domain.Pageable pageable) 执行分页查询,子类必须实现 用于queryByOrg的通用实现handleOptimisticLockingFailureException(org.springframework.orm.ObjectOptimisticLockingFailureException e, FeatureEntity entity) update(FeatureRequest request) Methods inherited from class com.bytedesk.core.base.BaseRestService
deleteByOrgUid, findByOrgUid, getUidFromRequest, queryByOrg, queryByUid, queryByUser, recover, save, setUserUidToRequest
-
Constructor Details
-
FeatureRestService
public FeatureRestService()
-
-
Method Details
-
findByUid
- Specified by:
findByUidin classBaseRestService<FeatureEntity,FeatureRequest, FeatureResponse>
-
create
- Specified by:
createin classBaseRestService<FeatureEntity,FeatureRequest, FeatureResponse>
-
update
- Specified by:
updatein classBaseRestService<FeatureEntity,FeatureRequest, FeatureResponse>
-
deleteByUid
- Specified by:
deleteByUidin classBaseRestService<FeatureEntity,FeatureRequest, FeatureResponse>
-
delete
- Specified by:
deletein classBaseRestService<FeatureEntity,FeatureRequest, FeatureResponse>
-
handleOptimisticLockingFailureException
public FeatureEntity handleOptimisticLockingFailureException(org.springframework.orm.ObjectOptimisticLockingFailureException e, FeatureEntity entity) - Specified by:
handleOptimisticLockingFailureExceptionin classBaseRestService<FeatureEntity,FeatureRequest, FeatureResponse>
-
convertToResponse
- Specified by:
convertToResponsein classBaseRestService<FeatureEntity,FeatureRequest, FeatureResponse>
-
createSpecification
protected org.springframework.data.jpa.domain.Specification<FeatureEntity> createSpecification(FeatureRequest request) Description copied from class:BaseRestService创建Specification对象,子类必须实现 用于queryByOrg的通用实现- Specified by:
createSpecificationin classBaseRestService<FeatureEntity,FeatureRequest, FeatureResponse>
-
executePageQuery
protected org.springframework.data.domain.Page<FeatureEntity> executePageQuery(org.springframework.data.jpa.domain.Specification<FeatureEntity> spec, org.springframework.data.domain.Pageable pageable) Description copied from class:BaseRestService执行分页查询,子类必须实现 用于queryByOrg的通用实现- Specified by:
executePageQueryin classBaseRestService<FeatureEntity,FeatureRequest, FeatureResponse>
-
doSave
Description copied from class:BaseRestService子类实现具体的保存逻辑- Specified by:
doSavein classBaseRestService<FeatureEntity,FeatureRequest, FeatureResponse>
-