|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.portlets.portletadmin.PortletAdministrationHelper
public class PortletAdministrationHelper
Helper methods for the portlet administration workflow.
| Field Summary | |
|---|---|
protected org.apache.commons.logging.Log |
logger
|
| Constructor Summary | |
|---|---|
PortletAdministrationHelper()
|
|
| Method Summary | |
|---|---|
void |
cleanOptions(ChannelDefinitionForm form,
PortletRequest request)
|
boolean |
configModeAction(org.springframework.webflow.context.ExternalContext externalContext,
String fname)
|
Set<ChannelLifecycleState> |
getAllowedLifecycleStates(IPerson person,
List<JsonEntityBean> categories)
|
Set<String> |
getArbitraryPortletPreferenceNames(ChannelDefinitionForm form)
Get a list of the key names of the currently-set arbitrary portlet preferences. |
ChannelDefinitionForm |
getChannelDefinitionForm(int chanId)
Construct a new ChannelDefinitionForm for the given IChannelDefinition id. |
ChannelLifecycleState[] |
getLifecycleStates()
|
List<org.apache.pluto.internal.impl.PortletContextImpl> |
getPortletApplications()
Retreive the list of portlet application contexts currently available in this portlet container. |
org.apache.pluto.descriptors.portlet.PortletDD |
getPortletDescriptor(ChannelDefinitionForm form)
Get a portlet descriptor matching the current channel definition form. |
protected Tuple<String,String> |
getPortletDescriptorKeys(ChannelDefinitionForm form)
|
boolean |
hasLifecyclePermission(IPerson person,
ChannelLifecycleState state,
List<JsonEntityBean> categories)
|
boolean |
offerPortletSelection(ChannelDefinitionForm form)
|
void |
prepopulatePortlet(String application,
String portlet,
ChannelDefinitionForm form)
Pre-populate a ChannelDefinitionForm with portlet-specific information using the supplied portlet descriptor. |
void |
removePortletRegistration(int channelId,
IPerson person)
Delete the portlet with the given channel ID. |
ChannelDefinitionForm |
savePortletRegistration(ChannelDefinitionForm form,
IPerson publisher)
Persist a new or edited ChannelDefinition. |
void |
setChannelPublishingDefinitionDao(IChannelPublishingDefinitionDao channelPublishingDefinitionDao)
|
void |
setChannelPublishingService(IChannelPublishingService channelPublishingService)
|
void |
setChannelRegistryStore(IChannelRegistryStore channelRegistryStore)
Set the channel registry store |
void |
setGroupListHelper(IGroupListHelper groupListHelper)
|
void |
setOptionalContainerServices(org.apache.pluto.OptionalContainerServices optionalContainerServices)
|
void |
setPortletDefinitionRegistry(IPortletDefinitionRegistry portletDefinitionRegistry)
|
void |
setPortletDelegationLocator(PortletDelegationLocator portletDelegationLocator)
|
void |
setServletContext(ServletContext servletContext)
|
boolean |
supportsConfigMode(ChannelDefinitionForm form)
If the channel is a portlet and if one of the supported portlet modes is IPortletAdaptor.CONFIG |
| 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 PortletAdministrationHelper()
| Method Detail |
|---|
public void setServletContext(ServletContext servletContext)
setServletContext in interface ServletContextAwarepublic void setPortletDelegationLocator(PortletDelegationLocator portletDelegationLocator)
public void setGroupListHelper(IGroupListHelper groupListHelper)
public void setChannelRegistryStore(IChannelRegistryStore channelRegistryStore)
channelRegistryStore - public void setOptionalContainerServices(org.apache.pluto.OptionalContainerServices optionalContainerServices)
public void setChannelPublishingService(IChannelPublishingService channelPublishingService)
public void setChannelPublishingDefinitionDao(IChannelPublishingDefinitionDao channelPublishingDefinitionDao)
public void setPortletDefinitionRegistry(IPortletDefinitionRegistry portletDefinitionRegistry)
public ChannelDefinitionForm getChannelDefinitionForm(int chanId)
chanId -
public ChannelDefinitionForm savePortletRegistration(ChannelDefinitionForm form,
IPerson publisher)
throws Exception
form - publisher -
Exception
public void removePortletRegistration(int channelId,
IPerson person)
channelID - the channel IDperson - the person removing the channelpublic Set<String> getArbitraryPortletPreferenceNames(ChannelDefinitionForm form)
form - cpd -
public boolean supportsConfigMode(ChannelDefinitionForm form)
IPortletAdaptor.CONFIG
public void cleanOptions(ChannelDefinitionForm form,
PortletRequest request)
public List<org.apache.pluto.internal.impl.PortletContextImpl> getPortletApplications()
public org.apache.pluto.descriptors.portlet.PortletDD getPortletDescriptor(ChannelDefinitionForm form)
null.
form -
public void prepopulatePortlet(String application,
String portlet,
ChannelDefinitionForm form)
application - portlet - form - public ChannelLifecycleState[] getLifecycleStates()
public Set<ChannelLifecycleState> getAllowedLifecycleStates(IPerson person,
List<JsonEntityBean> categories)
public boolean hasLifecyclePermission(IPerson person,
ChannelLifecycleState state,
List<JsonEntityBean> categories)
public boolean configModeAction(org.springframework.webflow.context.ExternalContext externalContext,
String fname)
throws IOException
IOExceptionpublic boolean offerPortletSelection(ChannelDefinitionForm form)
protected Tuple<String,String> getPortletDescriptorKeys(ChannelDefinitionForm form)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||