|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jzeno.aop.AnonymousUser
public class AnonymousUser
Constructor Summary | |
---|---|
AnonymousUser()
|
Method Summary | |
---|---|
java.lang.String |
getUserName()
Any user in the system should be identified with a system-wide unique user name. |
boolean |
hasPermission(java.lang.String permissionName)
The User implementation should be able to tell wether or not a given user has a requested permission. |
boolean |
hasRole(java.lang.String roleName)
The User implementation should be able to tell wether or not a given user has a requested role. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AnonymousUser()
Method Detail |
---|
public boolean hasPermission(java.lang.String permissionName)
User
The User implementation should be able to tell wether or not a given user has a requested permission. Typically your user object could have roles and permissions associated to it, and then the implementation of this method would look up all permissions and return true if the requested permission was associated to the user. But the details of the implementation are up to you.
hasPermission
in interface User
public boolean hasRole(java.lang.String roleName)
User
The User implementation should be able to tell wether or not a given user has a requested role. Typically your user object could have roles to it, and then the implementation of this method would look up all roles and return true if the requested role was assigned to the user. But the details of the implementation are up to you. If you do not wish to implement role based security, this method should just return false.
hasRole
in interface User
public java.lang.String getUserName()
User
Any user in the system should be identified with a system-wide unique user name.
getUserName
in interface User
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |