public class PortalPageDisplayBean extends Object implements SharesListHelper
PortalPage
. Does a lot of the calculations that need to be done.Constructor and Description |
---|
PortalPageDisplayBean(JiraAuthenticationContext authCtx,
PortalPage portalPage,
FavouritesService favouriteService,
PermissionManager permissionManager,
ShareTypeFactory shareTypeFactory,
UserFormatManager userFormatManager) |
Modifier and Type | Method and Description |
---|---|
boolean |
canEditColumns()
Is it possible to edit columns in this version of JIRA
|
boolean |
canShare()
Is it possible to share pages
|
Collection<SharePermission> |
getAllSharePermissions() |
long |
getAlternateFavouriteCount()
How many times has this page been favourited altered by whether it will disabled or enabled
|
String |
getDescription() |
Long |
getFavouriteCount()
How many times has this page been favourited
|
Long |
getId()
Return the ID of the entity that owns the shares.
|
String |
getName() |
String |
getOwnerFullName() |
String |
getOwnerUserName() |
Collection<SharePermission> |
getSharePermissions()
Returns the share permissions associated with the entity.
|
String |
getShareView(SharePermission sharePermission)
Return HTML view of the current sharing status of the page.
|
String |
getSimpleDescription(SharePermission sharePermission)
Return a simple description of the passed in permission.
|
boolean |
isCurrentOwner() |
boolean |
isFavourite()
Is this page a favourite of the current user
|
boolean |
isPrivate()
Is this privately shared?
|
boolean |
isSystemDashboard() |
public PortalPageDisplayBean(JiraAuthenticationContext authCtx, PortalPage portalPage, FavouritesService favouriteService, PermissionManager permissionManager, ShareTypeFactory shareTypeFactory, UserFormatManager userFormatManager)
public Long getId()
SharesListHelper
getId
in interface SharesListHelper
public String getOwnerUserName()
public String getOwnerFullName()
public String getName()
public boolean isCurrentOwner()
public String getDescription()
public boolean isPrivate()
isPrivate
in interface SharesListHelper
public boolean isFavourite()
public Long getFavouriteCount()
public long getAlternateFavouriteCount()
public boolean canShare()
public boolean canEditColumns()
public Collection<SharePermission> getSharePermissions()
SharesListHelper
getSharePermissions
in interface SharesListHelper
public Collection<SharePermission> getAllSharePermissions()
public String getShareView(SharePermission sharePermission)
sharePermission
- the share permission to render.public String getSimpleDescription(SharePermission sharePermission)
sharePermission
- The permission to describe.public boolean isSystemDashboard()
Copyright © 2002-2016 Atlassian. All Rights Reserved.