Class HvlOAuthProfileGroupManagerImpl
java.lang.Object
tr.com.havelsan.javarch.oauth.jpa.data.provider.module.profile.manager.HvlOAuthProfileGroupManagerImpl
- All Implemented Interfaces:
HvlOAuthProfileGroupManager
@Service
public class HvlOAuthProfileGroupManagerImpl
extends Object
implements HvlOAuthProfileGroupManager
The class which implements
HvlOAuthProfileGroupManager
.-
Constructor Summary
ConstructorDescriptionHvlOAuthProfileGroupManagerImpl
(HvlOAuthProfileGroupRepository profileGroupRepository, HvlOAuthProfileGroupQueryGenerator profileGroupQueryGenerator, HvlOAuthProfileGroupClaimRoleAssignerQueryGenerator profileGroupClaimRoleAssignerQueryGenerator, HvlOAuthProfileGroupClaimAuthorityQueryGenerator profileGroupClaimAuthorityAssignerQueryGenerator, HvlOAuthAcquiredRoleExpressionGenerator acquiredRoleExpressionGenerator, HvlOAuthProfileGroupMapper profileGroupMapper) Instantiates a new HvlOAuthProfileGroupManagerImpl. -
Method Summary
Modifier and TypeMethodDescriptionfindIdByUuid
(String uuid) Find profile id by uuid.findIdByUuidOrElseThrow
(@NotBlank @Size(min=36,max=36) String uuid) Find id by uuid or else throw long.Get profile group data according to uuidgetUserEmailSetById
(@NotNull Long profileGroupId) Gets user email set by id.getUsernameSetById
(@NotNull Long profileGroupId) Gets username set by id.static com.querydsl.core.types.QBean
<HvlOAuthProfileGroupClaimNodeModel> prepareProfileGroupClaimDataProjection
(HvlOAuthProfileGroupQuery profileGroupQuery) Prepare profile group claim data projection q bean.static com.querydsl.core.types.QBean
<HvlOAuthProfileGroupDataModel> prepareProfileGroupDataProjection
(HvlOAuthProfileGroupQuery profileGroupQuery) Prepare profile group data projection expression.static com.querydsl.core.types.QBean
<HvlOAuthProfileGroupDataModel> prepareProfileGroupReportDataProjection
(HvlOAuthProfileGroupQuery profileGroupQuery, HvlOAuthRoleGroupQuery roleGroupQuery, HvlOAuthRoleQuery roleQuery) Prepare profile group ,role group,role data projection expression.static com.querydsl.core.types.QBean
<HvlOAuthProfileGroupDataModel> prepareProfileGroupRoleGroupReportDataProjection
(HvlOAuthProfileGroupQuery profileGroupQuery, HvlOAuthRoleGroupQuery roleGroupQuery) Prepare profile group ,role group data projection expression.static com.querydsl.core.types.QBean
<HvlOAuthProfileGroupDataModel> prepareProfileGroupRoleReportDataProjection
(HvlOAuthProfileGroupQuery profileGroupQuery, HvlOAuthRoleQuery roleQuery) Prepare profile group,role data projection expression.tr.com.havelsan.javarch.data.commons.pageable.HvlPage
<HvlOAuthProfileGroupClaimNodeModel> queryClaimDataPage
(@NotNull @Valid HvlOAuthProfileGroupClaimQueryModel profileGroupClaimQueryModel) Returns a page of profile group claim for assigned entity relation matching the query criteria.queryList
(@NotNull @Valid HvlOAuthProfileGroupQueryModel profileGroupQueryModel) Get profile group list data according to profileGroupQueryModel parametertr.com.havelsan.javarch.data.commons.pageable.HvlPage
<HvlOAuthProfileGroupModel> queryPage
(@NotNull @Valid HvlOAuthProfileGroupQueryModel profileGroupQueryModel) Get lazy profile group data according to profileGroupQueryModel parametertr.com.havelsan.javarch.data.commons.pageable.HvlPage
<HvlOAuthProfileGroupDataModel> queryReportDataPage
(@NotNull @Valid HvlOAuthReportQueryModel reportQueryModel) Returns a page of profile group report matching the report query criteria
-
Constructor Details
-
HvlOAuthProfileGroupManagerImpl
public HvlOAuthProfileGroupManagerImpl(HvlOAuthProfileGroupRepository profileGroupRepository, HvlOAuthProfileGroupQueryGenerator profileGroupQueryGenerator, HvlOAuthProfileGroupClaimRoleAssignerQueryGenerator profileGroupClaimRoleAssignerQueryGenerator, HvlOAuthProfileGroupClaimAuthorityQueryGenerator profileGroupClaimAuthorityAssignerQueryGenerator, HvlOAuthAcquiredRoleExpressionGenerator acquiredRoleExpressionGenerator, HvlOAuthProfileGroupMapper profileGroupMapper) Instantiates a new HvlOAuthProfileGroupManagerImpl.- Parameters:
profileGroupRepository
- the profile group repositoryprofileGroupQueryGenerator
- the profile group query generatorprofileGroupClaimRoleAssignerQueryGenerator
- the profile group claim role assigner query generatorprofileGroupClaimAuthorityAssignerQueryGenerator
- the profile group claim authority assigner query generatoracquiredRoleExpressionGenerator
- the acquired role expression generatorprofileGroupMapper
- the profile group mapper
-
-
Method Details
-
findIdByUuid
Find profile id by uuid.- Specified by:
findIdByUuid
in interfaceHvlOAuthProfileGroupManager
- Parameters:
uuid
- the uuid- Returns:
- an Optional id
-
findIdByUuidOrElseThrow
public Long findIdByUuidOrElseThrow(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid) Find id by uuid or else throw long.- Specified by:
findIdByUuidOrElseThrow
in interfaceHvlOAuthProfileGroupManager
- Parameters:
uuid
- the uuid- Returns:
- the long
-
getUsernameSetById
Gets username set by id.- Specified by:
getUsernameSetById
in interfaceHvlOAuthProfileGroupManager
- Parameters:
profileGroupId
- the profile group id- Returns:
- the username set by id
-
getUserEmailSetById
Gets user email set by id.- Specified by:
getUserEmailSetById
in interfaceHvlOAuthProfileGroupManager
- Parameters:
profileGroupId
- the profile group id- Returns:
- the user email set by id
-
queryList
public List<HvlOAuthProfileGroupModel> queryList(@NotNull @Valid @NotNull @Valid HvlOAuthProfileGroupQueryModel profileGroupQueryModel) Get profile group list data according to profileGroupQueryModel parameter- Specified by:
queryList
in interfaceHvlOAuthProfileGroupManager
- Parameters:
profileGroupQueryModel
- the profile group query model- Returns:
- profile group list
-
getByUuid
public HvlOAuthProfileGroupModel getByUuid(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid) Get profile group data according to uuid- Specified by:
getByUuid
in interfaceHvlOAuthProfileGroupManager
- Parameters:
uuid
- the uuid- Returns:
- profile group by uuid
-
queryPage
public tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthProfileGroupModel> queryPage(@NotNull @Valid @NotNull @Valid HvlOAuthProfileGroupQueryModel profileGroupQueryModel) Get lazy profile group data according to profileGroupQueryModel parameter- Specified by:
queryPage
in interfaceHvlOAuthProfileGroupManager
- Parameters:
profileGroupQueryModel
- the profile group query model- Returns:
- profile group page
-
queryClaimDataPage
public tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthProfileGroupClaimNodeModel> queryClaimDataPage(@NotNull @Valid @NotNull @Valid HvlOAuthProfileGroupClaimQueryModel profileGroupClaimQueryModel) Returns a page of profile group claim for assigned entity relation matching the query criteria.- Specified by:
queryClaimDataPage
in interfaceHvlOAuthProfileGroupManager
- Parameters:
profileGroupClaimQueryModel
- the profile group claim query model- Returns:
- the profile group claim data model page
-
queryReportDataPage
@Validated(PredicatingOperation.class) public tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthProfileGroupDataModel> queryReportDataPage(@NotNull @Valid @NotNull @Valid HvlOAuthReportQueryModel reportQueryModel) Returns a page of profile group report matching the report query criteria- Specified by:
queryReportDataPage
in interfaceHvlOAuthProfileGroupManager
- Parameters:
reportQueryModel
- the report query model- Returns:
- profile group report page
-
prepareProfileGroupClaimDataProjection
public static com.querydsl.core.types.QBean<HvlOAuthProfileGroupClaimNodeModel> prepareProfileGroupClaimDataProjection(HvlOAuthProfileGroupQuery profileGroupQuery) Prepare profile group claim data projection q bean.- Parameters:
profileGroupQuery
- the profile group query- Returns:
- the q bean
-
prepareProfileGroupDataProjection
public static com.querydsl.core.types.QBean<HvlOAuthProfileGroupDataModel> prepareProfileGroupDataProjection(HvlOAuthProfileGroupQuery profileGroupQuery) Prepare profile group data projection expression.- Parameters:
profileGroupQuery
- the profile group query- Returns:
- the projection expression
-
prepareProfileGroupRoleReportDataProjection
public static com.querydsl.core.types.QBean<HvlOAuthProfileGroupDataModel> prepareProfileGroupRoleReportDataProjection(HvlOAuthProfileGroupQuery profileGroupQuery, HvlOAuthRoleQuery roleQuery) Prepare profile group,role data projection expression.- Parameters:
profileGroupQuery
- the profile group queryroleQuery
- the role query- Returns:
- the projection expression
-
prepareProfileGroupReportDataProjection
public static com.querydsl.core.types.QBean<HvlOAuthProfileGroupDataModel> prepareProfileGroupReportDataProjection(HvlOAuthProfileGroupQuery profileGroupQuery, HvlOAuthRoleGroupQuery roleGroupQuery, HvlOAuthRoleQuery roleQuery) Prepare profile group ,role group,role data projection expression.- Parameters:
profileGroupQuery
- the profile group queryroleGroupQuery
- the role group queryroleQuery
- the role query- Returns:
- the projection expression
-
prepareProfileGroupRoleGroupReportDataProjection
public static com.querydsl.core.types.QBean<HvlOAuthProfileGroupDataModel> prepareProfileGroupRoleGroupReportDataProjection(HvlOAuthProfileGroupQuery profileGroupQuery, HvlOAuthRoleGroupQuery roleGroupQuery) Prepare profile group ,role group data projection expression.- Parameters:
profileGroupQuery
- the profile group queryroleGroupQuery
- the role group query- Returns:
- the projection expression
-