Interface HvlOAuthProfileRoleGroupMapper

All Superinterfaces:
tr.com.havelsan.javarch.data.model.mapper.HvlGenericMapStructMapper<HvlOAuthProfileRoleGroupRelModel,HvlOAuthProfileRoleGroupRel>
All Known Implementing Classes:
HvlOAuthProfileRoleGroupMapperImpl

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

    • convertToEntity

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

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

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

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