|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.portal.PortletConfigurationManagerImpl
public class PortletConfigurationManagerImpl
Constructor Summary | |
---|---|
PortletConfigurationManagerImpl(PortletConfigurationStore portletConfigurationStore,
LegacyGadgetUrlProvider legacyGadgetUrlProvider)
|
Method Summary | |
---|---|
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. |
PortletConfiguration |
addLegacyPortlet(Long pageId,
String portletKey,
Integer column,
Integer row)
Adds a new legacy portlet to a dashboard. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PortletConfigurationManagerImpl(PortletConfigurationStore portletConfigurationStore, LegacyGadgetUrlProvider legacyGadgetUrlProvider)
Method Detail |
---|
public List<PortletConfiguration> getByPortalPage(Long portalPageId)
PortletConfigurationManager
PortletConfiguration
associated with the passed Portal Page.
getByPortalPage
in interface PortletConfigurationManager
portalPageId
- the portal page to query.
public PortletConfiguration getByPortletId(Long portletId)
PortletConfigurationManager
getByPortletId
in interface PortletConfigurationManager
portletId
- the id of the portlet configuration to return.
public void delete(PortletConfiguration pc)
PortletConfigurationManager
delete
in interface PortletConfigurationManager
pc
- the portlet configuration to remove.public PortletConfiguration addLegacyPortlet(Long pageId, String portletKey, Integer column, Integer row)
PortletConfigurationManager
addLegacyPortlet
in interface PortletConfigurationManager
pageId
- the portal page the configuration will belong to.portletKey
- the portal the configuration will be associated with.column
- the column location for the new configuration.row
- the row location for the new configuration.
public PortletConfiguration addGadget(Long portalPageId, Integer column, Integer row, URI gadgetXml, com.atlassian.gadgets.dashboard.Color color, Map<String,String> userPreferences)
PortletConfigurationManager
addGadget
in interface PortletConfigurationManager
portalPageId
- 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 void store(PortletConfiguration pc)
PortletConfigurationManager
store
in interface PortletConfigurationManager
pc
- the portlet configuration to change.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |