Class HvlOAuthUserProfilePredicateModel
java.lang.Object
tr.com.havelsan.javarch.oauth.jpa.data.common.module.profile.model.query.predicate.HvlOAuthUserProfilePredicateModel
- All Implemented Interfaces:
Serializable
A data transfer object which is used to predicate query.
- See Also:
-
Constructor Summary
ConstructorDescriptionHvlOAuthUserProfilePredicateModel
(boolean hasAdmin, Long userId, Long profileId, boolean hasProxiedProfile) Instantiates a new HvlOAuthUserProfilePredicateModel. -
Method Summary
Modifier and TypeMethodDescriptionGets profile id.Gets user id.boolean
Is hasAdmin.boolean
Is has proxied profile.Create user profile predicate model.Create user profile predicate model.
-
Constructor Details
-
HvlOAuthUserProfilePredicateModel
public HvlOAuthUserProfilePredicateModel(boolean hasAdmin, Long userId, Long profileId, boolean hasProxiedProfile) Instantiates a new HvlOAuthUserProfilePredicateModel.- Parameters:
hasAdmin
- the has adminuserId
- the user idprofileId
- the profile idhasProxiedProfile
- 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 adminuserId
- the user idprofileId
- the profile idhasProxiedProfile
- the has proxied profile- Returns:
- the hvl o auth user profile predicate model
-
of
Create user profile predicate model.- Parameters:
hasAdmin
- the has adminuserId
- the user idprofileId
- the profile id- Returns:
- the user profile predicate model
-
isHasAdmin
public boolean isHasAdmin()Is hasAdmin.- Returns:
- the boolean
-
getUserId
Gets user id.- Returns:
- the user id
-
getProfileId
Gets profile id.- Returns:
- the profile id
-
isHasProxiedProfile
public boolean isHasProxiedProfile()Is has proxied profile.- Returns:
- the boolean
-