|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.portal.AbstractPortalPageImpl
public abstract class AbstractPortalPageImpl
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.atlassian.jira.sharing.SharedEntity |
---|
SharedEntity.Indentifier, SharedEntity.SharePermissions, SharedEntity.TypeDescriptor |
Field Summary |
---|
Fields inherited from interface com.atlassian.jira.portal.PortalPage |
---|
ENTITY_TYPE |
Constructor Summary | |
---|---|
protected |
AbstractPortalPageImpl(AbstractPortalPageImpl page)
Constructor for use by sub-classes in order to copy PortalPage. |
|
AbstractPortalPageImpl(Long id,
String name,
String description,
String ownerUserName,
Long favouriteCount)
|
|
AbstractPortalPageImpl(String name,
String description,
String ownerUserName)
|
Method Summary | |
---|---|
void |
addPortletConfig(PortletConfiguration portletConfiguration)
This adds a PortletConfiguration to the PortalPage. |
void |
deletePortletConfig(Long portletConfigId)
Deletes the PortletConfiguration with the portletConfigId from this PortalPage |
List |
getColumn(int num)
|
int |
getColumnCount()
|
List |
getColumns()
|
String |
getDescription()
A general description of the entity. |
SharedEntity.TypeDescriptor |
getEntityType()
The type of entity it is. |
Long |
getFavouriteCount()
Used as a rough guide to how many people favourited this object. |
Long |
getId()
The id of the entity. |
List |
getLeftPortletConfigs()
|
String |
getName()
The name of the entity. |
String |
getOwnerUserName()
The user name of the owner of the entity. |
SharedEntity.SharePermissions |
getPermissions()
The permissions for this entity. |
PortletConfiguration |
getPortletConfig(Long portletConfigId)
Returns the FIRST PortletConfiguration inside the PortalPage identified by portletConfigId |
protected Map |
getPortletConfigsMap()
|
List |
getPortletConfigurations()
Returns the list of PortletConfiguration objects inside the PortalPage |
List |
getPortletConfigurations(String portletKey)
Returns the ALL the PortletConfiguration 's inside the PortalPage which have a Portlet identified by portletKey |
List |
getRightPortletConfigs()
|
void |
movePortletPositionColumn(Long portletConfigId,
Integer column)
|
void |
movePortletPositionFirst(Long portletConfigId)
|
void |
movePortletPositionLast(Long portletConfigId)
|
void |
movePortletPositionRow(Long portletConfigId,
boolean forward)
|
protected void |
putInColumn(PortletConfiguration portletConfig)
|
protected void |
renumberList(List portletConfigs)
|
protected void |
renumberList(List portletConfigs,
Integer columnPosition)
|
void |
setDescription(String description)
Sets the description of the PortalPage |
protected void |
setFavouriteCount(Long favouriteCount)
|
protected void |
setId(Long id)
This is only here for Test purposes. |
void |
setName(String name)
Sets the name of the PortalPage |
protected void |
setOwnerUserName(String ownerUserName)
|
void |
setPermissions(SharedEntity.SharePermissions sharePermissions)
Sets the SharePermission objects associated with this object |
void |
setPortletConfigurations(List configs)
Set the portlets on the portalpage. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.atlassian.jira.portal.PortalPage |
---|
copy, deletePortletConfigs, isSystemDefaultPortalPage |
Constructor Detail |
---|
public AbstractPortalPageImpl(Long id, String name, String description, String ownerUserName, Long favouriteCount)
public AbstractPortalPageImpl(String name, String description, String ownerUserName)
protected AbstractPortalPageImpl(AbstractPortalPageImpl page)
page
- page to copy.Method Detail |
---|
public void setPortletConfigurations(List configs)
PortalPage
setPortletConfigurations
in interface PortalPage
configs
- the portlets to be set on this page.public Long getId()
SharedEntity
getId
in interface PortalPage
getId
in interface SharedEntity
protected void setId(Long id)
id
- the Idpublic String getName()
SharedEntity
getName
in interface PortalPage
getName
in interface SharedEntity
public void setName(String name)
PortalPage
setName
in interface PortalPage
name
- the name of the PortalPagepublic String getDescription()
SharedEntity
getDescription
in interface PortalPage
getDescription
in interface SharedEntity
public void setDescription(String description)
PortalPage
setDescription
in interface PortalPage
description
- the description of the PortalPagepublic Long getFavouriteCount()
PortalPage
getFavouriteCount
in interface Favourite
getFavouriteCount
in interface PortalPage
protected void setFavouriteCount(Long favouriteCount)
public final SharedEntity.TypeDescriptor getEntityType()
SharedEntity
getEntityType
in interface SharedEntity
public String getOwnerUserName()
SharedEntity
getOwnerUserName
in interface SharedEntity
protected void setOwnerUserName(String ownerUserName)
public SharedEntity.SharePermissions getPermissions()
SharedEntity
getPermissions
in interface SharedEntity
public void setPermissions(SharedEntity.SharePermissions sharePermissions)
PortalPage
setPermissions
in interface PortalPage
sharePermissions
- the set of SharePermission'spublic List getPortletConfigurations()
PortalPage
PortletConfiguration
objects inside the PortalPage
getPortletConfigurations
in interface PortalPage
PortletConfiguration
objects inside the PortalPageprotected Map getPortletConfigsMap()
public List getLeftPortletConfigs()
getLeftPortletConfigs
in interface PortalPage
public List getRightPortletConfigs()
getRightPortletConfigs
in interface PortalPage
public PortletConfiguration getPortletConfig(Long portletConfigId)
PortalPage
PortletConfiguration
inside the PortalPage identified by portletConfigId
getPortletConfig
in interface PortalPage
portletConfigId
- the if of the PortletConfiguration to retrieve
public List getPortletConfigurations(String portletKey)
PortalPage
PortletConfiguration
's inside the PortalPage which have a Portlet
identified by portletKey
getPortletConfigurations
in interface PortalPage
portletKey
- the key of the contained Portlet
PortletConfiguration
's inside the PortalPage or an empty list of its not thereprotected void putInColumn(PortletConfiguration portletConfig)
protected void renumberList(List portletConfigs)
protected void renumberList(List portletConfigs, Integer columnPosition)
public void movePortletPositionColumn(Long portletConfigId, Integer column)
movePortletPositionColumn
in interface PortalPage
public void movePortletPositionRow(Long portletConfigId, boolean forward)
movePortletPositionRow
in interface PortalPage
public void movePortletPositionFirst(Long portletConfigId)
movePortletPositionFirst
in interface PortalPage
public void movePortletPositionLast(Long portletConfigId)
movePortletPositionLast
in interface PortalPage
public int getColumnCount()
getColumnCount
in interface PortalPage
public List getColumns()
getColumns
in interface PortalPage
public List getColumn(int num)
getColumn
in interface PortalPage
public void addPortletConfig(PortletConfiguration portletConfiguration)
PortalPage
PortalPageService.addPortalPagePortletConfiguration(com.atlassian.jira.bc.JiraServiceContext, PortalPage, String, int, int)
method.
addPortletConfig
in interface PortalPage
portletConfiguration
- the PortletConfiguration to addpublic void deletePortletConfig(Long portletConfigId)
PortalPage
PortletConfiguration
with the portletConfigId from this PortalPage
deletePortletConfig
in interface PortalPage
portletConfigId
- the id of the PortletConfiguration
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |