|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.portal.PortletConfigurationImpl
public class PortletConfigurationImpl
Represents the configuration for a portlet. This is the state that is saved to the database. This implmentation uses a passed in PropertySet to store the configurable properties. It is recommended that an in memory PropertySet is used as the store now persists this manually.
Constructor Summary | |
---|---|
PortletConfigurationImpl(Long id,
Long dashboardPageId,
Integer column,
Integer row,
URI gadgetUri,
com.atlassian.gadgets.dashboard.Color color,
Map<String,String> userPrefs)
|
Method Summary | |
---|---|
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. |
Long |
getDashboardPageId()
Provides the dashboard page id. |
URI |
getGadgetURI()
Returns the URI pointing to the Gadget XML for this particular portlet. |
Long |
getId()
Return the id of the PortletConfiguration. |
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PortletConfigurationImpl(Long id, Long dashboardPageId, Integer column, Integer row, URI gadgetUri, com.atlassian.gadgets.dashboard.Color color, Map<String,String> userPrefs)
Method Detail |
---|
public Long getId()
PortletConfiguration
getId
in interface PortletConfiguration
public Integer getColumn()
PortletConfiguration
getColumn
in interface PortletConfiguration
public void setColumn(Integer column)
PortletConfiguration
setColumn
in interface PortletConfiguration
column
- the column number starting from 1.public Integer getRow()
PortletConfiguration
getRow
in interface PortletConfiguration
public Long getDashboardPageId()
PortletConfiguration
getDashboardPageId
in interface PortletConfiguration
public void setDashboardPageId(Long dashboardPageId)
PortletConfiguration
setDashboardPageId
in interface PortletConfiguration
dashboardPageId
- the dashboard page id.public void setRow(Integer row)
PortletConfiguration
setRow
in interface PortletConfiguration
row
- the row number starting from 1.public URI getGadgetURI()
PortletConfiguration
getGadgetURI
in interface PortletConfiguration
http://code.google.com/apis/gadgets/docs/reference.html
public Map<String,String> getUserPrefs()
PortletConfiguration
getUserPrefs
in interface PortletConfiguration
http://code.google.com/apis/gadgets/docs/reference.html#Userprefs_Ref
public void setUserPrefs(Map<String,String> userPrefs)
PortletConfiguration
setUserPrefs
in interface PortletConfiguration
userPrefs
- A map of key value pairspublic com.atlassian.gadgets.dashboard.Color getColor()
PortletConfiguration
getColor
in interface PortletConfiguration
public void setColor(com.atlassian.gadgets.dashboard.Color color)
PortletConfiguration
setColor
in interface PortletConfiguration
color
- the color of the chrome for a gadget.public int compareTo(PortletConfiguration that)
compareTo
in interface Comparable<PortletConfiguration>
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |