java.lang.Object
tr.com.havelsan.javarch.oauth.jpa.data.common.module.profile.model.query.predicate.HvlOAuthUserProfilePredicateModel
All Implemented Interfaces:
Serializable

public class HvlOAuthUserProfilePredicateModel extends Object implements Serializable
A data transfer object which is used to predicate query.
See Also:
  • Constructor Details

    • HvlOAuthUserProfilePredicateModel

      public HvlOAuthUserProfilePredicateModel(boolean hasAdmin, Long userId, Long profileId, boolean hasProxiedProfile)
      Instantiates a new HvlOAuthUserProfilePredicateModel.
      Parameters:
      hasAdmin - the has admin
      userId - the user id
      profileId - the profile id
      hasProxiedProfile - the has proxied profile
  • Method Details

    • of

      public static HvlOAuthUserProfilePredicateModel of(boolean hasAdmin, Long userId, Long profileId, boolean hasProxiedProfile)
      Create user profile predicate model.
      Parameters:
      hasAdmin - the has admin
      userId - the user id
      profileId - the profile id
      hasProxiedProfile - the has proxied profile
      Returns:
      the hvl o auth user profile predicate model
    • of

      public static HvlOAuthUserProfilePredicateModel of(boolean hasAdmin, Long userId, Long profileId)
      Create user profile predicate model.
      Parameters:
      hasAdmin - the has admin
      userId - the user id
      profileId - the profile id
      Returns:
      the user profile predicate model
    • isHasAdmin

      public boolean isHasAdmin()
      Is hasAdmin.
      Returns:
      the boolean
    • getUserId

      public Long getUserId()
      Gets user id.
      Returns:
      the user id
    • getProfileId

      public Long getProfileId()
      Gets profile id.
      Returns:
      the profile id
    • isHasProxiedProfile

      public boolean isHasProxiedProfile()
      Is has proxied profile.
      Returns:
      the boolean