|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SecurityControllerManager
A SecurityControllerManager is responsible for linking a controllable object, one that
implements SecurityControllable, to the
appropriate SecurityController to manage it.
The SecurityControllable object will provide a controller Id that needs to be mapped to
a specific controller. See SecurityControllable#getSecurityControllerId().
This id will then be used in a call to getSecurityController(String) to find
the registered security controller.
Each security controller is implicitly registered under its bean context id. Aliases
may be registered by calling
registerSecurityControllerAlias(String, SecurityController). Subsequently,
any call to getSecurityController with that alias id will return the
registered security controller. This is useful for mapping generated command security
controller ids (which are often a combination of a form id and a command face id) to
the actual security controller that should manage the command. This provides a
declarative model for linking commands to controllers instead of requiring the
subclassing a Form in order to specify the command's security controller id.
DefaultSecurityControllerManager| Method Summary | |
|---|---|
SecurityController |
getSecurityController(String id)
Get the security controller for a given Id. |
void |
registerSecurityControllerAlias(String aliasId,
SecurityController securityController)
Register an alias for a SecurityController. |
void |
setSecurityControllerMap(Map map)
Set the map of controller Ids to controller instances. |
| Method Detail |
|---|
void setSecurityControllerMap(Map map)
map - keyed by controller Id, value is SecurityController instance
void registerSecurityControllerAlias(String aliasId,
SecurityController securityController)
aliasId - to registersecurityController - to register under given alias IdSecurityController getSecurityController(String id)
id - of security controller
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||