Novell exteNd
Director 5.2 API

com.sssw.portal.api
Interface EbiComponentManager


Deprecated. AS of v5.2, components have been replaced by Java Portlets, see EbiPortletInfoManager

public interface EbiComponentManager

This provides an interface for the component manager.


Method Summary
 EbiPortalComponent getComponent(EbiPortalContext context, String componentID, Map params)
          Deprecated. Gets a component by specified component alias or classname.
 EbiCategoryInfo getComponentCategoryInfo(EbiPortalContext context, String category)
          Deprecated. Gets a component category information object.
 EbiCategoryInfo getComponentCategoryInfo(EbiPortalContext context, String categoryName, boolean flush)
          Deprecated. Gets a component category information object.
 EbiCategoryInfo[] getComponentCategoryInfoList(EbiPortalContext context)
          Deprecated. Gets a list of component category information objects.
 String getComponentDataDefinitionID(EbiPortalContext context, String componentID)
          Deprecated. Gets a compnent's data definition ID (for Device Profiling).
 String getComponentDefaultStyleID(EbiPortalContext context, String componentID)
          Deprecated. Gets a component default style ID.
 EbiPortalComponentInfo getComponentInfo(EbiPortalContext context, String componentID, boolean flush)
          Deprecated. Gets a component info object that provides persistent component information.
 EbiPortalComponentInfo[] getComponentInfoList(EbiPortalContext context)
          Deprecated. Gets the entire list of component information objects.
 EbiPortalComponentInfo[] getComponentInfoList(EbiPortalContext context, String category)
          Deprecated. To get the entire list of options use EbiComponentManager.getComponentInfoList(EbiPortalContext context). To get a list of components by category use EbiComponentManager.getComponentInfoListByCategory(EbiPortalContext context, String category)
 EbiPortalComponentInfo[] getComponentInfoListByCategory(EbiPortalContext context, String category)
          Deprecated. Gets a list of component information objects by category.
 EbiPortalComponentInfo[] getComponentListByMediaType(EbiPortalContext context, String mediaType)
          Deprecated. Gets a list of component info objects for a specified media type.
 String getComponentParameter(EbiPortalContext context, String name, String paramKey, Map params)
          Deprecated. Gets a component parameter, either from the instance parameters or from the component's default definition.
 EbiPortalComponentInfo[] getRestrictedComponentInfoList(EbiPortalContext context)
          Deprecated. Gets a list of all components for the Principal specified from the context.
 EbiPortalComponentInfo[] getRestrictedComponentInfoList(EbiPortalContext context, String category)
          Deprecated. Gets a list of components for the Principal specified from the context.
 EbiComponentOptionInfo[] getRestrictedOptionInfoList(EbiPortalContext context, String componentID)
          Deprecated. Gets the list of options for a component that the current user has access to.
 

Method Detail

getComponentInfo

public EbiPortalComponentInfo getComponentInfo(EbiPortalContext context,
                                               String componentID,
                                               boolean flush)
                                        throws EboUnrecoverableSystemException
Deprecated. 
Gets a component info object that provides persistent component information. Component information is retrieved from component deployment descriptor.
Parameters:
context - A context object that contains session/user information.
componentID - The name of the specified component.
flush - If set to true, always re-retrieves persistent data.
Returns:
An EbiComponentInfo object.

getComponent

public EbiPortalComponent getComponent(EbiPortalContext context,
                                       String componentID,
                                       Map params)
                                throws EboUnrecoverableSystemException,
                                       EboSecurityException
Deprecated. 
Gets a component by specified component alias or classname. If the component instance does not already exist, it instantiates one.
Parameters:
context - A portal context object that contains session/user information.
componentID - A component ID.
params - A set of parameters for initializing the component.
Returns:
An EbiComponent object.

getComponentInfoList

public EbiPortalComponentInfo[] getComponentInfoList(EbiPortalContext context,
                                                     String category)
                                              throws EboUnrecoverableSystemException
Deprecated. To get the entire list of options use EbiComponentManager.getComponentInfoList(EbiPortalContext context). To get a list of components by category use EbiComponentManager.getComponentInfoListByCategory(EbiPortalContext context, String category)

Gets a list of Component information objects for a category.
Parameters:
context - A context object that contains session/user information.
category - A category. If this parameter is null, all components are retrieved.
Returns:
An array of EbiPortalComponentInfo objects.

getComponentInfoList

public EbiPortalComponentInfo[] getComponentInfoList(EbiPortalContext context)
                                              throws EboUnrecoverableSystemException
Deprecated. 
Gets the entire list of component information objects.
Parameters:
context - A context object.
Returns:
an array of EbiPortalComponentInfo objects.
Throws:
EboUnrecoverableSystemException -  

getComponentInfoListByCategory

public EbiPortalComponentInfo[] getComponentInfoListByCategory(EbiPortalContext context,
                                                               String category)
                                                        throws EboUnrecoverableSystemException
