Interface HvlOAuthProfileRoleRelMapper

All Superinterfaces:
tr.com.havelsan.javarch.data.model.mapper.HvlGenericMapStructMapper<HvlOAuthProfileRoleRelModel,HvlOAuthProfileRoleRel>
All Known Implementing Classes:
HvlOAuthProfileRoleRelMapperImpl

public interface HvlOAuthProfileRoleRelMapper extends tr.com.havelsan.javarch.data.model.mapper.HvlGenericMapStructMapper<HvlOAuthProfileRoleRelModel,HvlOAuthProfileRoleRel>
The mapper is used for mapping between HvlOAuthProfileRoleRelModel and HvlOAuthProfileRoleRel
  • Method Details

    • convertToEntity

      HvlOAuthProfileRoleRel convertToEntity(Long profileId, Long roleId)
      Convert to entity HvlOAuthProfileRoleRel.
      Parameters:
      profileId - the profile id
      roleId - the role id
      Returns:
      the hvl o auth profile role rel
    • convertToModel

      HvlOAuthProfileRolePersistModel convertToModel(String profileUuid, Set<Long> roleIdSetToAdd, Set<Long> roleIdSetToRemove)
      Convert to model HvlOAuthProfileRolePersistModel.
      Parameters:
      profileUuid - the profile uuid
      roleIdSetToAdd - the role id set to add
      roleIdSetToRemove - the role id set to remove
      Returns:
      the HvlOAuthProfileRolePersistModel
    • convertToModel

      default HvlOAuthProfileRolePersistModel convertToModel(String profileUuid, Set<Long> roleIdSetToAdd)
      Convert to model HvlOAuthProfileRolePersistModel.
      Parameters:
      profileUuid - the profile uuid
      roleIdSetToAdd - the role id set to add
      Returns:
      the HvlOAuthProfileRolePersistModel
    • convertToEntityList

      default List<HvlOAuthProfileRoleRel> convertToEntityList(Long profileId, Set<Long> roleIdSet)
      Convert to entity list.
      Parameters:
      profileId - the profile id
      roleIdSet - the role id set
      Returns:
      the list
    • convertToEntityListWithProfileIdSet

      default List<HvlOAuthProfileRoleRel> convertToEntityListWithProfileIdSet(Long roleId, Set<Long> profileIdSet)
      Convert to entity list.
      Parameters:
      roleId - the role id
      profileIdSet - the profile id set
      Returns:
      the list