org.springframework.richclient.security
Interface SecurityControllerManager

Show UML class diagram
All Known Implementing Classes:
DefaultSecurityControllerManager

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.

Author:
Larry Streepy
See Also:
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

setSecurityControllerMap

void setSecurityControllerMap(Map map)
Set the map of controller Ids to controller instances.

Parameters:
map - keyed by controller Id, value is SecurityController instance

registerSecurityControllerAlias

void registerSecurityControllerAlias(String aliasId,
                                     SecurityController securityController)
Register an alias for a SecurityController.

Parameters:
aliasId - to register
securityController - to register under given alias Id

getSecurityController

SecurityController getSecurityController(String id)
Get the security controller for a given Id.

Parameters:
id - of security controller
Returns:
controller instance, or null if nothing is registered for the id


Copyright © 2004-2009 The Spring Framework. All Rights Reserved.