|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.drijf.javaone.RoleMappingImpl
This class implements a basic role mapping, using a memory based table. In real life, one would do this mapping based on property files ar a database.
Constructor Summary | |
RoleMappingImpl(java.util.Map roledefs)
Construct a new role mapping, based on a map. |
Method Summary | |
Role |
getRole(java.lang.String alias)
Return the role associated with a name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RoleMappingImpl(java.util.Map roledefs)
roledefs
- a map containing name to role mappings.Method Detail |
public Role getRole(java.lang.String alias)
getRole
in interface RoleMapping
alias
- the name the return a role for.null
if
the name is unknown.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |