public interface User extends Principal
Modifier and Type | Field and Description |
---|---|
static String |
ADMIN_USER_NAME
The admin login name
|
Modifier and Type | Method and Description |
---|---|
String |
getAbbreviation()
Gets the abbreviation of the user
|
String |
getEMail()
Gets eMail adress of the User
|
Map<String,String> |
getFiletypeBindings() |
String |
getLDAPSection()
Gets the LDAPSection attribute of the User object
|
String |
getLoginName()
Get the login name
|
String |
getName()
Returns the name of this principal.
|
String |
getPhoneNumber()
Gets the phone number
|
String |
getRealname()
The realname of the user
|
Map<String,String> |
getUserBindings()
Get a map containing user bindings.
|
boolean |
isActive() |
boolean |
isAdmin()
Is this user the server admin
|
boolean |
isLDAPUser()
Gets the LDAPUser
|
boolean |
isProjectAdmin(Project project)
Is this user project admin.
|
void |
setAbbreviation(String abbreviation)
Sets the abbreviation of the user
|
void |
setActive(boolean active)
Set activation state of user.
|
void |
setEMail(String email)
Sets the eMail address of the user
|
void |
setFiletypeBindings(Map<String,String> fileTypeBindings) |
void |
setLDAPSection(String section)
Sets the lDAPSection attribute of the User object
|
void |
setLDAPUser(boolean isLDAP)
Sets the LDAPUser attribute of the User object
|
void |
setLoginName(String name)
Sets the login name
|
void |
setLoginPassword(String password)
Sets the password of the user
Given password must be not null and not empty, otherwise a
NullPointerException or IllegalArgumentException would be thrown.
|
void |
setPhoneNumber(String phone)
Sets the phone number
|
void |
setRealname(String name)
Sets the realname of the User
|
void |
setUserBindings(Map<String,String> userBindings) |
boolean |
verifyPassword(String password)
Verify password
|
compareTo
static final String ADMIN_USER_NAME
String getLoginName()
void setLoginName(String name)
name
- The new login namevoid setLoginPassword(String password)
password
- the new passwordboolean verifyPassword(String password)
password
- the passwordString getRealname()
void setRealname(String name)
name
- the new realnameString getEMail()
void setEMail(String email)
email
- the new eMail addressString getPhoneNumber()
void setPhoneNumber(String phone)
phone
- the new phone numberString getAbbreviation()
void setAbbreviation(String abbreviation)
abbreviation
- the new abbreviationboolean isLDAPUser()
void setLDAPUser(boolean isLDAP)
isLDAP
- the new LDAPUser valueString getLDAPSection()
void setLDAPSection(String section)
section
- the new LDAPSection valueboolean isAdmin()
true
true if this user is the server admin, false
otherwiseboolean isProjectAdmin(Project project)
isAdmin()
)
is project admin of all projects.project
- the project to verify againstMap<String,String> getUserBindings()
setUserBindings(java.util.Map<java.lang.String, java.lang.String>)
void setUserBindings(Map<String,String> userBindings)
userBindings
- the new user bindingsIOException
- if the save operation failes on the servergetUserBindings()
Map<String,String> getFiletypeBindings()
setFiletypeBindings(Map<String, String> fileTypeBindings)
void setFiletypeBindings(Map<String,String> fileTypeBindings) throws IOException
fileTypeBindings
- mapping file extensions to program namesIOException
- if the save operation failes on the servergetFiletypeBindings()
String getName()
Principal
boolean isActive()
void setActive(boolean active)
Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500