|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the Portlet Information Manager Interface. It provides methods to manage portlet handles and related information. It also provides methods to access/manage preferences at different levels, including registration time preferences, instance preferences, user preferences, and the default preferences defined in the portlet deployment descriptor.
EbiPortletPreferenceInfo
Method Summary | |
EbiPortletPreferencesDefaultType |
getDefaultPortletPreferences(String portletHandleOrName)
Returns the default (read-only) preferences for the portlet definition that the portlet handle is defined by or for the named portlet. |
EbiPortletPreferencesInstanceType |
getInstancePortletPreferences(EbiContext context,
String portletHandle)
Returns the preferences that are set for a particular instance of a portlet. |
EbiPortletAppModel |
getPortletAppModel()
Returns the EbiPortletAppModel, which represents the all the deployment information for the entire portlet application. |
EbiNovellPortletModel |
getPortletModel(String portletHandleOrName)
Gets a EbiNovellPortletModel object by a portlet handle or by name. |
Collection |
getPortletModelList()
Gets a list of EbiPortletModel objects. |
EbiPortletPreferencesUserType |
getUserPortletPreferences(EbiContext context,
String portletHandle)
Returns the preference information for the user logged into the context for the portlet identified by the portlet instance handle. |
boolean |
isValidPortletApp()
Indicates whether all the application that this manager is running within is a valid portlet application. |
ResourceBundle |
loadResourceBundle(Locale locale,
EbiNovellPortletModel portletModel)
Attempts to load the bundle for the specified portlet model and locale. |
void |
storeInstancePortletPreferences(EbiContext context,
String portletHandle,
EbiPortletPreferencesInstanceType preferences)
Persists the preferences for a portlet instance. |
void |
storePortletHandle(EbiContext context,
String portletHandle,
String portletName,
String parentPortletHandle,
String consumerID,
String preferences)
Stores information related to a portlet handle in the producer registry. |
void |
storeUserPortletPreferences(EbiContext context,
String portletHandle,
EbiPortletPreferencesUserType preferences)
Persists the preferences for a portlet instance and the current user. |
EbiPortletEntity |
updatePortletEntity(EbiPortletEntity entity)
Updates PortletEntity object that is passed in from
consumer to fill in portlet name and other related information retrieved
from the producer registry. |
Method Detail |
public EbiPortletEntity updatePortletEntity(EbiPortletEntity entity) throws EboUnrecoverableSystemException
PortletEntity
object that is passed in from
consumer to fill in portlet name and other related information retrieved
from the producer registry. The modified PortletEntity object is
then used by the local portlet container for portlet runtime processing.entity
- a PortletEntity
object.PortletEntity
object.public void storePortletHandle(EbiContext context, String portletHandle, String portletName, String parentPortletHandle, String consumerID, String preferences) throws EboUnrecoverableSystemException
context
- an EbiContext object.portletHandle
- a portlet handle to be stored.portletName
- a portlet name (defined in the portlet deployment
descriptor) that is associated with the portlet handle.parentPortletHandle
- a parent portlet handle that this portlet
handle is inherited from.consumerID
- a consumer ID (or WSRP registration handle)preferences
- an XML String for preferencespublic Collection getPortletModelList() throws EboUnrecoverableSystemException
EbiPortletModel
objects.Collection
of EbiPortletModel
objects.public EbiPortletAppModel getPortletAppModel() throws EboUnrecoverableSystemException
public EbiNovellPortletModel getPortletModel(String portletHandleOrName) throws EboUnrecoverableSystemException
EbiNovellPortletModel
object by a portlet handle or by name.
If a handle is passed in, then it is resolved to the portlet name first, then
the model is returned. In the event that the handle/name are invalid null is returned.portletHandleOrName
- a portlet handle or name.EbiNovellPortletModel
object, or null if no valid handle or name specified.public EbiPortletPreferencesDefaultType getDefaultPortletPreferences(String portletHandleOrName) throws EboUnrecoverableSystemException
portletHandleOrName
- The handle to a portlet instance, or the name of a portlet. If the
handle is passed in, then it will be resolved to the portlet name first.public EbiPortletPreferencesInstanceType getInstancePortletPreferences(EbiContext context, String portletHandle) throws EboSecurityException, EboUnrecoverableSystemException
CAUTIONThis method uses a recursive algorithm to generate composite preferences. If the a portlet instance creates a circular reference with it's parent instance, this method could cause a stack overflow or low memory condition.
context
- EbiContext object with user logged into it.portletHandle
- The handle to the instance of a portlet.public void storeInstancePortletPreferences(EbiContext context, String portletHandle, EbiPortletPreferencesInstanceType preferences) throws com.novell.afw.portlet.exception.EboPortletPreferenceValidationException, EboSecurityException, EboUnrecoverableSystemException, EboItemExistenceException
context
- EbiContext object with user logged into it.portletHandle
- The handle to the instance of a portlet.preferences
- EbiPortletPreferencesInstanceType populated with the instance level preferences.public EbiPortletPreferencesUserType getUserPortletPreferences(EbiContext context, String portletHandle) throws EboUnrecoverableSystemException, EboSecurityException, EboItemExistenceException
context
- EbiContext with a user logged in.portletHandle
- The handle to a portlet instance.public void storeUserPortletPreferences(EbiContext context, String portletHandle, EbiPortletPreferencesUserType preferences) throws com.novell.afw.portlet.exception.EboPortletPreferenceValidationException, EboUnrecoverableSystemException, EboSecurityException
context
- EbiContext object with user logged into it.portletHandle
- The handle to the instance of a portlet.preferences
- EbiPortletPreferencesUserType populated with the user level preferences.public boolean isValidPortletApp()
public ResourceBundle loadResourceBundle(Locale locale, EbiNovellPortletModel portletModel)
locale
- The locale for which the bundle should be returnedportletModel
- the portlet for which to load the bundle.
|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |