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}) String
static final String
Used as the key for the profile attribute where appropriate.static final String
Alpha-numeric only. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getId()
long
getUser()
int
hashCode()
void
setApplication
(Application application) void
setDisplayName
(String displayName) void
void
setImageObject
(LargeObjectReference imageObject) void
setImageUrl
(String imageUrl) void
setLastLogin
(long lastLogin) void
setMetadata
(Map<String, Object> metadata) void
toString()
-
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 theProfile
class. -
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
-