|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.datacrow.core.security.SecuredUser
public final class SecuredUser
A secured user is a user which has logged on successfully.
Constructor Summary | |
---|---|
protected |
SecuredUser(User user,
java.lang.String password)
Creates a new instance |
Method Summary | |
---|---|
java.lang.String |
getPassword()
The password of the user |
User |
getUser()
Retrieves the underlying user. |
java.lang.String |
getUsername()
The login name of the user |
boolean |
isAdmin()
Indicates if the user is an administrator |
boolean |
isAuthorized(DcField field)
Checks if the user is allowed to see the specified field |
boolean |
isAuthorized(DcModule module)
Checks if the user is allowed to see the module |
boolean |
isAuthorized(Plugin plugin)
Checks if the user is allowed to use the plugin. |
boolean |
isAuthorized(java.lang.String plugin)
Checks if the user is allowed to use the plugin. |
boolean |
isEditingAllowed(DcField field)
Indicates if the user is allowed to edit the specified field. |
boolean |
isEditingAllowed(DcModule module)
Indicates if the user is allowed to edit items belonging to the module. |
void |
setPassword(java.lang.String password)
Sets the password for this user. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected SecuredUser(User user, java.lang.String password)
user
- The userpassword
- An his / her passwordMethod Detail |
---|
public User getUser()
public java.lang.String getUsername()
public java.lang.String getPassword()
public boolean isAdmin()
public boolean isAuthorized(DcField field)
field
- The to be checked fieldpublic boolean isAuthorized(DcModule module)
module
- The to be checked modulepublic boolean isEditingAllowed(DcModule module)
module
- The to be checked modulepublic boolean isEditingAllowed(DcField field)
field
- The to be checked fieldpublic boolean isAuthorized(java.lang.String plugin)
plugin
- The plugin keypublic void setPassword(java.lang.String password)
password
- public boolean isAuthorized(Plugin plugin)
plugin
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |