Class HvlAuthzRoleServiceImpl

java.lang.Object
tr.com.havelsan.javarch.oauth.authz.starter.module.role.logic.HvlAuthzRoleServiceImpl
All Implemented Interfaces:
HvlAuthzRoleService

@Service public class HvlAuthzRoleServiceImpl extends Object implements HvlAuthzRoleService
The class which implements HvlAuthzRoleService.
  • Constructor Details

  • Method Details

    • save

      public void save(@NotNull @Valid @NotNull @Valid HvlOAuthRoleCopiablePersistModel roleCopiablePersistModel)
      Save role.
      Specified by:
      save in interface HvlAuthzRoleService
      Parameters:
      roleCopiablePersistModel - the role copiable persist model
    • update

      @Validated(tr.com.havelsan.javarch.data.commons.validation.HvlConstraintGroups.ModifyingOperation.class) public void update(@NotNull @Valid @NotNull @Valid HvlOAuthRolePersistModel rolePersistModel)
      Update.
      Specified by:
      update in interface HvlAuthzRoleService
      Parameters:
      rolePersistModel - the role persist model
    • deleteByUuid

      public void deleteByUuid(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid)
      Delete role by uuid.
      Specified by:
      deleteByUuid in interface HvlAuthzRoleService
      Parameters:
      uuid - the uuid
    • activateByUuid

      public void activateByUuid(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid)
      Method used to activate role according to uuid.
      Specified by:
      activateByUuid in interface HvlAuthzRoleService
      Parameters:
      uuid - the uuid
    • deactivateByUuid

      public void deactivateByUuid(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid)
      Method used to deactivate role according to uuid.
      Specified by:
      deactivateByUuid in interface HvlAuthzRoleService
      Parameters:
      uuid - the uuid
    • getByUuid

      @Transactional(readOnly=true) public HvlOAuthRoleModel getByUuid(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid)
      Gets role by uuid.
      Specified by:
      getByUuid in interface HvlAuthzRoleService
      Parameters:
      uuid - the uuid
      Returns:
      the role model
    • queryDataList

      @Transactional(readOnly=true) public List<HvlOAuthRoleDataModel> queryDataList(@NotNull @Valid @NotNull @Valid HvlOAuthRoleQueryModel roleQueryModel)
      Returns a list of role matching the query criteria.
      Specified by:
      queryDataList in interface HvlAuthzRoleService
      Parameters:
      roleQueryModel - the role query model
      Returns:
      the list of role projection model
    • queryDataPage

      @Transactional(readOnly=true) public tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthRoleDataModel> queryDataPage(@NotNull @Valid @NotNull @Valid HvlOAuthRoleQueryModel roleQueryModel)
      Returns a page of role matching the query criteria.
      Specified by:
      queryDataPage in interface HvlAuthzRoleService
      Parameters:
      roleQueryModel - the role query model
      Returns:
      the page of role projection model
    • queryReportDataPage

      @Transactional(readOnly=true) public tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthRoleDataModel> queryReportDataPage(@NotNull @Valid @NotNull @Valid HvlOAuthReportQueryModel reportQueryModel)
      Returns a page of role report matching the report query criteria.
      Specified by:
      queryReportDataPage in interface HvlAuthzRoleService
      Parameters:
      reportQueryModel - the report query model
      Returns:
      the page of role projection model
    • queryAssignerDataPage

      @Transactional(readOnly=true) public tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthRoleDataModel> queryAssignerDataPage(@NotNull @Valid @NotNull @Valid HvlOAuthRoleQueryModel roleQueryModel)
      Query assigner data page hvl page.
      Specified by:
      queryAssignerDataPage in interface HvlAuthzRoleService
      Parameters:
      roleQueryModel - the role query model
      Returns:
      the hvl page
    • queryClaimDataPage

      @Transactional(readOnly=true) public tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlOAuthRoleClaimDataModel> queryClaimDataPage(@NotNull @Valid @NotNull @Valid HvlOAuthRoleClaimQueryModel roleClaimQueryModel)
      Returns a page of role claim for assigned entity relation matching the query criteria.
      Specified by:
      queryClaimDataPage in interface HvlAuthzRoleService
      Parameters:
      roleClaimQueryModel - the role claim query model
      Returns:
      the page of role claim projection model