|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface User
The security support in jZeno assumes that you have a model bean that implements this interface. You have to configure the concrete fully qualified class name in configuration.properties.
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. |
Method Detail |
---|
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. 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.
boolean hasRole(java.lang.String roleName)
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |