com.atlassian.jira.bc.portal
Class StandardPortalPageSevice

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

public class StandardPortalPageSevice
extends AbstractPortalPageService

This is the PortalPageService used for STANDARD JIRA

Since:
v3.13

Constructor Summary
StandardPortalPageSevice(PortalPageManager portalPageManager, ShareTypeValidatorUtils shareTypeValidatorUtils, FavouritesManager favouritesManager, PermissionManager permissionManager, UserUtil userUtil)
           
 
Method Summary
protected  boolean canClonePortalPage(PortalPage pageToClone)
          ON STANDARD JIRA we only return NON NULL if the clonePortalPageId is the System Default PortalPage
protected  boolean checkSystemDefaultSharePermissions(JiraServiceContext serviceCtx, SharedEntity.SharePermissions sharePermissions)
          Under Standard we don't check that the SharePermissions are valid since we don't really enforce them strongly on Standard.
 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

StandardPortalPageSevice

public StandardPortalPageSevice(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)
ON STANDARD JIRA we only return NON NULL if the clonePortalPageId is the System Default PortalPage

Specified by:
canClonePortalPage in class AbstractPortalPageService
Parameters:
pageToClone - the page to clone
Returns:
a PortalPage ready for cloning or null

checkSystemDefaultSharePermissions

protected boolean checkSystemDefaultSharePermissions(JiraServiceContext serviceCtx,
                                                     SharedEntity.SharePermissions sharePermissions)
Under Standard we don't check that the SharePermissions are valid since we don't really enforce them strongly on Standard.

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-2008 Atlassian. All Rights Reserved.