|
Jive API (3.0.13) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.base.UserTemplate
public class UserTemplate
Value Object implementation of the user interface, optimized for Jive's internal caching mechanism. User provider implementations are strongly urged to return instances of this class or a subclass with a proper ExternalizableLite implementation.
User,
Serialized Form| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.jivesoftware.base.User |
|---|
User.Status |
| Field Summary | |
|---|---|
protected static org.apache.log4j.Logger |
log
|
| Fields inherited from interface com.jivesoftware.base.User |
|---|
EMAIL_VISIBILITY_ALLOW_TOGGLE, EMAIL_VISIBILITY_DEFAULT, NAME_VISIBILITY_ALLOW_TOGGLE |
| Constructor Summary | |
|---|---|
UserTemplate()
Creates an empty user template value object. |
|
UserTemplate(long userId)
Creates a new user template populating the User ID. |
|
UserTemplate(String userName)
Creates a new user template populating the username. |
|
UserTemplate(String userName,
String password,
String email)
Convenience constructor with username, password and email. |
|
UserTemplate(String userName,
String password,
String email,
String name)
Convenience constructor with username, password, email and name. |
|
UserTemplate(String userName,
String password,
String email,
String name,
boolean emailVisible,
boolean nameVisible,
Map<String,String> props)
Creates a user template with username, password, email, name, email and name visibility and extended properties. |
|
UserTemplate(String userName,
String password,
String email,
String firstName,
String lastName,
boolean emailVisible,
boolean nameVisible,
Map<String,String> props)
Creates a user template with username, password, email, first name, last name, email and name visibility and extended properties. |
|
UserTemplate(User user)
Creates a user template from the given user object. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object object)
|
int |
getCachedSize()
|
Date |
getCreationDate()
Returns the date that the user was created. |
String |
getEmail()
Returns the user's email address. |
String |
getFirstName()
Returns the user's first name. |
long |
getID()
Returns the user's id. |
Date |
getLastLoggedIn()
Returns the date the user last logged in. |
String |
getLastName()
Returns the user's last name. |
Date |
getLastProfileUpdate()
Returns the date the user's profile was last updated, or null if not set. |
Date |
getModificationDate()
Returns the date that the user was last modified. |
String |
getName()
Returns the user's name. |
int |
getObjectType()
Return the object type of the jive object. |
String |
getPassword()
Exposes a raw password. |
String |
getPasswordHash()
Returns the user's password in hashed form. |
Permissions |
getPermissions(AuthToken authToken)
Returns the permissions for the user that correspond to the passed-in AuthToken. |
Map<String,String> |
getProperties()
Retrieve a map of all the extended properties for the user. |
User.Status |
getStatus()
Returns the current status of the user in regards to moderation. |
String |
getUsername()
Returns the user's username. |
int |
hashCode()
|
boolean |
isAnonymous()
Returns true if the user represents an anonymous user. |
boolean |
isAuthorized(long perm)
Returns true if the handle on the object has the permission specified. |
boolean |
isEmailVisible()
Returns true if the user has chosen to make her email visible to other users. |
boolean |
isEnabled()
Returns true if the user is disabled, meaning they cannot log in. |
boolean |
isExternal()
Indicates if the user is simply a representation of an external identity and not a Jive SBS system user. |
boolean |
isFederated()
Indicates if a user is a federated - if their identity is managed outside the Jive SBS application. |
boolean |
isGetPasswordHashSupported()
Indicates whether retrieving a password hash is supported for this user. |
boolean |
isNameVisible()
Returns true if the user has chosen to make her name visible to other users. |
boolean |
isPropertyEditSupported()
Indicates whether the property methods (get, set, delete, etc.) are supported. |
boolean |
isReadOnly()
|
boolean |
isSetEmailSupported()
Indicates whether setting the email address is supported for this user. |
boolean |
isSetEmailVisibleSupported()
Indicates whether setting the visibility of the email address is supported for this user. |
boolean |
isSetNameSupported()
Indicates whether setting the full name is supported for this user. |
boolean |
isSetNameVisibleSupported()
Indicates whether setting the visibility of the name is supported for this user. |
boolean |
isSetPasswordHashSupported()
Indicates whether modifying the hash of the user's password is supported for this user. |
boolean |
isSetPasswordSupported()
Indicates whether modifying the user's password is supported. |
boolean |
isSetUsernameSupported()
Indicates whether setting the username is supported for this user. |
void |
readExternal(DataInput in)
|
void |
setCreationDate(Date creationDate)
|
void |
setEmail(String email)
|
void |
setEmailVisible(boolean emailVisible)
|
void |
setEnabled(boolean enabled)
|
void |
setExternal(boolean external)
|
void |
setFederated(boolean federated)
|
void |
setFirstName(String firstName)
|
void |
setGetPasswordHashSupported(boolean getPasswordHashSupported)
|
void |
setID(long ID)
|
void |
setLastLoggedIn(Date lastLoggedIn)
|
void |
setLastName(String lastName)
|
void |
setLastProfileUpdate(Date lastProfileUpdate)
|
void |
setModificationDate(Date modificationDate)
|
void |
setName(String name)
|
void |
setNameVisible(boolean nameVisible)
|
void |
setPassword(String password)
|
void |
setPasswordHash(String passwordHash)
|
void |
setProperties(Map<String,String> properties)
|
void |
setSetEmailSuppoted(boolean setEmailSuppoted)
|
void |
setSetEmailVisibleSupported(boolean setEmailVisibleSupported)
|
void |
setSetNameSupported(boolean setNameSupported)
|
void |
setSetNameVisibleSupported(boolean setNameVisibleSupported)
|
void |
setSetPasswordHashSupported(boolean setPasswordHashSupported)
|
void |
setSetPasswordSupported(boolean setPasswordSupported)
|
void |
setSetPropertyEditSupported(boolean setPropertyEditSupported)
|
void |
setSetUsernameSupported(boolean setUsernameSupported)
|
void |
setStatus(User.Status status)
|
void |
setUsername(String username)
|
String |
toString()
Returns a String representation of the User object. |
void |
writeExternal(DataOutput out)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.log4j.Logger log
| Constructor Detail |
|---|
public UserTemplate()
public UserTemplate(String userName)
userName -
public UserTemplate(String userName,
String password,
String email,
String name)
userName - password - email - name -
public UserTemplate(String userName,
String password,
String email,
String name,
boolean emailVisible,
boolean nameVisible,
Map<String,String> props)
userName - password - email - name - emailVisible - nameVisible - props -
public UserTemplate(String userName,
String password,
String email,
String firstName,
String lastName,
boolean emailVisible,
boolean nameVisible,
Map<String,String> props)
userName - password - email - firstName - lastName - emailVisible - nameVisible - props -
public UserTemplate(String userName,
String password,
String email)
userName - password - email - public UserTemplate(long userId)
userId - public UserTemplate(User user)
user - | Method Detail |
|---|
public void readExternal(DataInput in)
throws IOException
readExternal in interface com.tangosol.io.ExternalizableLiteIOException
public void writeExternal(DataOutput out)
throws IOException
writeExternal in interface com.tangosol.io.ExternalizableLiteIOExceptionpublic int getCachedSize()
public Permissions getPermissions(AuthToken authToken)
User
getPermissions in interface UserauthToken - the auth token to look up permissions with.
public String getPassword()
throws UnauthorizedException
User
getPassword in interface UserUnauthorizedExceptionpublic void setPassword(String password)
public boolean isReadOnly()
public Date getCreationDate()
UserIf your back-end user store does not support this operation, throw an UnsupportedOperationException.
getCreationDate in interface Userpublic void setCreationDate(Date creationDate)
public String getEmail()
UserIf your back-end user store does not support this operation, always return null.
getEmail in interface Userpublic void setEmail(String email)
public boolean isEmailVisible()
User
isEmailVisible in interface Userpublic void setEmailVisible(boolean emailVisible)
public boolean isEnabled()
User
isEnabled in interface Userpublic void setEnabled(boolean enabled)
public long getID()
User
getID in interface UsergetID in interface JiveObjectpublic void setID(long ID)
public Date getLastLoggedIn()
User
getLastLoggedIn in interface Userpublic void setLastLoggedIn(Date lastLoggedIn)
public Date getLastProfileUpdate()
User
getLastProfileUpdate in interface Userpublic void setLastProfileUpdate(Date lastProfileUpdate)
public Date getModificationDate()
User
getModificationDate in interface Userpublic void setModificationDate(Date modificationDate)
public String getName()
User
getName in interface Userpublic void setName(String name)
public String getFirstName()
UserUser.getName() to retrieve the full name, as the first
name will be returned only if it exists in persistence.
getFirstName in interface Userpublic void setFirstName(String firstName)
public String getLastName()
UserUser.getName() to retrieve the full name, as the first
name will be returned only if it exists in persistence.
getLastName in interface Userpublic void setLastName(String lastName)
public boolean isNameVisible()
User
isNameVisible in interface Userpublic void setNameVisible(boolean nameVisible)
public String getPasswordHash()
UserIf your back-end user store does not support this operation, throw an UnsupportedOperationException.
getPasswordHash in interface Userpublic void setPasswordHash(String passwordHash)
public Map<String,String> getProperties()
UserIf the user is not authorized to modify the user any method which modifies the map will fail with a UnsupportedOperationException; Changes to the properties requires updates.
getProperties in interface Userpublic void setProperties(Map<String,String> properties)
public String getUsername()
User
getUsername in interface Userpublic void setUsername(String username)
public int getObjectType()
JiveObject
getObjectType in interface JiveObjectpublic boolean isFederated()
User
isFederated in interface Userpublic void setFederated(boolean federated)
public boolean isExternal()
User
isExternal in interface Userpublic void setExternal(boolean external)
public boolean isAuthorized(long perm)
UserBecause proxy objects will implement real security checking, this method should be implemented as:
isAuthorized in interface Userperm - the permission to check for.
Permissionspublic void setStatus(User.Status status)
public User.Status getStatus()
User
getStatus in interface Userpublic String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object object)
equals in class Objectpublic boolean isSetPasswordSupported()
User
isSetPasswordSupported in interface Userpublic boolean isGetPasswordHashSupported()
User
isGetPasswordHashSupported in interface Userpublic boolean isSetPasswordHashSupported()
User
isSetPasswordHashSupported in interface Userpublic boolean isSetNameSupported()
User
isSetNameSupported in interface Userpublic boolean isSetUsernameSupported()
User
isSetUsernameSupported in interface Userpublic boolean isSetEmailSupported()
User
isSetEmailSupported in interface Userpublic boolean isSetNameVisibleSupported()
User
isSetNameVisibleSupported in interface Userpublic boolean isSetEmailVisibleSupported()
User
isSetEmailVisibleSupported in interface Userpublic boolean isPropertyEditSupported()
User
isPropertyEditSupported in interface Userpublic void setSetNameVisibleSupported(boolean setNameVisibleSupported)
public void setSetPasswordSupported(boolean setPasswordSupported)
public void setGetPasswordHashSupported(boolean getPasswordHashSupported)
public void setSetEmailVisibleSupported(boolean setEmailVisibleSupported)
public void setSetNameSupported(boolean setNameSupported)
public void setSetUsernameSupported(boolean setUsernameSupported)
public void setSetPasswordHashSupported(boolean setPasswordHashSupported)
public void setSetPropertyEditSupported(boolean setPropertyEditSupported)
public void setSetEmailSuppoted(boolean setEmailSuppoted)
public boolean isAnonymous()
User
isAnonymous in interface User
|
Jive Product Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||