|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IPortletDefinitionRegistry
Provides methods for creating and accessing IPortletDefinition and related objects.
| Method Summary | |
|---|---|
IPortletDefinition |
createPortletDefinition(int channelPublishId)
Creates a new, persisted, portlet definition for the published channel. |
IPortletDefinition |
getOrCreatePortletDefinition(int channelPublishId)
Convience for getPortletDefinition(int) and createPortletDefinition(int). |
org.apache.pluto.descriptors.portlet.PortletAppDD |
getParentPortletApplicationDescriptor(IPortletDefinitionId portletDefinitionId)
Gets the parent portlet application descriptor for the entity specified by the definition id. |
org.apache.pluto.descriptors.portlet.PortletDD |
getParentPortletDescriptor(IPortletDefinitionId portletDefinitionId)
Gets the parent portlet descriptor for the entity specified by the definition id. |
IPortletDefinition |
getPortletDefinition(int channelPublishId)
Get an existing portlet definition for the channel publish id. |
IPortletDefinition |
getPortletDefinition(IPortletDefinitionId portletDefinitionId)
Get an existing portlet definition for the definition id. |
Tuple<String,String> |
getPortletDescriptorKeys(IPortletDefinition portletDefinition)
Get the portletApplicationId and portletName for the specified portlet definition. |
void |
updatePortletDefinition(IPortletDefinition portletDefinition)
Persists changes to a IPortletDefinition. |
| Method Detail |
|---|
IPortletDefinition getPortletDefinition(IPortletDefinitionId portletDefinitionId)
portletDefinitionId - The id of the definition to retrieve
IllegalArgumentException - If portletDefinitionId is null.IPortletDefinition getPortletDefinition(int channelPublishId)
channelPublishId - The id of the org.jasig.portal.ChannelDefinition this portlet definition represents.
IllegalArgumentException - If channelPublishId is null.IPortletDefinition createPortletDefinition(int channelPublishId)
org.jasig.portal.ChannelDefinition for the channelPublishId can't be found or an definition already
exists for the channel definition id an exception will be thrown.
channelPublishId - The id of the org.jasig.portal.ChannelDefinition this portlet definition represents.
DataIntegrityViolationException - If a definition already exists for the specified
channelPublishId
DataRetrievalFailureException - If no org.jasig.portal.ChannelDefinition can
be found for the publish ID or the channel definition does not have the required channel parameters
IPortletAdaptor.CHANNEL_PARAM__PORTLET_APPLICATION_ID and
IPortletAdaptor.CHANNEL_PARAM__PORTLET_NAME.IPortletDefinition getOrCreatePortletDefinition(int channelPublishId)
getPortletDefinition(int) and createPortletDefinition(int). If
the get returns null the definition will be created and returned.
getPortletDefinition(int),
createPortletDefinition(int)void updatePortletDefinition(IPortletDefinition portletDefinition)
portletDefinition - The IPortletDefinition to store changes to.
IllegalArgumentException - If portletDefinition is null
org.apache.pluto.descriptors.portlet.PortletDD getParentPortletDescriptor(IPortletDefinitionId portletDefinitionId)
throws org.apache.pluto.PortletContainerException
portletDefinitionId - The definition ID to get the parent descriptor for.
IllegalArgumentException - if portletDefinitionId is null
org.apache.pluto.PortletContainerException
org.apache.pluto.descriptors.portlet.PortletAppDD getParentPortletApplicationDescriptor(IPortletDefinitionId portletDefinitionId)
throws org.apache.pluto.PortletContainerException
portletDefinitionId - The definition ID to get the parent application descriptor for.
IllegalArgumentException - if portletDefinitionId is null
org.apache.pluto.PortletContainerExceptionTuple<String,String> getPortletDescriptorKeys(IPortletDefinition portletDefinition)
Tuple.first and the portletName will be Tuple.second
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||