|
jACOB 2.7 API Documentation. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IUser
User interface, which has to be implemented by an application developer to provide application specific user information.
| Field Summary | |
|---|---|
static java.lang.String |
RCS_ID
The internal revision control system id. |
static java.lang.String |
RCS_REV
The internal revision control system id in short form. |
| Method Summary | |
|---|---|
java.lang.String |
getCellPhone()
Returns the cell phone number of this user. |
java.lang.String |
getEMail()
Returns the email address of this user. |
java.lang.String |
getFax()
Returns the fax number of this user. |
java.lang.String |
getFullName()
Returns the full name of this user. |
java.lang.String |
getKey()
Returns the unique id of this user. |
java.util.Locale |
getLocale()
The preferred language, i.e. locale, of this user. |
java.lang.String |
getLoginId()
Returns the login id of this user. |
java.lang.String |
getMandatorId()
Returns the mandator id of this user. |
java.lang.String |
getPhone()
Returns the phone number of this user. |
java.lang.Object |
getProperty(java.lang.String key)
Retrieve a property value from the underlying user session. |
IRole |
getRole(java.lang.String roleName)
Returns the role object for the given role name. |
java.util.Iterator |
getRoles()
Returns all roles of this user. |
int |
getTimezoneOffset()
The timezone offset of the client to the jACOB server in minutes |
boolean |
hasOneRoleOf(java.util.List roleNames)
Checks whether this user obtains one of the given roles. |
boolean |
hasRole(java.lang.String roleName)
Checks whether this user has the given role. |
boolean |
isSystem()
Checks whether the given user is a system user or a real user. |
void |
setPassword(java.lang.String password)
Changes the password of this user. |
void |
setProperty(java.lang.String key,
java.lang.Object value)
Sets a property value within the underlying user session. |
| Field Detail |
|---|
static final java.lang.String RCS_ID
static final java.lang.String RCS_REV
| Method Detail |
|---|
java.lang.String getLoginId()
java.lang.String getMandatorId()
nulljava.util.Locale getLocale()
int getTimezoneOffset()
void setProperty(java.lang.String key,
java.lang.Object value)
key - the property keyvalue - the property valuejava.lang.Object getProperty(java.lang.String key)
key - the property key
null, if no value exists for
this property so far
void setPassword(java.lang.String password)
throws InvalidNewPasswordException,
java.lang.Exception
password - the new password to set
InvalidNewPasswordException - the password is not valid
java.lang.Exception - any other problemboolean isSystem()
true if system user, false if real
user.java.lang.String getKey()
java.lang.String getFullName()
java.lang.String getEMail()
null if not existing.java.lang.String getPhone()
null if not existing.java.lang.String getCellPhone()
null if not existing.java.lang.String getFax()
null if not existing.
boolean hasRole(java.lang.String roleName)
throws java.security.GeneralSecurityException
roleName - the name of the role to check.
true if this user has the given role, otherwise false
java.security.GeneralSecurityException - any security concern
boolean hasOneRoleOf(java.util.List roleNames)
throws java.security.GeneralSecurityException
roleNames - a list of role names (String)
true if this user obtains at least one of the given
roles, false otherwise.
java.security.GeneralSecurityException
IRole getRole(java.lang.String roleName)
throws java.security.GeneralSecurityException
roleName - the role name
java.security.GeneralSecurityException - if the role object of this user could not be fetched.
java.util.Iterator getRoles()
throws java.security.GeneralSecurityException
Iterator of IRole.
java.security.GeneralSecurityException - if the roles of this user could not be fetched.
|
jACOB 2.7 API Documentation. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||