Deprecated. 
Gets a list of component information objects by category.

If category is null, all components without any category assigned will be returned.

Parameters:
context - A context object.
category - A category ID.
Returns:
an array of EbiPortalComponentInfo objects.
Throws:
EboUnrecoverableSystemException -  

getComponentListByMediaType

public EbiPortalComponentInfo[] getComponentListByMediaType(EbiPortalContext context,
                                                            String mediaType)
                                                     throws EboUnrecoverableSystemException
Deprecated. 
Gets a list of component info objects for a specified media type.
Parameters:
context - A context object that contains session/user information.
mediaType - A specified media type.

media type is equivalent to user agent in this context A style may have the following descriptor:


   PhoneListStyle
   Phone List Style
   
	    
		    Generic_HTML
			PhoneList_HTML.xsl
	    
	    
		    Generic_WML
		    PhoneList_WML.xsl
		    PhoneList_WML.xsl
	    
  

This style is represented by two media types Generic_HTML and Generic_WML A component that references this style uses both of these media types.

Returns:
An array of EbiPortalComponentInfo objects.

getRestrictedComponentInfoList

public EbiPortalComponentInfo[] getRestrictedComponentInfoList(EbiPortalContext context,
                                                               String category)
                                                        throws EboUnrecoverableSystemException
Deprecated. 
Gets a list of components for the Principal specified from the context.
Parameters:
context - A portal context.
category - The name of a category. If this parameter is null, return all components that are uncategorized.

getRestrictedComponentInfoList

public EbiPortalComponentInfo[] getRestrictedComponentInfoList(EbiPortalContext context)
                                                        throws EboUnrecoverableSystemException
Deprecated. 
Gets a list of all components for the Principal specified from the context.
Parameters:
context - a portal context.
Returns:
list of components that the current user can see in a select list
Throws:
EboUnrecoverableSystemException -  
See Also:
EbiComponentManager.getRestrictedComponentInfoList(EbiPortalContext)

getComponentParameter

public String getComponentParameter(EbiPortalContext context,
                                    String name,
                                    String paramKey,
                                    Map params)
                             throws EboUnrecoverableSystemException
Deprecated. 
Gets a component parameter, either from the instance parameters or from the component's default definition.
Parameters:
context - A context object that contains session/user information.
componentID - A component ID.
paramKey -  
params - A Map of the passed in component parameters.

getComponentDefaultStyleID

public String getComponentDefaultStyleID(EbiPortalContext context,
                                         String componentID)
                                  throws EboUnrecoverableSystemException
Deprecated. 
Gets a component default style ID.
Parameters:
context - A context object that contains session/user information.
componentID - A component ID.
Returns:
The component's default style ID.

getComponentDataDefinitionID

public String getComponentDataDefinitionID(EbiPortalContext context,
                                           String componentID)
                                    throws EboUnrecoverableSystemException
Deprecated. 
Gets a compnent's data definition ID (for Device Profiling).
Parameters:
context - A context object that contains session/user information.
name - A component ID.
Returns:
The component's data definition ID.

getComponentCategoryInfo

public EbiCategoryInfo getComponentCategoryInfo(EbiPortalContext context,
                                                String categoryName,
                                                boolean flush)
                                         throws EboUnrecoverableSystemException
Deprecated. 
Gets a component category information object.
Parameters:
context - A context object that contains session/user information.
categoryName - The name of a category.
flush - True if it should re-retrieve component category info from database.
Returns:
An EbiCategoryInfo object.

getComponentCategoryInfo

public EbiCategoryInfo getComponentCategoryInfo(EbiPortalContext context,
                                                String category)
                                         throws EboUnrecoverableSystemException
Deprecated. 
Gets a component category information object. If the object is available in the cache, this object is returned.
Parameters:
context - A context object that contains session/user information.
category - The name of a category.
Returns:
An EbiCategoryInfo object.

getComponentCategoryInfoList

public EbiCategoryInfo[] getComponentCategoryInfoList(EbiPortalContext context)
                                               throws EboUnrecoverableSystemException
Deprecated. 
Gets a list of component category information objects.
Parameters:
context - A context object that contains session/user information.
Returns:
An array of EbiCategoryInfo objects for component categories.

getRestrictedOptionInfoList

public EbiComponentOptionInfo[] getRestrictedOptionInfoList(EbiPortalContext context,
                                                            String componentID)
                                                     throws EboUnrecoverableSystemException
Deprecated. 
Gets the list of options for a component that the current user has access to.

This list is used by the caller in order to construct the title bar. The list of options includes all options for a particular component that match the following criteria:

Parameters:
context - A portal context.
componentID - A component ID.
Returns:
an array of component option infos
Throws:
EboUnrecoverableSystemException -  

Novell exteNd
Director 5.2 API