Package com.atlassian.jira.portal
Class PortalPage
java.lang.Object
com.atlassian.jira.portal.PortalPage
- All Implemented Interfaces:
Favourite,SharedEntity
This class represents a Dashboard page in JIRA. It includes dashboard meta data (name, description) as well as
information about favouriting and share permissions.
It no longer has a link to the PortletConfigurations (Gadgets) displayed on a dashboard. To get this information one
should consult the PortalPageService directly.
Use the supplied PortalPage.Builder class to construct new instances of a
PortalPage. This class is used to represent both System and User owned dashboards. The only restriction is that
system dashboards may not have an owner.
- Since:
- 4.1
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.atlassian.jira.sharing.SharedEntity
SharedEntity.Identifier, SharedEntity.SharePermissions, SharedEntity.TypeDescriptor<S extends SharedEntity> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SharedEntity.TypeDescriptor<PortalPage>This is theSharedEntitytype, eg "PortalPage" -
Method Summary
Modifier and TypeMethodDescriptionbooleanA general description of the entity.The type of entity it is.The number of users who have marked this entity as one of their favourites.getId()The id of the entity.com.atlassian.gadgets.dashboard.LayoutgetName()The name of the entity.getOwner()The permissions for this entity.inthashCode()static PortalPage.Builderbooleanstatic PortalPage.Builderstatic PortalPage.BuilderportalPage(PortalPage page) toString()
-
Field Details
-
ENTITY_TYPE
This is theSharedEntitytype, eg "PortalPage"
-
-
Method Details
-
getId
Description copied from interface:SharedEntityThe id of the entity.- Specified by:
getIdin interfaceSharedEntity- Returns:
- the id. May be null if not yet persisted. Some components may not accept a non-persisted entity.
-
getVersion
-
isSystemDefaultPortalPage
public boolean isSystemDefaultPortalPage() -
getName
Description copied from interface:SharedEntityThe name of the entity.- Specified by:
getNamein interfaceSharedEntity- Returns:
- the name. Must not be null or empty.
-
getDescription
Description copied from interface:SharedEntityA general description of the entity.- Specified by:
getDescriptionin interfaceSharedEntity- Returns:
- the description. May be null or empty.
-
getOwner
- Specified by:
getOwnerin interfaceSharedEntity
-
getOwnerUserName
- Specified by:
getOwnerUserNamein interfaceSharedEntity- Returns:
- The user name of the user who owns this entity. May be null for anonymous user.
-
getLayout
public com.atlassian.gadgets.dashboard.Layout getLayout() -
getFavouriteCount
Description copied from interface:FavouriteThe number of users who have marked this entity as one of their favourites.- Specified by:
getFavouriteCountin interfaceFavourite- Returns:
- long the user count
-
getEntityType
Description copied from interface:SharedEntityThe type of entity it is. Examples include SearchRequest ("SearchRequest") and PortalPage ("PortalPage")- Specified by:
getEntityTypein interfaceSharedEntity- Returns:
- the type of entity.
-
getPermissions
Description copied from interface:SharedEntityThe permissions for this entity.- Specified by:
getPermissionsin interfaceSharedEntity- Returns:
- the permissions object. Must not be null.
-
portalPage
-
id
-
name
-
toString
-
equals
-
hashCode
public int hashCode()
-