public final class ScriptUser extends ScriptBase
context, properties| Constructor and Description |
|---|
ScriptUser(RequestContext context,
org.springframework.extensions.webscripts.connector.User user)
Instantiates a new ScriptUser object which wraps a given request
context and framework user object.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.extensions.webscripts.ScriptableMap |
buildProperties()
Provides an associative array of properties that can be accessed via
scripting by using the .properties accessor.
|
String |
getBiography() |
org.springframework.extensions.webscripts.ScriptableMap<String,Boolean> |
getCapabilities()
Gets a map of capabilities (boolean assertions) for the user.
|
String |
getCompanyAddress1() |
String |
getCompanyAddress2() |
String |
getCompanyAddress3() |
String |
getCompanyEmail() |
String |
getCompanyFax() |
String |
getCompanyPostcode() |
String |
getCompanyTelephone() |
String |
getEmail() |
String |
getFirstName() |
String |
getFullName() |
String |
getGoogleUsername() |
String |
getId()
Gets the id.
|
String |
getInstantMsg() |
boolean |
getIsAdmin() |
boolean |
getIsGuest() |
String |
getJobTitle() |
String |
getLastName() |
String |
getLocation() |
String |
getMiddleName() |
String |
getMobilePhone() |
String |
getName()
Gets the name (generally this is the username - i.e.
|
org.springframework.extensions.webscripts.connector.User |
getNativeUser() |
String |
getOrganization() |
String |
getSkype() |
String |
getTelephone() |
ScriptUser |
getUser(String userId)
Retrieve a user object with populated details for the given user Id
|
void |
save()
Persist user changes
|
void |
setBiography(String value) |
void |
setCompanyAddress1(String value) |
void |
setCompanyAddress2(String value) |
void |
setCompanyAddress3(String value) |
void |
setCompanyEmail(String value) |
void |
setCompanyFax(String value) |
void |
setCompanyPostcode(String value) |
void |
setCompanyTelephone(String value) |
void |
setEmail(String value) |
void |
setFirstName(String value) |
void |
setGoogleUsername(String value) |
void |
setInstantMsg(String value) |
void |
setJobTitle(String value) |
void |
setLastName(String value) |
void |
setLocation(String value) |
void |
setMiddleName(String value) |
void |
setMobilePhone(String value) |
void |
setOrganization(String value) |
void |
setSkype(String value) |
void |
setTelephone(String value) |
String |
toString() |
getConfig, getObject, getObjectService, getProperties, getRequestContextpublic ScriptUser(RequestContext context, org.springframework.extensions.webscripts.connector.User user)
context - the render contextuser - the userprotected org.springframework.extensions.webscripts.ScriptableMap buildProperties()
buildProperties in class ScriptBasepublic String getId()
public String getName()
public String getFullName()
public String getFirstName()
public void setFirstName(String value)
public String getLastName()
public void setLastName(String value)
public String getMiddleName()
public void setMiddleName(String value)
public String getEmail()
public void setEmail(String value)
public String getOrganization()
public void setOrganization(String value)
public String getJobTitle()
public void setJobTitle(String value)
public String getLocation()
public void setLocation(String value)
public String getBiography()
public void setBiography(String value)
public String getTelephone()
public void setTelephone(String value)
public String getMobilePhone()
public void setMobilePhone(String value)
public String getSkype()
public void setSkype(String value)
public String getInstantMsg()
public void setInstantMsg(String value)
public String getGoogleUsername()
public void setGoogleUsername(String value)
public String getCompanyPostcode()
public void setCompanyPostcode(String value)
public String getCompanyTelephone()
public void setCompanyTelephone(String value)
public String getCompanyFax()
public void setCompanyFax(String value)
public String getCompanyEmail()
public void setCompanyEmail(String value)
public String getCompanyAddress1()
public void setCompanyAddress1(String value)
public String getCompanyAddress2()
public void setCompanyAddress2(String value)
public String getCompanyAddress3()
public void setCompanyAddress3(String value)
public boolean getIsAdmin()
public boolean getIsGuest()
public void save()
public org.springframework.extensions.webscripts.connector.User getNativeUser()
public org.springframework.extensions.webscripts.ScriptableMap<String,Boolean> getCapabilities()
public ScriptUser getUser(String userId)
userId - Stringpublic String toString()
toString in class ScriptBaseCopyright © 2005–2016 Alfresco Software. All rights reserved.