|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.extensions.webscripts.connector.User
public class User
Default user profile object.
Field Summary | |
---|---|
protected String |
fullName
|
protected boolean |
isAdmin
|
protected boolean |
isGuest
|
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_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 Summary | |
---|---|
User(String id)
Instantiates a new user. |
|
User(String id,
boolean isAdmin,
boolean isGuest)
Instantiates a new user. |
Method Summary | |
---|---|
String |
getBiography()
Get the biography |
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 |
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 |
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.security.Principal |
---|
equals, hashCode |
Field Detail |
---|
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_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
protected String fullName
protected boolean isAdmin
protected boolean isGuest
protected Map<String,Serializable> map
Constructor Detail |
---|
public User(String id)
id
- the idpublic User(String id, boolean isAdmin, boolean isGuest)
id
- the idisAdmin
- the is adminMethod Detail |
---|
public String getName()
getName
in interface Principal
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 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 key
public String getStringProperty(String key)
key
- the key
public 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 user
true
if this user is a guest userpublic String toString()
toString
in interface Principal
toString
in class Object
public String getFullName()
public void save()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |