|
||||||||||
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,
String portletKey,
Portlet portlet,
Integer column,
Integer row,
com.opensymphony.module.propertyset.PropertySet configuration)
|
Method Summary | |
---|---|
int |
compareTo(Object o)
|
Integer |
getColumn()
Represents the column that the configured portlet resides in. |
Long |
getDashboardPageId()
Provides the dashboard page id. |
String |
getDefaultProperty(String propertyKey)
|
Long |
getId()
Return the id of the PortletConfiguration. |
String |
getKey()
|
Long |
getLongProperty(String propertyKey)
|
com.atlassian.configurable.ObjectConfiguration |
getObjectConfiguration()
|
Portlet |
getPortlet()
Returns the portlet implementation that this PortletConfiguration is for. |
com.opensymphony.module.propertyset.PropertySet |
getProperties()
|
String |
getProperty(String propertyKey)
Return the property if it is found, else return the default property |
Integer |
getRow()
Represents the row that the configured portlet resides in. |
String |
getTextProperty(String propertyKey)
|
boolean |
hasProperty(String propertyKey)
|
boolean |
isResourcesProvided()
Normal rendition of the Portlet should have JavaScript and CSS etc. |
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. |
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, String portletKey, Portlet portlet, Integer column, Integer row, com.opensymphony.module.propertyset.PropertySet configuration)
Method Detail |
---|
public Long getId()
PortletConfiguration
getId
in interface PortletConfiguration
public Portlet getPortlet()
PortletConfiguration
getPortlet
in interface PortletConfiguration
public Integer getColumn()
PortletConfiguration
getColumn
in interface PortletConfiguration
public String getKey()
getKey
in interface com.atlassian.configurable.ObjectConfigurable
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 boolean isResourcesProvided()
isResourcesProvided
in interface PortletConfiguration
public com.atlassian.configurable.ObjectConfiguration getObjectConfiguration() throws com.atlassian.configurable.ObjectConfigurationException
getObjectConfiguration
in interface com.atlassian.configurable.ObjectConfigurable
com.atlassian.configurable.ObjectConfigurationException
public boolean hasProperty(String propertyKey) throws com.atlassian.configurable.ObjectConfigurationException
hasProperty
in interface com.atlassian.configurable.ObjectConfigurable
com.atlassian.configurable.ObjectConfigurationException
public String getProperty(String propertyKey) throws com.atlassian.configurable.ObjectConfigurationException
getProperty
in interface com.atlassian.configurable.ObjectConfigurable
propertyKey
- The key to look up from the PropertySet
com.atlassian.configurable.ObjectConfigurationException
public String getTextProperty(String propertyKey) throws com.atlassian.configurable.ObjectConfigurationException
getTextProperty
in interface com.atlassian.configurable.ObjectConfigurable
com.atlassian.configurable.ObjectConfigurationException
public Long getLongProperty(String propertyKey) throws com.atlassian.configurable.ObjectConfigurationException
getLongProperty
in interface com.atlassian.configurable.ObjectConfigurable
com.atlassian.configurable.ObjectConfigurationException
public String getDefaultProperty(String propertyKey) throws com.atlassian.configurable.ObjectConfigurationException
getDefaultProperty
in interface com.atlassian.configurable.ObjectConfigurable
com.atlassian.configurable.ObjectConfigurationException
public com.opensymphony.module.propertyset.PropertySet getProperties()
getProperties
in interface com.atlassian.configurable.ObjectConfigurable
public int compareTo(Object o)
compareTo
in interface Comparable
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |