|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.proteios.core.data.BasicData
org.proteios.core.data.UserData
public class UserData
This class holds information about a user.
User| Field Summary | |
|---|---|
static int |
MAX_ADDRESS_LENGTH
The maximum length of the address that can be stored in the database. |
static int |
MAX_EMAIL_LENGTH
The maximum length of the email address that can be stored in the database. |
static int |
MAX_EXTERNAL_ID_LENGTH
The maximum length of the external ID that can be stored in the database. |
static int |
MAX_FAX_LENGTH
The maximum length of the fax that can be stored in the database. |
static int |
MAX_LOGIN_LENGTH
The maximum length of the login that can be stored in the database. |
static int |
MAX_ORGANISATION_LENGTH
The maximum length of the organisation that can be stored in the database. |
static int |
MAX_PHONE_LENGTH
The maximum length of the phone that can be stored in the database. |
static int |
MAX_URL_LENGTH
The maximum length of the url that can be stored in the database. |
| Fields inherited from interface org.proteios.core.data.NameableData |
|---|
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH |
| Constructor Summary | |
|---|---|
UserData()
|
|
| Method Summary | |
|---|---|
String |
getAddress()
Get the address for the user, or null if unknown. |
String |
getDescription()
Get the description for the item. |
String |
getEmail()
Get the email address to the user, or null if unknown. |
Date |
getExpirationDate()
Get the expiration date for this user account, or null if no expiration date is set. |
String |
getExternalId()
Get the external ID for the user account. |
String |
getFax()
Get the fax number to the user, or null if unknown. |
DirectoryData |
getHomeDirectory()
Get the home directory for this user. |
int |
getId()
We must override this method because the id must be the same as the id for the password. |
String |
getLogin()
Get the login for the user account. |
String |
getName()
Get the name of the item. |
String |
getOrganisation()
Get the organisation this user works for, or null if unknown. |
PasswordData |
getPassword()
Get the PasswordData object which allows you to change the
password for the user. |
String |
getPhone()
Get the phone number to the user, or null if unknown. |
QuotaData |
getQuota()
Get the quota object which holds quota information for this user. |
GroupData |
getQuotaGroup()
Get the group this user is sharing quota with, or null if this user only has it's own quota. |
String |
getSystemId()
Get the system id for the item. |
String |
getUrl()
Get the URL to the user's homepage, or null if unknown. |
boolean |
isDisabled()
Check if this account is disabled or enabled. |
boolean |
isMultiuserAccount()
Check if this account has enabled the multiuser feature. |
boolean |
isRemoved()
Check if the removed flag is set for this item. |
void |
setAddress(String address)
|
void |
setDescription(String description)
Set the description for the item. |
void |
setDisabled(boolean disabled)
|
void |
setEmail(String email)
|
void |
setExpirationDate(Date expirationDate)
|
void |
setExternalId(String externalId)
|
void |
setFax(String fax)
|
void |
setHomeDirectory(DirectoryData homeDirectory)
|
void |
setLogin(String login)
|
void |
setMultiuserAccount(boolean multiuserAccount)
|
void |
setName(String name)
Set the name of the item. |
void |
setOrganisation(String organisation)
|
void |
setPhone(String phone)
|
void |
setQuota(QuotaData quota)
|
void |
setQuotaGroup(GroupData quotaGroup)
|
void |
setRemoved(boolean removed)
Set the removed flag for this item. |
void |
setSystemId(String systemId)
|
void |
setUrl(String url)
|
| Methods inherited from class org.proteios.core.data.BasicData |
|---|
equals, getVersion, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.proteios.core.data.IdentifiableData |
|---|
getVersion |
| Field Detail |
|---|
public static final int MAX_EXTERNAL_ID_LENGTH
setExternalId(String),
Constant Field Valuespublic static final int MAX_LOGIN_LENGTH
setExternalId(String),
Constant Field Valuespublic static final int MAX_ORGANISATION_LENGTH
setOrganisation(String),
Constant Field Valuespublic static final int MAX_ADDRESS_LENGTH
setAddress(String),
Constant Field Valuespublic static final int MAX_PHONE_LENGTH
setPhone(String),
Constant Field Valuespublic static final int MAX_FAX_LENGTH
setFax(String),
Constant Field Valuespublic static final int MAX_EMAIL_LENGTH
setEmail(String),
Constant Field Valuespublic static final int MAX_URL_LENGTH
setUrl(String),
Constant Field Values| Constructor Detail |
|---|
public UserData()
| Method Detail |
|---|
public int getId()
getId in interface IdentifiableDatagetId in class BasicDatapublic String getName()
NameableData
getName in interface NameableDataString with the name of the itempublic void setName(String name)
NameableDataMAX_NAME_LENGTH constant.
setName in interface NameableDataname - The new name for the itempublic String getDescription()
NameableData
getDescription in interface NameableDataString with a description of the itempublic void setDescription(String description)
NameableDataMAX_DESCRIPTION_LENGTH constant.
setDescription in interface NameableDatadescription - The new description for the itempublic boolean isRemoved()
RemovableData
isRemoved in interface RemovableDatapublic void setRemoved(boolean removed)
RemovableData
setRemoved in interface RemovableDataremoved - TRUE if the item should be flagged as removed,
FALSE otherwisepublic String getSystemId()
SystemData
getSystemId in interface SystemDatapublic void setSystemId(String systemId)
public PasswordData getPassword()
PasswordData object which allows you to change the
password for the user. This is never null and is automatically deleted
when the user a user is deleted.
public boolean isMultiuserAccount()
public void setMultiuserAccount(boolean multiuserAccount)
public Date getExpirationDate()
return new Date(userdata.getExpirationDate());
public void setExpirationDate(Date expirationDate)
public boolean isDisabled()
public void setDisabled(boolean disabled)
public String getExternalId()
public void setExternalId(String externalId)
public String getLogin()
public void setLogin(String login)
public String getOrganisation()
public void setOrganisation(String organisation)
public String getAddress()
public void setAddress(String address)
public String getPhone()
public void setPhone(String phone)
public String getFax()
public void setFax(String fax)
public String getEmail()
public void setEmail(String email)
public String getUrl()
public void setUrl(String url)
public GroupData getQuotaGroup()
getQuota()public void setQuotaGroup(GroupData quotaGroup)
public QuotaData getQuota()
getQuotaGroup()public void setQuota(QuotaData quota)
public DirectoryData getHomeDirectory()
getQuota()public void setHomeDirectory(DirectoryData homeDirectory)
|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||