|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is basic Consumer Registry Interface. A EbiConsumerRegistry
object is instantiated by the factory and scoped at one per Portal application.
A EbiPortletConsumerRegistry
is responsible of providing methods to
perform portlet registrations for any portlets that are available from registered
portlet producers and wsrp producers; and assign portlet instances.
Method Summary | |
void |
addPortletRegistrationToCategory(EbiContext context,
String portletID,
String categoryID)
Adds a portlet registration to a portlet category. |
void |
cleanOrphanPortletRegistration(EbiContext context,
String portletID)
Cleans an orphan portlet registration and all related data from persistent store. |
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)
Creates a new portlet instance prepresented by EbiPortletEntity
object. |
EbiPortletEntity |
createPortletEntity(EbiContext context,
EbiPortletRegistration portletReg,
boolean clone)
Creates a new portlet instance prepresented by EbiPortletEntity
object. |
EbiPortletEntity |
createPortletEntity(EbiContext context,
EbiPortletRegistration portletReg,
String instanceID)
Creates a new portlet instance prepresented by EbiPortletEntity
object with pre-assigned portlet instance ID. |
EbiPortletEntity |
createPortletEntity(EbiContext context,
String portletID)
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) with pre-assigned portlet instance ID. |
void |
deregisterPortlet(EbiContext context,
String portletID)
De-registers a portlet from a valid portlet producer. |
void |
flushPortletRegistrationSessionCache()
Flushes session caches for the restricted portlet registration list. |
String[] |
getCategoriesByPortletRegistration(EbiContext context,
String portletID)
Gets a list of portlet categories by a portlet registration. |
Collection |
getOrphanPortletRegistrationList(EbiContext context,
String producerID)
Gets a list of orphan portlet registrations that belong to a portlet application that is no longer available from the app/web server. |
EbiPortletEntity |
getPortletEntity(EbiContext context,
String instanceID)
Gets an existing EbiPortletEntity object from the consumer
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 a EbiPortletModel object specified by ProducerID and
PortletName. |
Collection |
getPortletModelList(EbiContext context)
Gets a collection of available portlets for consumer registries: portlet consumer registry, component registry, and WSRP consumer registry (optional). |
Collection |
getPortletModelList(EbiContext context,
String producerID)
Gets a collection 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 EbiPortletRegistration objects for all
registered portlets. |
Collection |
getPortletRegistrationList(EbiContext context,
String producerID)
Gets a list of EbiPortletRegistration objects for all
registered portlets. |
Collection |
getPortletRegistrationList(EbiContext context,
String producerID,
String portletName)
Gets a list of EbiPortletRegistration objects for all
registered portlets that are associated with a specified portlet definition. |
EbiPortletSettings |
getPortletRegistrationSettings(EbiContext context,
EbiPortletRegistration pr)
Gets the portlet settings for an existing portlet registration in persistence storage. |
Collection |
getRestrictedPortletRegistrationList(EbiContext context)
Gets a filtered list of EbiPortletRegistration objects for
registered portlets that the authenticated user from EbiContext is allowed
to access with LIST permission. |
Collection |
getRestrictedPortletRegistrationList(EbiContext context,
String producerID)
Gets a filtered list of EbiPortletRegistration objects for
registered portlets that the authenticated user from EbiContext is allowed
to access with the LIST permission. |
Collection |
getRestrictedPortletRegistrationListByCategory(EbiContext context,
String categoryID)
Gets a filtered list of EbiPortletRegistration objects for
registered portlets by category ID that the authenticated user from
EbiContext is allowed to access with the LIST permission. |
Collection |
getRestrictedPortletRegistrationListByCategory(EbiContext context,
String producerID,
String categoryID)
Gets a filtered list of EbiPortletRegistration objects for
registered portlets by category ID and producerID that the authenticated user from
EbiContext is allowed to access with the LIST permission. |
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 in persistence storage. |
void |
init(ServletContext context)
Initializes the WSRP Consumer registry. |
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 |
removePortletRegistrationFromCategories(EbiContext context,
String portletID)
Removes a portlet registration from all portlet categories. |
void |
removePortletRegistrationFromCategory(EbiContext context,
String portletID,
String categoryID)
Removes a portlet registration from a portlet category. |
void |
storePortletEntitySettings(EbiContext context,
EbiPortletEntity entity,
EbiPortletSettings settings)
Sets the portlet settings for an existing portlet instance in persistence storage. |
void |
storePortletRegistrationSettings(EbiContext context,
EbiPortletRegistration portletReg,
EbiPortletSettings settings)
Sets the portlet settings for an existing portlet registration in persistence storage. |
Method Detail |
public void init(ServletContext context) throws EboUnrecoverableSystemException
public Collection getPortletModelList(EbiContext context, String producerID) throws EboUnrecoverableSystemException, EboSecurityException
context
- an EbiContext
object.producerID
- a producer ID.Collection
of EbiPortletModel
objects.EbiPortletModel
public Collection getPortletModelList(EbiContext context) throws EboUnrecoverableSystemException, EboSecurityException
context
- an EbiContext
object.Collection
of EbiPortletModel
objects.EbiPortletModel
public EbiPortletModel getPortletModel(EbiContext context, String producerID, String portletName) throws EboUnrecoverableSystemException, EboSecurityException, com.novell.afw.portlet.exception.EboPortletDefinitionException
EbiPortletModel
object specified by ProducerID and
PortletName. 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.EbiPortletModel
object.EbiPortletModel
public EbiPortletRegistration registerPortlet(EbiContext context, EbiPortletModel pm) throws EboUnrecoverableSystemException, EboSecurityException, com.novell.afw.portlet.api.EboPortletRegistrationDuplicateException, com.novell.afw.portlet.exception.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
objectEbiPortletRegistration
object that contains
the assigned portletID.EbiPortletRegistration
,
EbiPortletModel
public EbiPortletRegistration registerPortlet(EbiContext context, EbiPortletModel portletModel, String portletID) throws EboUnrecoverableSystemException, EboSecurityException, com.novell.afw.portlet.api.EboPortletRegistrationDuplicateException, com.novell.afw.portlet.exception.EboPortletDefinitionException
context
- an EbiContext
object.portletModel
- an EbiPortletModel
object.portletID
- a portlet identifier that is pre-assigned
by the caller.EbiPortletRegistration
object that contains
the assigned portletID.public EbiPortletSettings getPortletRegistrationSettings(EbiContext context, EbiPortletRegistration pr) throws EboUnrecoverableSystemException, EboSecurityException
context
- an EbiContext
object.portletReg
- an EbiPortletRegistration
object.EbiPortletSettings
object.EbiPortletRegistration
,
EbiPortletSettings
public EbiPortletSettings getUpdateablePortletRegistrationSettings(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 portletReg, EbiPortletSettings settings) throws EboUnrecoverableSystemException, EboSecurityException
EbiPortletRegistration
object always associated
with an EbiPortletSettings
objectcontext
- an EbiContext
object.portletReg
- an EbiPortletRegistration
object to be
updated.settings
- a cloned copy of EbiPortletSettings
object
with some modified settings.EbiPortletRegistration
,
EbiPortletSettings
public void deregisterPortlet(EbiContext context, String portletID) throws EboUnrecoverableSystemException, EboSecurityException
context
- an EbiContext
object.portletID
- a portlet identifier for the portlet to be deregistered.public EbiPortletRegistration getPortletRegistration(EbiContext context, String portletID) throws EboUnrecoverableSystemException, EboSecurityException, com.novell.afw.portlet.api.EboPortletRegistrationException, com.novell.afw.portlet.exception.EboPortletDefinitionException
context
- an EbiContext
object.portletID
- a portlet identifier.EbiPortletRegistration
object.EbiPortletRegistration
public Collection getPortletRegistrationList(EbiContext context) throws EboUnrecoverableSystemException, EboSecurityException
EbiPortletRegistration
objects for all
registered portlets. Only Portal Administrator allows to access
this list.context
- an EbiContext
object.Collection
of EbiPortletRegistration
objects.EbiPortletRegistration
public Collection getPortletRegistrationList(EbiContext context, String producerID) throws EboUnrecoverableSystemException, EboSecurityException
EbiPortletRegistration
objects for all
registered portlets.context
- an EbiContext
object.producerID
- a producer identifierCollection
of EbiPortletRegistration
objects.EbiPortletRegistration
public Collection getPortletRegistrationList(EbiContext context, String producerID, String portletName) throws EboUnrecoverableSystemException, EboSecurityException
EbiPortletRegistration
objects for all
registered portlets that are associated with a specified portlet definition.context
- an EbiContext
object.producerID
- a producer identifierportletName
- a portlet name that specifies a particular portlet definition.Collection
of EbiPortletRegistration
objects.EbiPortletRegistration
public Collection getRestrictedPortletRegistrationList(EbiContext context) throws EboUnrecoverableSystemException, EboSecurityException
EbiPortletRegistration
objects for
registered portlets that the authenticated user from EbiContext is allowed
to access with LIST permission.context
- an EbiContext
object.Collection
of EbiPortletRegistration
objects.EbiPortletRegistration
public Collection getRestrictedPortletRegistrationList(EbiContext context, String producerID) throws EboUnrecoverableSystemException, EboSecurityException
EbiPortletRegistration
objects for
registered portlets that the authenticated user from EbiContext is allowed
to access with the LIST permission.context
- an EbiContext
object.producerID
- a producer identifierCollection
of EbiPortletRegistration
objects.EbiPortletRegistration
public Collection getRestrictedPortletRegistrationListByCategory(EbiContext context, String categoryID) throws EboUnrecoverableSystemException, EboSecurityException
EbiPortletRegistration
objects for
registered portlets by category ID that the authenticated user from
EbiContext is allowed to access with the LIST permission.context
- an EbiContext
object.categoryID
- a portlet category identifierCollection
of EbiPortletRegistration
objects.EbiPortletRegistration
public Collection getRestrictedPortletRegistrationListByCategory(EbiContext context, String producerID, String categoryID) throws EboUnrecoverableSystemException, EboSecurityException
EbiPortletRegistration
objects for
registered portlets by category ID and producerID that the authenticated user from
EbiContext is allowed to access with the LIST permission.context
- an EbiContext
objectproducerID
- a producer identifiercategoryID
- a portlet category identifierCollection
of EbiPortletRegistration
objects.EbiPortletRegistration
public void flushPortletRegistrationSessionCache() throws EboUnrecoverableSystemException
public void addPortletRegistrationToCategory(EbiContext context, String portletID, String categoryID) throws EboUnrecoverableSystemException, EboSecurityException, EboItemExistenceException, com.novell.afw.portlet.api.EboPortletRegistrationException, com.novell.afw.portlet.exception.EboPortletDefinitionException
context
- an EbiContext
object.portletID
- a portlet ID for a portlet registration.categoryID
- a category indentifier.public void removePortletRegistrationFromCategory(EbiContext context, String portletID, String categoryID) throws EboUnrecoverableSystemException, EboSecurityException, EboItemExistenceException
context
- an EbiContext
object.portletID
- a portlet ID for a portlet registration.categoryID
- a category indentifier.EbiPortletRegistration
public void removePortletRegistrationFromCategories(EbiContext context, String portletID) throws EboUnrecoverableSystemException, EboSecurityException
context
- an EbiContext
object.portletID
- a portlet ID for a portlet registration.EbiPortletRegistration
public String[] getCategoriesByPortletRegistration(EbiContext context, String portletID) throws EboUnrecoverableSystemException, EboSecurityException
context
- an EbiContext
object.portletID
- a portlet identifier.public Collection getOrphanPortletRegistrationList(EbiContext context, String producerID) throws EboUnrecoverableSystemException, EboSecurityException
context
- an EbiContext
object.producerID
- a producerID for a portlet application.Collection
of EbiPortletRegistrationInfo
objects.public void cleanOrphanPortletRegistration(EbiContext context, String portletID) throws EboUnrecoverableSystemException, EboSecurityException
context
- an EbiContext
object.portletID
- a portlet identifier for a portlet registration.public EbiPortletEntity createPortletEntity(EbiContext context, EbiPortletRegistration portletReg, boolean clone) throws EboUnrecoverableSystemException, EboSecurityException, com.novell.afw.portlet.api.EboPortletRegistrationException, com.novell.afw.portlet.exception.EboPortletDefinitionException
EbiPortletEntity
object.context
- an EbiContext
object.portletReg
- an EbiPortletRegistration
object that represents
a portlet registration.clone
- a boolean flag to tell whether to clone a new
portlet instance and assign a portlet handle or to use the original
portlet handle.EbiPortletEntity
object for a newly assigned portlet instance.EbiPortletRegistration
,
EbiPortletEntity
,
EbiPortletSettings
public EbiPortletEntity createPortletEntity(EbiContext context, EbiPortletRegistration portletReg) throws EboUnrecoverableSystemException, EboSecurityException, com.novell.afw.portlet.api.EboPortletRegistrationException, com.novell.afw.portlet.exception.EboPortletDefinitionException
EbiPortletEntity
object.context
- an EbiContext
object.portletReg
- an EbiPortletRegistration
object that represents
a portlet registration.EbiPortletEntity
object for a newly assigned portlet instance.EbiPortletRegistration
,
EbiPortletEntity
,
EbiPortletSettings
public EbiPortletEntity createPortletEntity(EbiContext context, EbiPortletRegistration portletReg, String instanceID) throws EboUnrecoverableSystemException, EboSecurityException, com.novell.afw.portlet.api.EboPortletRegistrationException, com.novell.afw.portlet.exception.EboPortletDefinitionException
EbiPortletEntity
object with pre-assigned portlet instance ID.context
- an EbiContext
object.portletReg
- an EbiPortletRegistration
object that represents
a portlet registration.instanceID
- a pre-defined instanceID.EbiPortletEntity
object for a newly assigned portlet instance.EbiPortletRegistration
,
EbiPortletEntity
,
EbiPortletSettings
public EbiPortletEntity createPortletEntity(EbiContext context, String portletID) throws EboUnrecoverableSystemException, EboSecurityException, com.novell.afw.portlet.api.EboPortletRegistrationException, com.novell.afw.portlet.exception.EboPortletDefinitionException
EbiPortletEntity
object.context
- an EbiContext
object.portletID
- a Portlet identifier.settings
- an EbiPortletSettings
object for this portlet instance.EbiPortletEntity
object specified by a portlet ID.EbiPortletEntity
,
EbiPortletSettings
public EbiPortletEntity createPortletEntity(EbiContext context, String portletID, boolean clone) throws EboUnrecoverableSystemException, EboSecurityException, com.novell.afw.portlet.api.EboPortletRegistrationException, com.novell.afw.portlet.exception.EboPortletDefinitionException
EbiPortletEntity
object.context
- an EbiContext
object.portletID
- a Portlet identifier.clone
- a boolean flag to tell whether to clone a new portlet
instance and assign a portlet handle, or to use the original portlet handle.EbiPortletEntity
object specified by a portlet ID.EbiPortletEntity
,
EbiPortletSettings
public EbiPortletEntity createPortletEntity(EbiContext context, String portletID, String instanceID) throws EboUnrecoverableSystemException, EboSecurityException, com.novell.afw.portlet.api.EboPortletRegistrationException, com.novell.afw.portlet.exception.EboPortletDefinitionException
context
- an EbiContext
object.portletID
- a Portlet identifier.instanceID
- a predefined portlet instance identifier.EbiPortletEntity
,
EbiPortletSettings
public EbiPortletEntity clonePortletEntity(EbiContext context, EbiPortletEntity entity) throws EboUnrecoverableSystemException, EboSecurityException, com.novell.afw.portlet.api.EboPortletRegistrationException, com.novell.afw.portlet.exception.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
,
EbiPortletSettings
public EbiPortletSettings getPortletEntitySettings(EbiContext context, EbiPortletEntity entity) throws EboUnrecoverableSystemException, EboSecurityException, com.novell.afw.portlet.exception.EboPortletDefinitionException
context
- an EbiContext
object.entity
- an existing EbiPortletEntity
object.EbiPortletSettings
object.EbiPortletEntity
,
EbiPortletSettings
public EbiPortletSettings getUpdateablePortletEntitySettings(EbiContext context, EbiPortletEntity entity) throws EboUnrecoverableSystemException, EboSecurityException, com.novell.afw.portlet.exception.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.portlet.exception.EboPortletDefinitionException
context
- an EbiContext
object.entity
- an existing EbiPortletEntity
object.settings
- a cloned copy of EbiPortletSettings
object
with some modified settings.EbiPortletEntity
,
EbiPortletSettings
public EbiPortletEntity getPortletEntity(EbiContext context, String instanceID) throws EboUnrecoverableSystemException, EboSecurityException, com.novell.afw.portlet.api.EboPortletEntityException, com.novell.afw.portlet.api.EboPortletRegistrationException, com.novell.afw.portlet.exception.EboPortletDefinitionException
EbiPortletEntity
object from the consumer
registry.context
- an EbiContext
object.instanceID
- a portlet instance identifier.EbiPortletEntity
object specified by the portlet instance identifier.EbiPortletEntity
|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |