|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface User
A user on a Nesstar server.
| Method Summary | |
|---|---|
void |
addRole(Role role)
Add a role for the user. |
String |
getName()
Returns the freetext name of the user (for example "John Smith"). |
NesstarList<Role> |
getRoles()
Returns the Roles associated with this user. |
String |
getUserId()
Returns the user id, i.e. the id that is used to log in (for example "johnsmith"). |
void |
removeRole(Role role)
Remove a role from the user. |
| Methods inherited from interface com.nesstar.api.NesstarObject |
|---|
getId, getLabel, getTimeStamp, reload, toURI |
| Method Detail |
|---|
String getUserId()
String getName()
throws NotAuthorizedException,
IOException
NotAuthorizedException - If access was denied by the Nesstar server.
IOException - If a communication error occurs.
NesstarList<Role> getRoles()
throws NotAuthorizedException,
IOException
NotAuthorizedException - If access was denied by the Nesstar server.
IOException - If a communication error occurs.
void addRole(Role role)
throws NotAuthorizedException,
IOException
role - The Role to add.
NotAuthorizedException - If access was denied by the Nesstar server.
IOException - If a communication error occurs.
void removeRole(Role role)
throws NotAuthorizedException,
IOException
role - to be removed.
NotAuthorizedException - If access was denied by the Nesstar server.
IOException - If a communication error occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||