com.atlassian.jira.bc.portal
Class ProfessionalPortalPageService

java.lang.Object
  extended by com.atlassian.jira.bc.portal.AbstractPortalPageService
      extended by com.atlassian.jira.bc.portal.ProfessionalPortalPageService
All Implemented Interfaces:
PortalPageService

public class ProfessionalPortalPageService
extends AbstractPortalPageService

This is the PortalPageService used for PROFESSIONAL and ENTERPRISE JIRA

Since:
v3.13

Constructor Summary
ProfessionalPortalPageService(PortalPageManager portalPageManager, ShareTypeValidatorUtils shareTypeValidatorUtils, FavouritesManager favouritesManager, PermissionManager permissionManager, UserUtil userUtil)
           
 
Method Summary
protected  boolean canClonePortalPage(PortalPage pageToClone)
          This is expected to return a PortalPage IF the specified id is a valid PortalPage to clone.
protected  boolean checkSystemDefaultSharePermissions(JiraServiceContext serviceCtx, SharedEntity.SharePermissions sharePermissions)
          Check that the passed permissions are valid for the System Dashboard.
 boolean isMultiplePortalPagesEnabled()
          This returns TRUE if the user is allowed to create multiple PortalPage objects.
 
Methods inherited from class com.atlassian.jira.bc.portal.AbstractPortalPageService
addPortalPagePortletConfiguration, canUserSeePortlet, canUserSeePortlet, copyPortletConfigurationInPortalPage, createPortalPage, createPortalPage, createPortalPageByClone, createPortalPageByClone, decreasePortalPageSequence, deleteAllPortalPagesForUser, deletePortalPage, deletePortalPagePortletConfiguration, getFavouritePortalPages, getNonPrivatePortalPages, getOwnedPortalPages, getPortalPage, getPortalPagesFavouritedByOthers, getSystemDefaultPortalPage, getVisiblePortlet, getVisiblePortlets, increasePortalPageSequence, isFavourite, movePortletConfigurationToPortalPage, moveToEndPortalPageSequence, moveToStartPortalPageSequence, saveAllPortalPagePortletConfiguration, savePortalPagePortletConfiguration, search, updatePortalPage, updatePortalPage, validateForAddPortalPagePortletConfiguration, validateForChangePortalPageSequence, validateForCopyPortletConfigurationInPortalPage, validateForCreate, validateForCreatePortalPageByClone, validateForDelete, validateForDeletePortalPagePortletConfiguration, validateForMovePortletConfigurationToPortalPage, validateForSaveAllPortalPagePortletConfiguration, validateForSavePortalPagePortletConfiguration, validateForSearch, validateForUpdate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProfessionalPortalPageService

public ProfessionalPortalPageService(PortalPageManager portalPageManager,
                                     ShareTypeValidatorUtils shareTypeValidatorUtils,
                                     FavouritesManager favouritesManager,
                                     PermissionManager permissionManager,
                                     UserUtil userUtil)
Method Detail

isMultiplePortalPagesEnabled

public boolean isMultiplePortalPagesEnabled()
Description copied from interface: PortalPageService
This returns TRUE if the user is allowed to create multiple PortalPage objects. This is locked down on STANDARD JIRA

Returns:
true if uses can created multiple portal pages or false if not.

canClonePortalPage

protected boolean canClonePortalPage(PortalPage pageToClone)
Description copied from class: AbstractPortalPageService
This is expected to return a PortalPage IF the specified id is a valid PortalPage to clone.

Specified by:
canClonePortalPage in class AbstractPortalPageService
Parameters:
pageToClone - the PortalPage to clone
Returns:
a PortalPage or null if the portal page cant be found or its in invalid page to clone

checkSystemDefaultSharePermissions

protected boolean checkSystemDefaultSharePermissions(JiraServiceContext serviceCtx,
                                                     SharedEntity.SharePermissions sharePermissions)
Description copied from class: AbstractPortalPageService
Check that the passed permissions are valid for the System Dashboard.

Specified by:
checkSystemDefaultSharePermissions in class AbstractPortalPageService
Parameters:
serviceCtx - the JiraServiceContext in play
sharePermissions - the Set of SharePermission's to check
Returns:
true if they are valid


Copyright © 2002-2009 Atlassian. All Rights Reserved.