public class PortletConfigurationManagerImpl extends Object implements PortletConfigurationManager
| Constructor and Description |
|---|
PortletConfigurationManagerImpl(PortletConfigurationStore portletConfigurationStore) |
| Modifier and Type | Method and Description |
|---|---|
PortletConfiguration |
addDashBoardItem(Long portalPageId,
Integer column,
Integer row,
com.atlassian.fugue.Option<URI> openSocialSpecUri,
com.atlassian.gadgets.dashboard.Color color,
Map<String,String> userPreferences,
com.atlassian.fugue.Option<com.atlassian.plugin.ModuleCompleteKey> moduleKey)
Create a new
PortletConfiguration to the given PortalPage for the passed parameters. |
PortletConfiguration |
addGadget(Long portalPageId,
Integer column,
Integer row,
URI gadgetXml,
com.atlassian.gadgets.dashboard.Color color,
Map<String,String> userPreferences)
Create a new portlet configuration for the passed parameters.
|
void |
delete(PortletConfiguration pc)
Remove the passed portlet configuration.
|
List<PortletConfiguration> |
getByPortalPage(Long portalPageId)
Get all the
PortletConfiguration associated with the passed Portal Page. |
PortletConfiguration |
getByPortletId(Long portletId)
Get the passed portlet configuration.
|
void |
store(PortletConfiguration pc)
Update the passed portlet configuration.
|
public PortletConfigurationManagerImpl(PortletConfigurationStore portletConfigurationStore)
public List<PortletConfiguration> getByPortalPage(Long portalPageId)
PortletConfigurationManagerPortletConfiguration associated with the passed Portal Page.getByPortalPage in interface PortletConfigurationManagerportalPageId - the portal page to query.public PortletConfiguration getByPortletId(Long portletId)
PortletConfigurationManagergetByPortletId in interface PortletConfigurationManagerportletId - the id of the portlet configuration to return.public void delete(PortletConfiguration pc)
PortletConfigurationManagerdelete in interface PortletConfigurationManagerpc - the portlet configuration to remove.public PortletConfiguration addGadget(Long portalPageId, Integer column, Integer row, URI gadgetXml, com.atlassian.gadgets.dashboard.Color color, Map<String,String> userPreferences)
PortletConfigurationManageraddGadget in interface PortletConfigurationManagerportalPageId - the portal page the configuration will belong to.column - the column location for the new configuration.row - the row location for the new configuration.gadgetXml - A URI specifying the location of the gadget XML. May be null if this is a legacy portlet.color - The chrome color for the gadget.userPreferences - A map of key -> value user preference pairs used to store gadget configuration.public PortletConfiguration addDashBoardItem(Long portalPageId, Integer column, Integer row, com.atlassian.fugue.Option<URI> openSocialSpecUri, com.atlassian.gadgets.dashboard.Color color, Map<String,String> userPreferences, com.atlassian.fugue.Option<com.atlassian.plugin.ModuleCompleteKey> moduleKey)
PortletConfigurationManagerPortletConfiguration to the given PortalPage for the passed parameters.addDashBoardItem in interface PortletConfigurationManagerportalPageId - the portal page the configuration will belong to.* com.atlassian.jira.dashboard.JiraGadgetStateFactory#createGadgetState(java.net.URI)}. May be null for a generated id.column - The column position of the portlet.row - The row position of the portletopenSocialSpecUri - A URI specifying the location of the gadget XML. May be an empty option if this is
a legacy portlet or dashboard item without uri replacement.color - The chrome color for the gadget.userPreferences - A map of key -> value user preference pairs used to store gadget configuration.moduleKey - A complete module key of dashboard items.public void store(PortletConfiguration pc)
PortletConfigurationManagerstore in interface PortletConfigurationManagerpc - the portlet configuration to change.Copyright © 2002-2018 Atlassian. All Rights Reserved.