com.friendshipsystems.fsshresourcemanager.config
Class FUser
java.lang.Object
com.friendshipsystems.fsshresourcemanager.utils.FDBObject
com.friendshipsystems.fsshresourcemanager.config.FUser
public class FUser
- extends com.friendshipsystems.fsshresourcemanager.utils.FDBObject
This class represents the configured users.
- Author:
- bergmanna
|
Constructor Summary |
FUser()
|
FUser(java.lang.String name,
java.lang.String pass,
int role,
java.lang.String mail)
|
| Methods inherited from class com.friendshipsystems.fsshresourcemanager.utils.FDBObject |
delete, save, update |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FUser
public FUser()
FUser
public FUser(java.lang.String name,
java.lang.String pass,
int role,
java.lang.String mail)
getUserByName
public static FUser getUserByName(java.lang.String name)
getUserById
public static FUser getUserById(int id)
getUsers
public static java.util.List<FUser> getUsers()
getUsersByRole
public static java.util.List<FUser> getUsersByRole(int role)
toMap
public java.util.Map<java.lang.String,java.lang.Object> toMap()
- Specified by:
toMap in class com.friendshipsystems.fsshresourcemanager.utils.FDBObject
setEmail
public void setEmail(java.lang.String mail)
getEmail
public java.lang.String getEmail()
setPassword
public void setPassword(java.lang.String password)
- Parameters:
password - the password to set
getPassword
public java.lang.String getPassword()
- Returns:
- the password
setName
public void setName(java.lang.String name)
- Parameters:
name - the name to set
getName
public java.lang.String getName()
- Returns:
- the name
getId
public int getId()
- Returns:
- the id
setRole
public void setRole(int role)
- Parameters:
role - the role to set
getRole
public int getRole()
- Returns:
- the role
role
public FUserRole role()