|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bemoko.live.platform.content.domain.Profile
@Entity public class Profile
| Constructor Summary | |
|---|---|
Profile()
Create an empty new profile. |
|
Profile(String uid)
Create a new profile with a given UID. |
|
| Method Summary | |
|---|---|
void |
addGlobalIdentity(String domain,
String containerUid)
Add a new global identity to the profile TODO: This addGlobalIdentity should return the global identity if creates |
void |
addIdentityKey(IdentityKey identityKey)
Add an identity key to this profile |
ProfileAttributeSet |
get(String attributeName)
Get the profile attribute set. |
List<String> |
getAttributeNames()
Alphabetically sorted attribute names as a convenience for template rendering. |
Map<String,ProfileAttributeSet> |
getAttributes()
|
Date |
getCreated()
|
Set<GlobalIdentity> |
getGlobalIdentities()
|
Set<GlobalIdentity> |
getGlobalIdentities(String domain)
Get the global identities for a given domain |
GlobalIdentity |
getGlobalIdentity(String domain)
Note that currently if there are multiple global identities for a given domain for a given profile then this API will return an arbitrary one of these. |
String |
getGlobalUid(String domain)
Get the global identity for a given domain. |
Set<IdentityKey> |
getIdentityKeys()
Get the identity keys associated with this user |
Date |
getLastAccessed()
Get the date/time when this profile was last accessed |
ProfileAttributeSet |
getOrCreate(String attributeName)
Get or create a profile attribute |
int |
getQuality()
Get the quality of the user, 0 means that the profile was created on the fly, but never reused. |
String |
getUid()
Get the user id for this profile |
IdentityKey |
getValidIdentityKey()
|
void |
remove(String attributeName)
|
boolean |
removeGlobalIdentities(String domain)
Remove all the global identities for a given domain |
boolean |
removeGlobalIdentity(String domain,
String containerUid)
Remove the associated global identity from the profile |
void |
setCreated(Date created)
|
void |
setGlobalIdentities(Set<GlobalIdentity> globalIdentities)
|
void |
setGlobalIdentity(String domain,
String containerUid)
Set the single global identity for a given domain (replacing all existing global identities for that domain) |
void |
setIdentityKeys(Set<IdentityKey> identityKeys)
|
void |
setLastAccessed(Date lastAccessed)
|
void |
setProfile(Map<String,ProfileAttributeSet> profile)
|
void |
setQuality(int quality)
|
void |
setUid(String uid)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Profile()
public Profile(String uid)
uid - | Method Detail |
|---|
public void addGlobalIdentity(String domain,
String containerUid)
domain - containerUid - public void addIdentityKey(IdentityKey identityKey)
identityKey - public ProfileAttributeSet get(String attributeName)
attributeName -
public Map<String,ProfileAttributeSet> getAttributes()
public List<String> getAttributeNames()
public Date getCreated()
public Set<GlobalIdentity> getGlobalIdentities()
public Set<GlobalIdentity> getGlobalIdentities(String domain)
public GlobalIdentity getGlobalIdentity(String domain)
domain -
public String getGlobalUid(String domain)
public Set<IdentityKey> getIdentityKeys()
public Date getLastAccessed()
public ProfileAttributeSet getOrCreate(String attributeName)
attributeName -
public int getQuality()
public String getUid()
public IdentityKey getValidIdentityKey()
public boolean removeGlobalIdentities(String domain)
domain -
public boolean removeGlobalIdentity(String domain,
String containerUid)
domain - containerUid -
public void setCreated(Date created)
public void setGlobalIdentities(Set<GlobalIdentity> globalIdentities)
public void setGlobalIdentity(String domain,
String containerUid)
domain - containerUid - public void setIdentityKeys(Set<IdentityKey> identityKeys)
public void setLastAccessed(Date lastAccessed)
public void setProfile(Map<String,ProfileAttributeSet> profile)
public void setQuality(int quality)
public void setUid(String uid)
public String toString()
toString in class Objectpublic void remove(String attributeName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||