com.atlassian.bamboo.ww2
Class FreemarkerContext

java.lang.Object
  extended by com.atlassian.bamboo.ww2.FreemarkerContext

public class FreemarkerContext
extends java.lang.Object

This class is similar to BambooActionSupport but does not require an action or action context. This makes this functionality available to any servlets as well.


Constructor Summary
FreemarkerContext(BambooLicenseManager bambooLicenseManager, AdministrationConfigurationManager administrationConfigurationManager, BambooPermissionManager bambooPermissionManager, DashboardCachingManager dashboardCachingManager, com.atlassian.plugin.web.WebInterfaceManager webInterfaceManager, BambooUserManager bambooUserManager, com.atlassian.plugin.PluginAccessor pluginAccessor)
           
 
Method Summary
 BambooLicenseManager getBambooLicenseManager()
           
 java.lang.String getCurrentUrl(javax.servlet.http.HttpServletRequest request)
           
 java.lang.String getInstanceName()
           
 PluggableFooter getPluggableFooter()
          Gets the pluggable footer plugin.
 PluggableTopNavigation getPluggableTopNavigation()
          Gets the pluggable top navigation plugin.
 com.atlassian.user.User getUser(javax.servlet.http.HttpServletRequest request)
           
 java.util.List<com.atlassian.plugin.web.descriptors.WebItemModuleDescriptor> getWebItemsForAdminSection(java.lang.String sectionName, javax.servlet.http.HttpServletRequest request)
           
 java.util.List<com.atlassian.plugin.web.descriptors.WebSectionModuleDescriptor> getWebSectionsForAdminLocation(java.lang.String location, javax.servlet.http.HttpServletRequest request)
           
 boolean hasBuilds()
           
 boolean hasGlobalPermission(java.lang.String permission)
          Does this user have the global permission right?
 boolean isEnableSignup()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FreemarkerContext

public FreemarkerContext(BambooLicenseManager bambooLicenseManager,
                         AdministrationConfigurationManager administrationConfigurationManager,
                         BambooPermissionManager bambooPermissionManager,
                         DashboardCachingManager dashboardCachingManager,
                         com.atlassian.plugin.web.WebInterfaceManager webInterfaceManager,
                         BambooUserManager bambooUserManager,
                         com.atlassian.plugin.PluginAccessor pluginAccessor)
Method Detail

getInstanceName

@Nullable
public java.lang.String getInstanceName()

getUser

@Nullable
public com.atlassian.user.User getUser(javax.servlet.http.HttpServletRequest request)

isEnableSignup

public boolean isEnableSignup()

getCurrentUrl

@Nullable
public java.lang.String getCurrentUrl(javax.servlet.http.HttpServletRequest request)

hasBuilds

public boolean hasBuilds()

getWebItemsForAdminSection

public java.util.List<com.atlassian.plugin.web.descriptors.WebItemModuleDescriptor> getWebItemsForAdminSection(java.lang.String sectionName,
                                                                                                               javax.servlet.http.HttpServletRequest request)

getWebSectionsForAdminLocation

public java.util.List<com.atlassian.plugin.web.descriptors.WebSectionModuleDescriptor> getWebSectionsForAdminLocation(java.lang.String location,
                                                                                                                      javax.servlet.http.HttpServletRequest request)

hasGlobalPermission

public boolean hasGlobalPermission(java.lang.String permission)
Does this user have the global permission right?

Parameters:
permission - The global permission being checked.
Returns:
true if the current user has this permission; false otherwise.

getBambooLicenseManager

public BambooLicenseManager getBambooLicenseManager()

getPluggableTopNavigation

@Nullable
public PluggableTopNavigation getPluggableTopNavigation()
Gets the pluggable top navigation plugin.

Returns:
The pluggable top navigation plugin, if it exists, or null.

getPluggableFooter

@Nullable
public PluggableFooter getPluggableFooter()
Gets the pluggable footer plugin.

Returns:
The pluggable footer plugin, if it exists, or null.


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.