Interface HvlOAuthProxyManager
- All Known Implementing Classes:
HvlOAuthProxyManagerImpl
@Validated
public interface HvlOAuthProxyManager
This manager provides query methods.
-
Method Summary
Modifier and TypeMethodDescriptionfindExpirationDurationById
(@NotNull Long id) Find expiration duration by id.findIdByUuid
(@NotBlank @Size(min=36,max=36) String uuid) Find proxy id by uuid.findIdByUuidOrElseThrow
(@NotBlank @Size(min=36,max=36) String uuid) Find id by uuid or else throw long.findRoleIdByProxyId
(@NotNull Long proxyid) Find proxy role id by proxy id.getDataWithoutVerifyByUuid
(@NotBlank @Size(min=36,max=36) String uuid) Gets data by uuid.getDeletedByUuid
(@NotBlank @Size(min=36,max=36) String uuid) Gets by uuid for delete event.query
(@NotNull @Valid HvlOAuthProxyQueryModel proxyQueryModel) Returns a proxy matching the query criteria.tr.com.havelsan.javarch.data.commons.pageable.HvlPage
<HvlOAuthProxyDataModel> queryDataPage
(@NotNull @Valid HvlOAuthProxyQueryModel proxyQueryModel) Returns a page of proxy matching the query criteria.tr.com.havelsan.javarch.data.commons.pageable.HvlPage
<HvlOAuthProxyDataModel> queryReportDataPage
(@NotNull @Valid HvlOAuthReportQueryModel reportQueryModel) Returns a page of proxy report matching the report query criteria.verifyIfProxyExistsByTrustedProxyAndUser
(HvlOAuthTrustedProxyPersist trustedProxy, HvlOAuthUserProfilePredicateModel userProfilePredicateModel) Find username set by trusted proxy id and user set.
-
Method Details
-
findExpirationDurationById
Find expiration duration by id.- Parameters:
id
- the id- Returns:
- the proxy expiration duration
-
getDataWithoutVerifyByUuid
HvlOAuthProxyDataModel getDataWithoutVerifyByUuid(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid) Gets data by uuid.- Parameters:
uuid
- the uuid- Returns:
- the proxy data model
-
findIdByUuid
Optional<Long> findIdByUuid(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid) Find proxy id by uuid.- Parameters:
uuid
- the uuid- Returns:
- an optional id
-
findRoleIdByProxyId
Find proxy role id by proxy id.- Parameters:
proxyid
- the proxyid- 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
-
getDeletedByUuid
HvlOAuthProxyDataModel getDeletedByUuid(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid) Gets by uuid for delete event.- Parameters:
uuid
- the uuid- Returns:
- the by uuid for delete event
-
query
@Validated(PredicatingOperation.class) HvlOAuthProxyModel query(@NotNull @Valid @NotNull @Valid HvlOAuthProxyQueryModel proxyQueryModel) Returns a proxy matching the query criteria.- Parameters:
proxyQueryModel
- the proxy query model- Returns:
- the proxy model
-
queryDataPage
@Validated(PredicatingOperation.class) tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthProxyDataModel> queryDataPage(@NotNull @Valid @NotNull @Valid HvlOAuthProxyQueryModel proxyQueryModel) Returns a page of proxy matching the query criteria.- Parameters:
proxyQueryModel
- the proxy query model- Returns:
- the proxy data model page
-
queryReportDataPage
@Validated(PredicatingOperation.class) tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthProxyDataModel> queryReportDataPage(@NotNull @Valid @NotNull @Valid HvlOAuthReportQueryModel reportQueryModel) Returns a page of proxy report matching the report query criteria.- Parameters:
reportQueryModel
- the report query model- Returns:
- the proxy data model page
-
verifyIfProxyExistsByTrustedProxyAndUser
Boolean verifyIfProxyExistsByTrustedProxyAndUser(HvlOAuthTrustedProxyPersist trustedProxy, HvlOAuthUserProfilePredicateModel userProfilePredicateModel) Find username set by trusted proxy id and user set.- Parameters:
trustedProxy
- the trusted proxyuserProfilePredicateModel
- the user profile predicate model- Returns:
- the set
-