|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.novell.afw.portal.proxy.EboPortletRegistryProxy
This is the Portlet Registry proxy class that provides methods to delegate portlet registration operations and portlet assignment operations to managed containers (i.e. the portlet container, the legacy component container, and in the near future, we will also support the WSRP container).
EbiPortletConsumerRegistry
,
EbiComponentRegistry
,
com.novell.afw.wsrp.consumer.api.EbiWSRPConsumerRegistry
Constructor Summary | |
EboPortletRegistryProxy(EbiPortalContext portalContext)
Constructor with EbiPortalContext as an input parameter. |
|
EboPortletRegistryProxy(ServletContext context)
Constructor with ServletContext as an input parameter. |
Method Summary | |
EbiPortletEntity |
clonePortletEntity(EbiContext context,
EbiPortletEntity entity)
Clone a new portlet instance prepresented by EbiPortletEntity
object from an existing portlet instance. |
EbiPortletEntity |
createPortletEntity(EbiContext context,
EbiPortletRegistration portletReg,
boolean clone)
Creates a new portlet instance prepresented by EbiPortletEntity
object. |
EbiPortletEntity |
createPortletEntity(EbiContext context,
String portletID,
boolean clone)
Creates a new portlet instance prepresented by EbiPortletEntity
object. |
EbiPortletEntity |
createPortletEntity(EbiContext context,
String portletID,
String instanceID)
Creates a new portlet instance (a EbiPortletEntity object). |
void |
deregisterPortlet(EbiContext context,
String portletID)
De-registers a portlet from a valid portlet producer. |
Collection |
getPortletCategories(EbiPortalContext context)
Gets a Collection of EbiCategoryInfo objects for
all categories that are defined in the portal war's resourceset. |
Collection |
getPortletCategories(EbiPortalContext context,
String[] categoryIDs)
Gets a Collection of EbiCategoryInfo objects for
the specified category IDs. |
EbiPortletEntity |
getPortletEntity(EbiContext context,
String portletInstanceID)
Gets an existing portlet instance, a EbiPortletEntity object, from
the proxy registry. |
EbiPortletEntity |
getPortletEntity(EbiContext context,
String portletID,
String portletInstanceID)
Gets an existing portlet instance, a EbiPortletEntity object, from
the proxy registry. |
EbiPortletEntity |
getPortletEntity(EbiContext context,
String portletID,
String portletInstanceID,
String containerType)
Gets an existing portlet instance, a EbiPortletEntity object, from
the portlet registry. |
EbiPortletSettings |
getPortletEntitySettings(EbiContext context,
EbiPortletEntity entity)
Gets the portlet settings for an existing portlet instance from persistence storage. |
EbiPortletModel |
getPortletModel(EbiContext context,
String producerID,
String portletName)
Gets an EbiPortletModel object specified by ProducerID and PortletName. |
EbiPortletModel |
getPortletModel(EbiContext context,
String producerID,
String portletName,
String containerType)
Gets an EbiPortletModel object specified by ProducerID and PortletName
and a container type. |
Collection |
getPortletModelList(EbiContext context)
Gets a list of portlet model objects from consumer registries: portlet consumer registry, component registry, and WSRP consumer registry (not supported in v5.0). |
Collection |
getPortletModelList(EbiContext context,
String producerID,
String containerType)
Gets a list of portlet model objects (one per portlet definition specified in portlet.xml) for the specified portlet producer. |
EbiPortletRegistration |
getPortletRegistration(EbiContext context,
String portletID)
Gets a EbiPortletRegistration object specified by a Portlet ID. |
Collection |
getPortletRegistrationList(EbiContext context)
Gets a list of PortletRegistration objects for all
registered portlets. |
Collection |
getPortletRegistrationList(EbiContext context,
String producerID,
String containerType)
Gets a list of EbiPortletRegistration objects for all
registered portlets. |
EbiPortletSettings |
getPortletRegistrationSettings(EbiContext context,
EbiPortletRegistration pr)
Gets the portlet settings for an existing portlet registration in persistence storage. |
Collection |
getRestrictedPortletRegistrationList(EbiContext context)
Gets a restricted collection of portlet registrations/components that user has List access permission. |
Collection |
getRestrictedPortletRegistrationListByCategory(EbiContext context,
String categoryID)
Gets a Collection of EbiPortletRegistration objects for
all portlet registrations by category ID. |
EbiPortletSettings |
getUpdateablePortletEntitySettings(EbiContext context,
EbiPortletEntity entity)
Gets an updateable portlet settings for an existing portlet instance from persistence storage. |
EbiPortletSettings |
getUpdateablePortletRegistrationSettings(EbiContext context,
EbiPortletRegistration pr)
Gets an updateable portlet settings for an existing portlet registration from persistence storage. |
EbiPortletRegistration |
registerPortlet(EbiContext context,
EbiPortletModel pm)
Registers a portlet from a valid portlet producer. |
EbiPortletRegistration |
registerPortlet(EbiContext context,
EbiPortletModel portletModel,
String portletID)
Registers a portlet from a valid portlet producer. |
void |
storePortletEntitySettings(EbiContext context,
EbiPortletEntity entity,
EbiPortletSettings settings)
Modifies the portlet settings of an existing portlet instance in persistence storage. |
void |
storePortletRegistrationSettings(EbiContext context,
EbiPortletRegistration reg,
EbiPortletSettings settings)
Modifies the portlet settings of an existing portlet registration in persistence storage. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public EboPortletRegistryProxy(ServletContext context)
ServletContext
as an input parameter.context
- a ServletContext
object.public EboPortletRegistryProxy(EbiPortalContext portalContext)
EbiPortalContext
as an input parameter.portalContext
- a EbiPortalContext
object.EbiPortalContext
Method Detail |
public Collection getPortletModelList(EbiContext context) throws EboUnrecoverableSystemException, EboSecurityException
context
- an EbiContext
object.Collection
of EbiPortletModel
objects.EbiPortletConsumerRegistry
,
EbiComponentRegistry
,
com.novell.afw.wsrp.consumer.api.EbiWSRPConsumerRegistry
,
EbiPortletModel
public Collection getPortletModelList(EbiContext context, String producerID, String containerType) throws EboUnrecoverableSystemException, EboSecurityException
context
- an EbiContext
object.producerID
- a producer ID.containerType
- a container type.Collection
of EbiPortletModel
objects.EbiPortletConsumerRegistry
,
EbiComponentRegistry
,
com.novell.afw.wsrp.consumer.api.EbiWSRPConsumerRegistry
,
EbiPortletModel
public EbiPortletModel getPortletModel(EbiContext context, String producerID, String portletName) throws EboUnrecoverableSystemException, EboSecurityException, com.novell.afw.portal.proxy.EboPortletDefinitionException
EbiPortletModel
object specified by ProducerID and PortletName.
If the ProducerID is not specified, then it tries to find a portlet located
locally.context
- an EbiContext
object.producerID
- a portlet producer identifier.portletName
- a portlet name.EbiPortletModel
object.EbiPortletModel
public EbiPortletModel getPortletModel(EbiContext context, String producerID, String portletName, String containerType) throws EboUnrecoverableSystemException, EboSecurityException, com.novell.afw.portal.proxy.EboPortletDefinitionException
EbiPortletModel
object specified by ProducerID and PortletName
and a container type. If ProducerID is not specified, then it tries to find a
portlet located locally.context
- an EbiContext
object.producerID
- a portlet producer identifier.portletName
- a portlet name.containerType
- a portlet container type, if set to null, it is assumed
to be the portlet containerEbiPortletModel
object.EbiPortletModel
public EbiPortletRegistration registerPortlet(EbiContext context, EbiPortletModel pm) throws EboUnrecoverableSystemException, EboSecurityException, com.novell.afw.portal.proxy.EboPortletRegistrationDuplicateException, com.novell.afw.portal.proxy.EboPortletDefinitionException
The portlet ID is not passed in by the caller, and will be generated by the consumer registry.
context
- an EbiContext
object.pm
- an EbiPortletModel
object.EbiPortletRegistration
object that contains
the assigned portletID.EbiPortletRegistration
,
EbiPortletModel
public EbiPortletRegistration registerPortlet(EbiContext context, EbiPortletModel portletModel, String portletID) throws EboUnrecoverableSystemException, EboSecurityException, com.novell.afw.portal.proxy.EboPortletRegistrationDuplicateException, com.novell.afw.portal.proxy.EboPortletDefinitionException
context
- an EbiContext
object.portletModel
- an EbiPortletModel
objectportletID
- a portlet identifier that is pre-assigned
by the caller.EbiPortletRegistration
object that contains
the assigned portletID.public void deregisterPortlet(EbiContext context, String portletID) throws EboUnrecoverableSystemException, EboSecurityException, com.novell.afw.portal.proxy.EboPortletRegistrationException, com.novell.afw.portal.proxy.EboPortletDefinitionException
context
- an EbiContext
object.portletID
- a portlet identifier for a registered portlet.public EbiPortletRegistration getPortletRegistration(EbiContext context, String portletID) throws EboUnrecoverableSystemException, EboSecurityException, com.novell.afw.portal.proxy.EboPortletRegistrationException, com.novell.afw.portal.proxy.EboPortletDefinitionException
context
- an EbiContext
object.portletID
- a portlet identifier.EbiPortletRegistration
object.EbiPortletRegistration
public Collection getPortletRegistrationList(EbiContext context) throws EboUnrecoverableSystemException, EboSecurityException
PortletRegistration
objects for all
registered portlets.context
- an EbiContext
object.Collection
of EbiPortletRegistration
objects.EbiPortletRegistration
public Collection getPortletRegistrationList(EbiContext context, String producerID, String containerType) throws EboUnrecoverableSystemException, EboSecurityException
EbiPortletRegistration
objects for all
registered portlets.context
- an EbiContext
object.producerID
- an producer identifier. if this is null, then
the current war's servlet context name is used.containerType
- a portlet container type. if this is null, then
it is assumed to be the portlet container.Collection
of EbiPortletRegistration
objects.EbiPortletRegistration
public Collection getRestrictedPortletRegistrationList(EbiContext context) throws EboUnrecoverableSystemException, EboSecurityException
context
- an EbiContext
object.Collection
of EbiPortletRegistration
objects.public Collection getPortletCategories(EbiPortalContext context) throws EboUnrecoverableSystemException, EboSecurityException
Collection
of EbiCategoryInfo
objects for
all categories that are defined in the portal war's resourceset.context
- an EbiPortalContext
object.Collection of EbiCategoryInfo
objects.- Since:
- v5.0
public Collection getPortletCategories(EbiPortalContext context, String[] categoryIDs) throws EboUnrecoverableSystemException, EboSecurityException
Collection
of EbiCategoryInfo
objects for
the specified category IDs.context
- an EbiPortalContext
object.categoryIDs
- a specified category IDsCollection of EbiCategoryInfo
objects.- Since:
- v5.0
public Collection getRestrictedPortletRegistrationListByCategory(EbiContext context, String categoryID) throws EboUnrecoverableSystemException, EboSecurityException
Collection
of EbiPortletRegistration
objects for
all portlet registrations by category ID. The list is restricted to only the ones
that the user has List access permission.context
- an EbiContext
object.Collection of EbiPortletRegistration
objects.- Since:
- v5.0
public EbiPortletEntity createPortletEntity(EbiContext context, EbiPortletRegistration portletReg, boolean clone) throws EboUnrecoverableSystemException, EboSecurityException, com.novell.afw.portal.proxy.EboPortletRegistrationException, com.novell.afw.portal.proxy.EboPortletDefinitionException
EbiPortletEntity
object.context
- an EbiContext
object.portletReg
- an EbiPortletRegistration
object that represents
a portlet registration.clone
- a boolean flag to tell whether a new portlet handle
is assigned to the new instance or the original portlet handle is used.EbiPortletEntity
object for a newly assigned portlet instance.EbiPortletRegistration
,
EbiPortletEntity
public EbiPortletEntity createPortletEntity(EbiContext context, String portletID, boolean clone) throws EboUnrecoverableSystemException, EboSecurityException, com.novell.afw.portal.proxy.EboPortletRegistrationException, com.novell.afw.portal.proxy.EboPortletDefinitionException
EbiPortletEntity
object.context
- an EbiContext
object.portletID
- a Portlet identifier.clone
- a boolean flag to tell whether a new portlet handle
is assigned to the new instance or the original portlet handle is used.EbiPortletEntity
object specified by a portlet ID.EbiPortletEntity
public EbiPortletEntity createPortletEntity(EbiContext context, String portletID, String instanceID) throws EboUnrecoverableSystemException, EboSecurityException, com.novell.afw.portal.proxy.EboPortletRegistrationException, com.novell.afw.portal.proxy.EboPortletDefinitionException
context
- an EbiContext object.portletID
- a Portlet identifier.instanceID
- a predefined portlet instance identifier.- Returns:
- a
EbiPortletEntity
object specified by the portletModel object. - Since:
- v5.0
public EbiPortletEntity getPortletEntity(EbiContext context, String portletInstanceID) throws EboUnrecoverableSystemException, EboSecurityException, com.novell.afw.portal.proxy.EboPortletEntityException, com.novell.afw.portal.proxy.EboPortletRegistrationException, com.novell.afw.portal.proxy.EboPortletDefinitionException
EbiPortletEntity
object, from
the proxy registry. This method does not apply to the legacy component container.context
- an EbiContext
object.portletInstanceID
- a portlet instance identifier.EbiPortletEntity
object specified by the portlet instance identifier.EbiPortletEntity
public EbiPortletEntity getPortletEntity(EbiContext context, String portletID, String portletInstanceID) throws EboUnrecoverableSystemException, EboSecurityException, com.novell.afw.portal.proxy.EboPortletEntityException, com.novell.afw.portal.proxy.EboPortletRegistrationException, com.novell.afw.portal.proxy.EboPortletDefinitionException
EbiPortletEntity
object, from
the proxy registry.context
- an EbiContext
object.portletID
- a portlet identifier.portletInstanceID
- a portlet instance identifier.EbiPortletEntity
object specified by the portlet instance identifier.EbiPortletEntity
public EbiPortletEntity getPortletEntity(EbiContext context, String portletID, String portletInstanceID, String containerType) throws EboUnrecoverableSystemException, EboSecurityException, com.novell.afw.portal.proxy.EboPortletEntityException, com.novell.afw.portal.proxy.EboPortletRegistrationException, com.novell.afw.portal.proxy.EboPortletDefinitionException
EbiPortletEntity
object, from
the portlet registry.context
- an EbiContext
object.portletID
- a portlet identifier.portletInstanceID
- a portlet instance identifier.containerType
- a container typeEbiPortletEntity
object specified by the portlet instance identifier.public EbiPortletEntity clonePortletEntity(EbiContext context, EbiPortletEntity entity) throws EboUnrecoverableSystemException, EboSecurityException, com.novell.afw.portal.proxy.EboPortletRegistrationException, com.novell.afw.portal.proxy.EboPortletDefinitionException
EbiPortletEntity
object from an existing portlet instance.context
- an EbiContext
object.entity
- an EbiPortletEntity
object.EbiPortletEntity
object with a newly assigned
portlet handle.EbiPortletEntity
public EbiPortletSettings getUpdateablePortletEntitySettings(EbiContext context, EbiPortletEntity entity) throws EboUnrecoverableSystemException, EboSecurityException, com.novell.afw.portal.proxy.EboPortletDefinitionException
context
- an EbiContext
object.entity
- an existing EbiPortletEntity
object.EbiPortletSettings
object.EbiPortletEntity
,
EbiPortletSettings
public EbiPortletSettings getPortletEntitySettings(EbiContext context, EbiPortletEntity entity) throws EboUnrecoverableSystemException, EboSecurityException, com.novell.afw.portal.proxy.EboPortletDefinitionException
context
- an EbiContext
object.entity
- an existing EbiPortletEntity
object.EbiPortletSettings
object.EbiPortletEntity
,
EbiPortletSettings
public void storePortletEntitySettings(EbiContext context, EbiPortletEntity entity, EbiPortletSettings settings) throws EboUnrecoverableSystemException, EboSecurityException, com.novell.afw.portal.proxy.EboPortletDefinitionException
context
- an EbiContext
object.entity
- an existing EbiPortletEntity
object.settings
- an EbiPortletSettings
object that contains
modified settings. To modify the settings in an EbiPortletSettings
object, you must get an EbiPortletSettings
object that is updateable.
You can obtain an updateable object from the EbiPortletEntity
object
by calling getUpdateablePortletSettings() method.EbiPortletEntity
,
EbiPortletSettings
public EbiPortletSettings getUpdateablePortletRegistrationSettings(EbiContext context, EbiPortletRegistration pr) throws EboUnrecoverableSystemException, EboSecurityException
context
- an EbiContext
object.pr
- an existing EbiPortletRegistration
object.EbiPortletSettings
object.EbiPortletRegistration
,
EbiPortletSettings
public EbiPortletSettings getPortletRegistrationSettings(EbiContext context, EbiPortletRegistration pr) throws EboUnrecoverableSystemException, EboSecurityException
context
- an EbiContext
object.portletReg
- an EbiPortletRegistration
object.EbiPortletSettings
object.EbiPortletRegistration
,
EbiPortletSettings
public void storePortletRegistrationSettings(EbiContext context, EbiPortletRegistration reg, EbiPortletSettings settings) throws EboUnrecoverableSystemException, EboSecurityException
context
- an EbiContext
object.reg
- an existing EbiPortletRegistration
object.settings
- an EbiPortletSettings
object that contains
modified settings. To modify the settings in an EbiPortletSettings
object, you must get an EbiPortletSettings
object that is updateable.
You can obtain an updateable object from the EbiPortletRegistration
object
by calling getUpdateablePortletSettings() method.EbiPortletRegistration
,
EbiPortletSettings
|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |