| java.lang.Object org.jaffa.presentation.portlet.component.ComponentManager
ComponentManager | public class ComponentManager (Code) | | This is a Factory for creating Component instances
|
find | public static ComponentDefinition find(String comp)(Code) | | Locate the named component. This routine uses a cache of ComponentDefinitions.
If the cache has not been initialized, this will initialize it by reading in
and XML file into the component domain objects (via JAXB), and then create a
pool of component definition objects.
If the specified component id not found this throws a ComponentCreationRuntimeException
|
getComponentRequirements | public static Map getComponentRequirements()(Code) | | Get the component requirements, this is Map of mandatory business functions
that a user must have access to, to run this component. Each entry in the map is a
component and its 'required' functions is stored as the 'value'. The 'value' is stored
as and Array([]) of Strings .
If there is no entry in the map for a given a component, it has no required business functions
and is there for not constrained by the security system.
a Map containing component requirements. |
run | public static Component run(String comp, UserSession us)(Code) | | Creates an instance of the named component. This component is then added to the UserSession. This may throw the runtime ComponentCreationRuntimeException
Parameters: comp - The name of the component to create. There should be a valid definition for this name in the 'components.xml' file Parameters: us - The UserSession to which this component will be added An instance of the Component |
|
|