Interface HvlOAuthProfileManager
- All Known Implementing Classes:
HvlOAuthProfileManagerImpl
@Validated
public interface HvlOAuthProfileManager
A service in which includes custom methods used to persist/retrieve data.
-
Method Summary
Modifier and TypeMethodDescriptionfindIdByUuid
(@NotBlank @Size(min=36,max=36) String uuid) Find profile id by uuid.findIdByUuidOrElseThrow
(@NotBlank @Size(min=36,max=36) String uuid) Find id by uuid or else throw long.findUserIdByIdOrElseThrow
(@NotNull Long profileId) Find user id by profile id or else throw long.getByIntegrationCode
(@NotBlank @Size(max=20) String integrationCode) Gets profile by integration code.getByUuid is a method which is used to retrieve profile record via uuid parametergetDataByUuid
(@NotBlank @Size(min=36,max=36) String uuid) getProfileDataByUuid is a method which is used to retrieve profile data record via uuid parametergetNameListByIdList
(@NotEmpty @Size(max=100) List<@NotNull Long> idList) Gets name list by id list.getProfileIdListByUserId
(@NotNull Long userId) Gets profile id list by user id.getProfileNameListByUsername
(@NotBlank @Size(max=50) String userName) getProfileNameListByUsername is a method which is used to get all filtered profile data list via usernamegetProfileUserDataById
(@NotNull Long id) Gets profile user data by id.getUsernameByProfileUuid
(@NotBlank @Size(min=36,max=36) String profileUuid) Gets username by profile uuid.getUsernameListByIdList
(@NotNull List<Long> idList) Gets username list by id.isExists is a method which is used to checks the existence of the profile via idqueryDataList
(@NotNull @Valid HvlOAuthProfileQueryModel profileQueryModel) queryProfileDataList is a method which is used to get all filtered profile data list via querymodelqueryList
(@NotNull @Valid HvlOAuthProfileQueryModel profileQueryModel) queryList is a method which is used to get all filtered profile list via querymodeltr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthProfileModel>
queryPage
(@NotNull @Valid HvlOAuthProfileQueryModel profileQueryModel) queryPage is a method which is used to get all profile pagination list filtered via query modeltr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthProfileUserClaimDataModel>
queryProfileUserClaimDataPage
(@NotNull @Valid HvlOAuthProfileClaimQueryModel profileClaimQueryModel) Returns a page of role group role matching the query criteria.tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthProfileUserDataModel>
queryProfileUserDataPage
(@NotNull @Valid HvlOAuthProfileQueryModel profileQueryModel) queryProfileUserDataPage is a method which is used to get all profile data pagination list filtered via query modelboolean
verifyProfileInRoleAssigner
(@NotNull @Valid HvlOAuthProfileQueryModel profileQueryModel) Verify profile in role assigner boolean.
-
Method Details
-
getByUuid
HvlOAuthProfileModel getByUuid(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid) getByUuid is a method which is used to retrieve profile record via uuid parameter- Parameters:
uuid
- the uuid- Returns:
- profile by uuid
-
getUsernameByProfileUuid
String getUsernameByProfileUuid(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String profileUuid) Gets username by profile uuid.- Parameters:
profileUuid
- the profile uuid- Returns:
- the username by profile uuid
-
getUsernameListByIdList
Gets username list by id.- Parameters:
idList
- the id list- Returns:
- the username list by id
-
getNameListByIdList
List<String> getNameListByIdList(@NotEmpty @Size(max=100) @NotEmpty @Size(max=100) List<@NotNull Long> idList) Gets name list by id list.- Parameters:
idList
- the id list- Returns:
- the name list
-
getDataByUuid
HvlOAuthProfileDataModel getDataByUuid(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid) getProfileDataByUuid is a method which is used to retrieve profile data record via uuid parameter- Parameters:
uuid
- the uuid- Returns:
- profile data by uuid
-
getProfileUserDataById
Gets profile user data by id.- Parameters:
id
- the id- Returns:
- profile data by uuid
-
getProfileNameListByUsername
List<HvlOAuthProfileDataModel> getProfileNameListByUsername(@NotBlank @Size(max=50) @NotBlank @Size(max=50) String userName) getProfileNameListByUsername is a method which is used to get all filtered profile data list via username- Parameters:
userName
- the user name- Returns:
- profile data list
-
getByIntegrationCode
HvlOAuthProfileModel getByIntegrationCode(@NotBlank @Size(max=20) @NotBlank @Size(max=20) String integrationCode) Gets profile by integration code.- Parameters:
integrationCode
- the integration code- Returns:
- the profile
-
findIdByUuid
Optional<Long> findIdByUuid(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid) Find profile id by uuid.- Parameters:
uuid
- the uuid- Returns:
- an optional id
-
findIdByUuidOrElseThrow
Long findIdByUuidOrElseThrow(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid) Find id by uuid or else throw long.- Parameters:
uuid
- the uuid- Returns:
- the long
-
findUserIdByIdOrElseThrow
Find user id by profile id or else throw long.- Parameters:
profileId
- the profile id- Returns:
- the long
-
isExists
isExists is a method which is used to checks the existence of the profile via id- Parameters:
uuid
- the profile uuid- Returns:
- boolean boolean
-
queryList
List<HvlOAuthProfileModel> queryList(@NotNull @Valid @NotNull @Valid HvlOAuthProfileQueryModel profileQueryModel) queryList is a method which is used to get all filtered profile list via querymodel- Parameters:
profileQueryModel
- the profile query model- Returns:
- profile list
-
queryPage
tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthProfileModel> queryPage(@NotNull @Valid @NotNull @Valid HvlOAuthProfileQueryModel profileQueryModel) queryPage is a method which is used to get all profile pagination list filtered via query model- Parameters:
profileQueryModel
- the profile query model- Returns:
- profile page
-
queryDataList
List<HvlOAuthProfileDataModel> queryDataList(@NotNull @Valid @NotNull @Valid HvlOAuthProfileQueryModel profileQueryModel) queryProfileDataList is a method which is used to get all filtered profile data list via querymodel- Parameters:
profileQueryModel
- the profile query model- Returns:
- profile data list
-
queryProfileUserDataPage
tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthProfileUserDataModel> queryProfileUserDataPage(@NotNull @Valid @NotNull @Valid HvlOAuthProfileQueryModel profileQueryModel) queryProfileUserDataPage is a method which is used to get all profile data pagination list filtered via query model- Parameters:
profileQueryModel
- the profile query model- Returns:
- profile data page
-
queryProfileUserClaimDataPage
tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthProfileUserClaimDataModel> queryProfileUserClaimDataPage(@NotNull @Valid @NotNull @Valid HvlOAuthProfileClaimQueryModel profileClaimQueryModel) Returns a page of role group role matching the query criteria.- Parameters:
profileClaimQueryModel
- the available profile query model- Returns:
- profile user claim data model page
-
getProfileIdListByUserId
Gets profile id list by user id.- Parameters:
userId
- the user id- Returns:
- the profile id list by user id
-
verifyProfileInRoleAssigner
boolean verifyProfileInRoleAssigner(@NotNull @Valid @NotNull @Valid HvlOAuthProfileQueryModel profileQueryModel) Verify profile in role assigner boolean.- Parameters:
profileQueryModel
- the profile query model- Returns:
- the boolean
-