|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.core.data.BasicData net.sf.basedb.core.data.UserData
public class UserData
This class holds information about a user.
User
,
Authentication overviewField Summary | |
---|---|
private String |
address
|
private Set<UserClientSettingData> |
clientSettings
|
private Map<ContextIndex,ContextData> |
contexts
|
private Set<UserDefaultSettingData> |
defaultSettings
|
private String |
description
|
private boolean |
disabled
|
private String |
email
|
private Date |
entryDate
|
private Date |
expirationDate
|
private Map<String,Object> |
extendedProperties
|
private String |
externalId
|
private String |
fax
|
private Set<GroupData> |
groups
|
private DirectoryData |
homeDirectory
|
private Set<ItemKeyData> |
itemKeys
|
private String |
login
|
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. |
private Set<MessageData> |
messages
|
private boolean |
multiuserAccount
|
private String |
name
|
private String |
organisation
|
private PasswordData |
password
|
private String |
phone
|
private Set<ProjectData> |
projects
|
private QuotaData |
quota
|
private GroupData |
quotaGroup
|
private boolean |
removed
|
private Set<RoleData> |
roles
|
private boolean |
sendMessagesAsEmail
|
private Set<SessionData> |
sessions
|
private String |
systemId
|
private String |
url
|
Fields inherited from interface net.sf.basedb.core.data.NameableData |
---|
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH |
Fields inherited from interface net.sf.basedb.core.data.SystemData |
---|
MAX_SYSTEM_ID_LENGTH |
Constructor Summary | |
---|---|
UserData()
|
Method Summary | |
---|---|
String |
getAddress()
Get the address for the user, or null if unknown. |
(package private) Set<UserClientSettingData> |
getClientSettings()
This is the inverse end. |
Map<ContextIndex,ContextData> |
getContexts()
The saved contexts for the user. |
(package private) Set<UserDefaultSettingData> |
getDefaultSettings()
This is the inverse end. |
String |
getDescription()
Get the description for the item. |
String |
getEmail()
Get the email address to the user, or null if unknown. |
Date |
getEntryDate()
Get the date this item was added to the database. |
Date |
getExpirationDate()
Get the expiration date for this user account, or null if no expiration date is set. |
Object |
getExtended(String name)
Get the value of an extended property. |
String |
getExternalId()
Get the external ID for the user account. |
String |
getFax()
Get the fax number to the user, or null if unknown. |
(package private) Set<GroupData> |
getGroups()
This is the inverse end. |
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. |
(package private) Set<ItemKeyData> |
getItemKeys()
This is the inverse end. |
String |
getLogin()
Get the login for the user account. |
(package private) Set<MessageData> |
getMessages()
This is the inverse end. |
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. |
(package private) Set<ProjectData> |
getProjects()
This is the inverse end. |
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. |
(package private) Set<RoleData> |
getRoles()
This is the inverse end. |
boolean |
getSendMessagesAsEmail()
If this flag is set, all messages to this user are sent as an email also, but only if: the server admin has configured an outgoing smtp server and the user has supplied a valid email address. |
(package private) Set<SessionData> |
getSessions()
This is the inverse end. |
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)
|
(package private) void |
setClientSettings(Set<UserClientSettingData> clientSettings)
|
(package private) void |
setContexts(Map<ContextIndex,ContextData> contexts)
|
(package private) void |
setDefaultSettings(Set<UserDefaultSettingData> defaultSettings)
|
void |
setDescription(String description)
Set the description for the item. |
void |
setDisabled(boolean disabled)
|
void |
setEmail(String email)
|
void |
setEntryDate(Date entryDate)
|
void |
setExpirationDate(Date expirationDate)
|
void |
setExtended(String name,
Object value)
Set the value of an extended property. |
void |
setExternalId(String externalId)
|
void |
setFax(String fax)
|
(package private) void |
setGroups(Set<GroupData> groups)
|
void |
setHomeDirectory(DirectoryData homeDirectory)
|
(package private) void |
setItemKeys(Set<ItemKeyData> itemKeys)
|
void |
setLogin(String login)
|
(package private) void |
setMessages(Set<MessageData> messages)
|
void |
setMultiuserAccount(boolean multiuserAccount)
|
void |
setName(String name)
Set the name of the item. |
void |
setOrganisation(String organisation)
|
(package private) void |
setPassword(PasswordData password)
|
void |
setPhone(String phone)
|
(package private) void |
setProjects(Set<ProjectData> projects)
|
void |
setQuota(QuotaData quota)
|
void |
setQuotaGroup(GroupData quotaGroup)
|
void |
setRemoved(boolean removed)
Set the removed flag for this item. |
(package private) void |
setRoles(Set<RoleData> roles)
|
void |
setSendMessagesAsEmail(boolean sendMessagesAsEmail)
|
(package private) void |
setSessions(Set<SessionData> sessions)
|
void |
setSystemId(String systemId)
|
void |
setUrl(String url)
|
Methods inherited from class net.sf.basedb.core.data.BasicData |
---|
equals, getVersion, hashCode, setId, setVersion, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface net.sf.basedb.core.data.IdentifiableData |
---|
getVersion |
Field Detail |
---|
private String name
private String description
private boolean removed
private String systemId
private Map<String,Object> extendedProperties
private Date entryDate
private PasswordData password
private boolean multiuserAccount
private Date expirationDate
private boolean disabled
public static final int MAX_EXTERNAL_ID_LENGTH
setExternalId(String)
,
Constant Field Valuesprivate String externalId
public static final int MAX_LOGIN_LENGTH
setExternalId(String)
,
Constant Field Valuesprivate String login
public static final int MAX_ORGANISATION_LENGTH
setOrganisation(String)
,
Constant Field Valuesprivate String organisation
public static final int MAX_ADDRESS_LENGTH
setAddress(String)
,
Constant Field Valuesprivate String address
public static final int MAX_PHONE_LENGTH
setPhone(String)
,
Constant Field Valuesprivate String phone
public static final int MAX_FAX_LENGTH
setFax(String)
,
Constant Field Valuesprivate String fax
public static final int MAX_EMAIL_LENGTH
setEmail(String)
,
Constant Field Valuesprivate String email
private boolean sendMessagesAsEmail
public static final int MAX_URL_LENGTH
setUrl(String)
,
Constant Field Valuesprivate String url
private GroupData quotaGroup
private QuotaData quota
private DirectoryData homeDirectory
private Set<GroupData> groups
private Set<RoleData> roles
private Set<ProjectData> projects
private Set<ItemKeyData> itemKeys
private Set<SessionData> sessions
private Set<UserClientSettingData> clientSettings
private Set<UserDefaultSettingData> defaultSettings
private Set<MessageData> messages
private Map<ContextIndex,ContextData> contexts
Constructor Detail |
---|
public UserData()
Method Detail |
---|
public int getId()
getId
in interface IdentifiableData
getId
in class BasicData
public String getName()
NameableData
getName
in interface NameableData
String
with the name of the itempublic void setName(String name)
NameableData
MAX_NAME_LENGTH
constant.
setName
in interface NameableData
name
- The new name for the itempublic String getDescription()
NameableData
getDescription
in interface NameableData
String
with a description of the itempublic void setDescription(String description)
NameableData
MAX_DESCRIPTION_LENGTH
constant.
setDescription
in interface NameableData
description
- The new description for the itempublic boolean isRemoved()
RemovableData
isRemoved
in interface RemovableData
public void setRemoved(boolean removed)
RemovableData
setRemoved
in interface RemovableData
removed
- TRUE if the item should be flagged as removed,
FALSE otherwisepublic String getSystemId()
SystemData
getSystemId
in interface SystemData
public void setSystemId(String systemId)
public Object getExtended(String name)
ExtendableData
getExtended
in interface ExtendableData
name
- The name of the property
public void setExtended(String name, Object value)
ExtendableData
setExtended
in interface ExtendableData
name
- The name of the propertyvalue
- The new value for the propertypublic Date getEntryDate()
RegisteredData
getEntryDate
in interface RegisteredData
public void setEntryDate(Date entryDate)
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.
void setPassword(PasswordData password)
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 boolean getSendMessagesAsEmail()
public void setSendMessagesAsEmail(boolean sendMessagesAsEmail)
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)
Set<GroupData> getGroups()
GroupData.getUsers()
void setGroups(Set<GroupData> groups)
Set<RoleData> getRoles()
RoleData.getUsers()
void setRoles(Set<RoleData> roles)
Set<ProjectData> getProjects()
ProjectData.getUsers()
void setProjects(Set<ProjectData> projects)
Set<ItemKeyData> getItemKeys()
ItemKeyData.getUsers()
void setItemKeys(Set<ItemKeyData> itemKeys)
Set<SessionData> getSessions()
SessionData.getUser()
void setSessions(Set<SessionData> sessions)
Set<UserClientSettingData> getClientSettings()
UserClientSettingData.getUser()
void setClientSettings(Set<UserClientSettingData> clientSettings)
Set<UserDefaultSettingData> getDefaultSettings()
UserDefaultSettingData.getUser()
void setDefaultSettings(Set<UserDefaultSettingData> defaultSettings)
Set<MessageData> getMessages()
MessageData.getTo()
void setMessages(Set<MessageData> messages)
public Map<ContextIndex,ContextData> getContexts()
ContextData.getUser()
void setContexts(Map<ContextIndex,ContextData> contexts)
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |