|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.portlet.registry.PortletDefinitionRegistryImpl
public class PortletDefinitionRegistryImpl
Implementation of the definition registry, pulls together the related parts of the framework for creation and access
of IPortletDefinitions.
TODO this needs to listen for channel deletion events and remove the corresponding portlet definition, this would likley need a hook in ChannelRegistryManager.removeChannel
| Field Summary | |
|---|---|
protected org.apache.commons.logging.Log |
logger
|
| Constructor Summary | |
|---|---|
PortletDefinitionRegistryImpl()
|
|
| Method Summary | |
|---|---|
IPortletDefinition |
createPortletDefinition(int channelPublishId)
Creates a new, persisted, portlet definition for the published channel. |
IChannelRegistryStore |
getChannelRegistryStore()
|
org.apache.pluto.OptionalContainerServices |
getOptionalContainerServices()
|
IPortletDefinition |
getOrCreatePortletDefinition(int channelPublishId)
Convience for IPortletDefinitionRegistry.getPortletDefinition(int) and IPortletDefinitionRegistry.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. |
IPortletDefinitionDao |
getPortletDefinitionDao()
|
Tuple<String,String> |
getPortletDescriptorKeys(IPortletDefinition portletDefinition)
Get the portletApplicationId and portletName for the specified channel definition id. |
void |
setChannelRegistryStore(IChannelRegistryStore channelRegistryStore)
|
void |
setOptionalContainerServices(org.apache.pluto.OptionalContainerServices optionalContainerServices)
|
void |
setPortletDefinitionDao(IPortletDefinitionDao portletDefinitionDao)
|
void |
setServletContext(ServletContext servletContext)
|
void |
updatePortletDefinition(IPortletDefinition portletDefinition)
Persists changes to a IPortletDefinition. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.apache.commons.logging.Log logger
| Constructor Detail |
|---|
public PortletDefinitionRegistryImpl()
| Method Detail |
|---|
public IPortletDefinitionDao getPortletDefinitionDao()
public void setPortletDefinitionDao(IPortletDefinitionDao portletDefinitionDao)
portletDefinitionDao - the portletDefinitionDao to setpublic org.apache.pluto.OptionalContainerServices getOptionalContainerServices()
public void setOptionalContainerServices(org.apache.pluto.OptionalContainerServices optionalContainerServices)
optionalContainerServices - the optionalContainerServices to setpublic IChannelRegistryStore getChannelRegistryStore()
public void setChannelRegistryStore(IChannelRegistryStore channelRegistryStore)
channelRegistryStore - the channelRegistryStore to setpublic void setServletContext(ServletContext servletContext)
setServletContext in interface ServletContextAwarepublic IPortletDefinition createPortletDefinition(int channelPublishId)
IPortletDefinitionRegistryorg.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.
createPortletDefinition in interface IPortletDefinitionRegistrychannelPublishId - The id of the org.jasig.portal.ChannelDefinition this portlet definition represents.
public IPortletDefinition getPortletDefinition(int channelPublishId)
IPortletDefinitionRegistry
getPortletDefinition in interface IPortletDefinitionRegistrychannelPublishId - The id of the org.jasig.portal.ChannelDefinition this portlet definition represents.
public IPortletDefinition getOrCreatePortletDefinition(int channelPublishId)
IPortletDefinitionRegistryIPortletDefinitionRegistry.getPortletDefinition(int) and IPortletDefinitionRegistry.createPortletDefinition(int). If
the get returns null the definition will be created and returned.
getOrCreatePortletDefinition in interface IPortletDefinitionRegistryIPortletDefinitionRegistry.getPortletDefinition(int),
IPortletDefinitionRegistry.createPortletDefinition(int)public IPortletDefinition getPortletDefinition(IPortletDefinitionId portletDefinitionId)
IPortletDefinitionRegistry
getPortletDefinition in interface IPortletDefinitionRegistryportletDefinitionId - The id of the definition to retrieve
public void updatePortletDefinition(IPortletDefinition portletDefinition)
IPortletDefinitionRegistry
updatePortletDefinition in interface IPortletDefinitionRegistryportletDefinition - The IPortletDefinition to store changes to.
public org.apache.pluto.descriptors.portlet.PortletAppDD getParentPortletApplicationDescriptor(IPortletDefinitionId portletDefinitionId)
throws org.apache.pluto.PortletContainerException
IPortletDefinitionRegistry
getParentPortletApplicationDescriptor in interface IPortletDefinitionRegistryportletDefinitionId - The definition ID to get the parent application descriptor for.
org.apache.pluto.PortletContainerException
public org.apache.pluto.descriptors.portlet.PortletDD getParentPortletDescriptor(IPortletDefinitionId portletDefinitionId)
throws org.apache.pluto.PortletContainerException
IPortletDefinitionRegistry
getParentPortletDescriptor in interface IPortletDefinitionRegistryportletDefinitionId - The definition ID to get the parent descriptor for.
org.apache.pluto.PortletContainerExceptionpublic Tuple<String,String> getPortletDescriptorKeys(IPortletDefinition portletDefinition)
Tuple.first and the portletName will be Tuple.second
getPortletDescriptorKeys in interface IPortletDefinitionRegistry
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||