public class User extends Object
Modifier and Type | Method and Description |
---|---|
String |
getName() |
String |
getPassword() |
String |
getReadFrom() |
String |
getWriteTo() |
boolean |
isAdmin() |
void |
setAdmin(boolean admin) |
void |
setPassword(String password) |
void |
setPermissions(String... permissions)
Setter for readFrom and writeTo permissions for this user.
|
void |
setReadFrom(String readFrom) |
void |
setWriteTo(String writeTo) |
String |
toString() |
public User(String name)
name
- the name of the user.public String getName()
public String getPassword()
public void setPassword(String password)
password
- the password to setpublic boolean isAdmin()
public void setAdmin(boolean admin)
admin
- the admin to setpublic String getReadFrom()
public void setReadFrom(String readFrom)
readFrom
- the readFrom to setpublic String getWriteTo()
public void setWriteTo(String writeTo)
writeTo
- the writeTo to setpublic void setPermissions(String... permissions)
permissions
- a array of permissions, can be either skipped or exactly 2 readFrom and writeTo in
this order.Copyright © 2014. All Rights Reserved.