Interface HvlOAuthLookupManager
- All Known Implementing Classes:
HvlOAuthLookupManagerImpl
public interface HvlOAuthLookupManager
This manager provides query methods.
-
Method Summary
Modifier and TypeMethodDescriptionfindByCodeAndParameterTypeOrElseThrow
(@NotBlank @Size(max=100) String code, @NotNull HvlOAuthLookupParameterType lookupParameterType) Gets lookup by code and parameter type.findIdByUuid
(@NotBlank @Size(min=36,max=36) String uuid) Finds lookup id by uuid.findLookupResultsByParameterTypeOrElseThrow
(@NotNull HvlOAuthLookupParameterType lookupParameterType) Gets lookup ids by parameter type.Gets lookup by id.getByIntegrationCode
(@NotBlank @Size(max=100) String integrationCode) Gets by integration code.Gets lookup by uuid.queryList
(@NotNull @Valid HvlOAuthLookupQueryModel lookupQueryModel) Returns a list of lookup matching the query criteria.tr.com.havelsan.javarch.data.commons.pageable.HvlPage
<HvlOAuthLookupModel> queryPage
(@NotNull @Valid HvlOAuthLookupQueryModel lookupQueryModel) Returns a page of lookup matching the query criteria.
-
Method Details
-
findIdByUuid
Optional<Long> findIdByUuid(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid) Finds lookup id by uuid.- Parameters:
uuid
- the uuid- Returns:
- an optional id
-
findLookupResultsByParameterTypeOrElseThrow
Map<String,Long> findLookupResultsByParameterTypeOrElseThrow(@NotNull @NotNull HvlOAuthLookupParameterType lookupParameterType) Gets lookup ids by parameter type.- Parameters:
lookupParameterType
- the lookup parameter type- Returns:
- the map
-
findByCodeAndParameterTypeOrElseThrow
HvlOAuthLookupModel findByCodeAndParameterTypeOrElseThrow(@NotBlank @Size(max=100) @NotBlank @Size(max=100) String code, @NotNull @NotNull HvlOAuthLookupParameterType lookupParameterType) Gets lookup by code and parameter type.- Parameters:
code
- the codelookupParameterType
- the lookup parameter type- Returns:
- the lookup model by code and parameter type
-
getById
Gets lookup by id.- Parameters:
id
- the id- Returns:
- the lookup model
-
getByUuid
HvlOAuthLookupModel getByUuid(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid) Gets lookup by uuid.- Parameters:
uuid
- the uuid- Returns:
- the lookup model
-
getByIntegrationCode
HvlOAuthLookupModel getByIntegrationCode(@NotBlank @Size(max=100) @NotBlank @Size(max=100) String integrationCode) Gets by integration code.- Parameters:
integrationCode
- the integration code- Returns:
- the by integration code
-
queryList
List<HvlOAuthLookupModel> queryList(@NotNull @Valid @NotNull @Valid HvlOAuthLookupQueryModel lookupQueryModel) Returns a list of lookup matching the query criteria.- Parameters:
lookupQueryModel
- the lookup query model- Returns:
- the list of lookup model
-
queryPage
tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthLookupModel> queryPage(@NotNull @Valid @NotNull @Valid HvlOAuthLookupQueryModel lookupQueryModel) Returns a page of lookup matching the query criteria.- Parameters:
lookupQueryModel
- the lookup query model- Returns:
- the page of lookup model
-