public class PortletConfigurationImpl extends Object implements PortletConfiguration
| Constructor and Description |
|---|
PortletConfigurationImpl(Long id,
Long dashboardPageId,
Integer column,
Integer row,
io.atlassian.fugue.Option<URI> openSocialSpecUri,
com.atlassian.gadgets.dashboard.Color color,
Map<String,String> userPrefs,
io.atlassian.fugue.Option<com.atlassian.plugin.ModuleCompleteKey> completeModuleKey) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(PortletConfiguration that) |
com.atlassian.gadgets.dashboard.Color |
getColor()
Returns the color to use when rendering the Chrome of this gadget.
|
Integer |
getColumn()
Represents the column that the configured portlet resides in.
|
io.atlassian.fugue.Option<com.atlassian.plugin.ModuleCompleteKey> |
getCompleteModuleKey()
Return optional module key which identifies dashboard items which are described in atlassian-plugin.xml.
|
Long |
getDashboardPageId()
Provides the dashboard page id.
|
URI |
getGadgetURI()
Returns the URI pointing to the OpenSocial gadget XML specification.
|
Long |
getId()
Return the id of the PortletConfiguration.
|
io.atlassian.fugue.Option<URI> |
getOpenSocialSpecUri()
Returns optional URI pointing to the OpenSocial gadget XML specification.
|
Integer |
getRow()
Represents the row that the configured portlet resides in.
|
Map<String,String> |
getUserPrefs()
An unmodifiable map of user preferences stored for this gadget.
|
void |
setColor(com.atlassian.gadgets.dashboard.Color color)
Set the color of the chrome for a gadget.
|
void |
setColumn(Integer column)
Sets the column for the Portlet, effectively moving the portlet left or right on the page.
|
void |
setDashboardPageId(Long dashboardPageId)
Sets the dashboard page id.
|
void |
setRow(Integer row)
Sets the row for the Portlet, effectively moving the portlet up or down on the page.
|
void |
setUserPrefs(Map<String,String> userPrefs)
Sets the userPreferences for this portletconfig.
|
String |
toString() |
public PortletConfigurationImpl(Long id, Long dashboardPageId, Integer column, Integer row, io.atlassian.fugue.Option<URI> openSocialSpecUri, com.atlassian.gadgets.dashboard.Color color, Map<String,String> userPrefs, io.atlassian.fugue.Option<com.atlassian.plugin.ModuleCompleteKey> completeModuleKey)
public Long getId()
PortletConfigurationgetId in interface PortletConfigurationpublic Integer getColumn()
PortletConfigurationgetColumn in interface PortletConfigurationpublic void setColumn(Integer column)
PortletConfigurationsetColumn in interface PortletConfigurationcolumn - the column number starting from 1.public Integer getRow()
PortletConfigurationgetRow in interface PortletConfigurationpublic Long getDashboardPageId()
PortletConfigurationgetDashboardPageId in interface PortletConfigurationpublic void setDashboardPageId(Long dashboardPageId)
PortletConfigurationsetDashboardPageId in interface PortletConfigurationdashboardPageId - the dashboard page id.public void setRow(Integer row)
PortletConfigurationsetRow in interface PortletConfigurationrow - the row number starting from 1.public URI getGadgetURI()
PortletConfigurationgetGadgetURI in interface PortletConfigurationPortletConfiguration.getOpenSocialSpecUri() instead. Since v6.4.http://code.google.com/apis/gadgets/docs/reference.htmlpublic Map<String,String> getUserPrefs()
PortletConfigurationgetUserPrefs in interface PortletConfigurationhttp://code.google.com/apis/gadgets/docs/reference.html#Userprefs_Refpublic void setUserPrefs(Map<String,String> userPrefs)
PortletConfigurationsetUserPrefs in interface PortletConfigurationuserPrefs - A map of key value pairspublic com.atlassian.gadgets.dashboard.Color getColor()
PortletConfigurationgetColor in interface PortletConfigurationpublic void setColor(com.atlassian.gadgets.dashboard.Color color)
PortletConfigurationsetColor in interface PortletConfigurationcolor - the color of the chrome for a gadget.public io.atlassian.fugue.Option<com.atlassian.plugin.ModuleCompleteKey> getCompleteModuleKey()
PortletConfigurationgetCompleteModuleKey in interface PortletConfigurationpublic io.atlassian.fugue.Option<URI> getOpenSocialSpecUri()
PortletConfigurationOption for dashboard item without replacement uri.getOpenSocialSpecUri in interface PortletConfigurationhttp://code.google.com/apis/gadgets/docs/reference.htmlpublic int compareTo(PortletConfiguration that)
compareTo in interface Comparable<PortletConfiguration>Copyright © 2002-2021 Atlassian. All Rights Reserved.