Class Profile
java.lang.Object
dev.getelements.elements.sdk.model.profile.Profile
- All Implemented Interfaces:
Serializable
Represents a user's profile. Generally speaking a profile associates the
Application
and the User together. Multiple profiles linking the same user to the same application
should not exist together.
Created by patricktwohig on 6/27/17.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected @NotNull(groups={Update.class,Read.class}) @Null(groups={Insert.class,Create.class}) Stringstatic final StringUsed as the key for the profile attribute where appropriate.static final StringAlpha-numeric only. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetId()longgetUser()inthashCode()voidsetApplication(Application application) voidsetDisplayName(String displayName) voidvoidsetImageObject(LargeObjectReference imageObject) voidsetImageUrl(String imageUrl) voidsetLastLogin(long lastLogin) voidsetMetadata(Map<String, Object> metadata) voidtoString()
-
Field Details
-
PROFILE_DISPLAY_NAME_REGEX
Alpha-numeric only. Allows underscore, but does not allow the word to start with an underscore.- See Also:
-
PROFILE_ATTRIBUTE
Used as the key for the profile attribute where appropriate. This is equivalent to the FQN of theProfileclass. -
id
@NotNull(groups={Update.class,Read.class}) @Null(groups={Insert.class,Create.class}) protected @NotNull(groups={Update.class,Read.class}) @Null(groups={Insert.class,Create.class}) String id
-
-
Constructor Details
-
Profile
public Profile()
-
-
Method Details
-
getId
-
setId
-
getUser
-
setUser
-
getApplication
-
setApplication
-
getImageUrl
-
setImageUrl
-
getDisplayName
-
setDisplayName
-
getMetadata
-
setMetadata
-
getLastLogin
public long getLastLogin() -
setLastLogin
public void setLastLogin(long lastLogin) -
getImageObject
-
setImageObject
-
equals
-
hashCode
public int hashCode() -
toString
-