public class User extends Object implements Principal, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Boolean> |
capabilities |
static String |
CAPABILITY_ADMIN |
static String |
CAPABILITY_GUEST |
static String |
CAPABILITY_MUTABLE |
protected String |
fullName |
protected Map<String,Serializable> |
map |
static String |
PROP_BIOGRAPHY |
static String |
PROP_COMPANY_ADDRESS1 |
static String |
PROP_COMPANY_ADDRESS2 |
static String |
PROP_COMPANY_ADDRESS3 |
static String |
PROP_COMPANY_EMAIL |
static String |
PROP_COMPANY_FAX |
static String |
PROP_COMPANY_POSTCODE |
static String |
PROP_COMPANY_TELEPHONE |
static String |
PROP_EMAIL |
static String |
PROP_FIRST_NAME |
static String |
PROP_GOOGLEUSERNAME |
static String |
PROP_ID |
static String |
PROP_INSTANTMSG |
static String |
PROP_JOB_TITLE |
static String |
PROP_LAST_NAME |
static String |
PROP_LOCATION |
static String |
PROP_MIDDLE_NAME |
static String |
PROP_MOBILE_PHONE |
static String |
PROP_ORGANIZATION |
static String |
PROP_SKYPE |
static String |
PROP_TELEPHONE |
| Constructor and Description |
|---|
User(String id,
Map<String,Boolean> capabilities)
Instantiates a new user.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getBiography()
Get the biography
|
Map<String,Boolean> |
getCapabilities()
Gets a map of capabilities (boolean assertions) for the user.
|
String |
getCompanyAddress1()
Gets Company Address1
|
String |
getCompanyAddress2()
Gets Company Address2
|
String |
getCompanyAddress3()
Gets Company Address3
|
String |
getCompanyEmail()
Gets Company Email
|
String |
getCompanyFax()
Gets Company Fax
|
String |
getCompanyPostcode()
Gets Company Postcode
|
String |
getCompanyTelephone()
Gets Company Telephone
|
String |
getEmail()
Gets the email.
|
String |
getFirstName()
Gets the first name.
|
String |
getFullName()
Provides the full name for the user.
|
String |
getGoogleUsername()
Gets the google user name.
|
String |
getId()
Gets the id - this is usually the username.
|
String |
getInstantMsg()
Gets the instant msg id.
|
String |
getJobTitle()
Gets the job title.
|
String |
getLastName()
Gets the last name.
|
String |
getLocation()
Get the location
|
String |
getMiddleName()
Gets the middle name.
|
String |
getMobilePhone()
Gets the mobile phone.
|
String |
getName() |
String |
getOrganization()
Gets the organization.
|
Map<String,Serializable> |
getProperties()
Gets the properties.
|
Object |
getProperty(String key)
Gets the property.
|
String |
getSkype()
Gets the skype id.
|
String |
getStringProperty(String key)
Gets the string property.
|
String |
getTelephone()
Gets the home phone.
|
boolean |
isAdmin()
Checks if is admin.
|
boolean |
isGuest()
Returns
true if this user is a guest user |
void |
save()
Persist this user
|
void |
setBiography(String value)
Set the biography
|
void |
setCompanyAddress1(String value)
Sets the Company Address1
|
void |
setCompanyAddress2(String value)
Sets the Company Address2
|
void |
setCompanyAddress3(String value)
Sets the Company Address3
|
void |
setCompanyEmail(String value)
Sets the Company Email
|
void |
setCompanyFax(String value)
Sets the Company Fax
|
void |
setCompanyPostcode(String value)
Sets the Company Postcode
|
void |
setCompanyTelephone(String value)
Sets the Company Telephone
|
void |
setEmail(String value)
Sets the email.
|
void |
setFirstName(String value)
Sets the first name.
|
void |
setGoogleUsername(String value)
Sets the google user name
|
void |
setInstantMsg(String value)
Sets the instant msg id
|
void |
setJobTitle(String value)
Sets the job title.
|
void |
setLastName(String value)
Sets the last name.
|
void |
setLocation(String value)
Set the location
|
void |
setMiddleName(String value)
Sets the middle name.
|
void |
setMobilePhone(String value)
Sets the mobile phone.
|
void |
setOrganization(String value)
Sets the organization.
|
void |
setProperty(String key,
Serializable value)
Sets the property.
|
void |
setSkype(String value)
Sets the skype id
|
void |
setTelephone(String value)
Sets the home phone.
|
String |
toString() |
public static String PROP_ID
public static String PROP_FIRST_NAME
public static String PROP_MIDDLE_NAME
public static String PROP_LAST_NAME
public static String PROP_EMAIL
public static String PROP_ORGANIZATION
public static String PROP_JOB_TITLE
public static String PROP_LOCATION
public static String PROP_BIOGRAPHY
public static String PROP_TELEPHONE
public static String PROP_MOBILE_PHONE
public static String PROP_SKYPE
public static String PROP_INSTANTMSG
public static String PROP_GOOGLEUSERNAME
public static String PROP_COMPANY_ADDRESS1
public static String PROP_COMPANY_ADDRESS2
public static String PROP_COMPANY_ADDRESS3
public static String PROP_COMPANY_POSTCODE
public static String PROP_COMPANY_TELEPHONE
public static String PROP_COMPANY_FAX
public static String PROP_COMPANY_EMAIL
public static final String CAPABILITY_ADMIN
public static final String CAPABILITY_GUEST
public static final String CAPABILITY_MUTABLE
protected String fullName
protected final Map<String,Serializable> map
public String getId()
public String getFirstName()
public void setFirstName(String value)
value - the new first namepublic String getLastName()
public void setLastName(String value)
value - the new last namepublic String getMiddleName()
public void setMiddleName(String value)
value - the new middle namepublic String getEmail()
public void setEmail(String value)
value - the new emailpublic String getOrganization()
public void setOrganization(String value)
value - the new organizationpublic String getJobTitle()
public void setJobTitle(String value)
value - the new job titlepublic String getLocation()
public void setLocation(String value)
value - the new locationpublic String getBiography()
public void setBiography(String value)
value - the new biographypublic String getTelephone()
public void setTelephone(String value)
value - the new home phonepublic String getMobilePhone()
public void setMobilePhone(String value)
value - the new mobile phonepublic String getSkype()
public void setSkype(String value)
value - the new skype idpublic String getInstantMsg()
public void setInstantMsg(String value)
value - the new instant msg idpublic String getGoogleUsername()
public void setGoogleUsername(String value)
value - the new google user namepublic String getCompanyAddress1()
public void setCompanyAddress1(String value)
value - the new Company Address1public String getCompanyAddress2()
public void setCompanyAddress2(String value)
value - the new Company Address2public String getCompanyAddress3()
public void setCompanyAddress3(String value)
value - the new Company Address3public String getCompanyPostcode()
public void setCompanyPostcode(String value)
value - the new Company Postcodepublic String getCompanyTelephone()
public void setCompanyTelephone(String value)
value - the new Company Telephonepublic String getCompanyFax()
public void setCompanyFax(String value)
value - the new Company Faxpublic String getCompanyEmail()
public void setCompanyEmail(String value)
value - the new Company Emailpublic Object getProperty(String key)
key - the keypublic String getStringProperty(String key)
key - the keypublic void setProperty(String key, Serializable value)
key - the keyvalue - the valuepublic Map<String,Serializable> getProperties()
public boolean isAdmin()
public boolean isGuest()
true if this user is a guest usertrue if this user is a guest userpublic Map<String,Boolean> getCapabilities()
public String toString()
public String getFullName()
public void save()
Copyright © 2005–2017 Alfresco Software. All rights reserved.