|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.ww2.FreemarkerContext
public class FreemarkerContext
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,
PlanFavouriteService planFavouriteService)
|
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.Map<java.lang.String,java.lang.Object> |
getWebFragmentsContextMapForAdminMenu(javax.servlet.http.HttpServletRequest request)
A context map that gets appended to for web fragments. |
java.util.List<com.atlassian.plugin.web.descriptors.WebItemModuleDescriptor> |
getWebItemsForAdminSection(java.lang.String sectionName,
javax.servlet.http.HttpServletRequest request)
Will not bother putting any build information on the context |
java.util.Collection<java.lang.String> |
getWebPanels(java.lang.String location)
Gets all the rendered WebPanel s for the location specified. |
java.util.List<com.atlassian.plugin.web.descriptors.WebSectionModuleDescriptor> |
getWebSectionsForAdminLocation(java.lang.String location,
javax.servlet.http.HttpServletRequest request)
Will not bother putting any build information on the context |
boolean |
hasAdminPermission()
|
boolean |
hasBuilds()
|
boolean |
hasGlobalAdminPermission()
|
boolean |
hasGlobalPermission(java.lang.String permission)
Does this user have the global permission right? |
boolean |
hasRestrictedAdminPermission()
|
boolean |
isEnableSignup()
|
boolean |
isFavourite(Plan plan,
javax.servlet.http.HttpServletRequest request)
|
java.lang.String |
renderFreemarkerTemplateForAdmin(java.lang.String templateString,
javax.servlet.http.HttpServletRequest request)
Will not bother putting any build information on the context |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FreemarkerContext(BambooLicenseManager bambooLicenseManager, AdministrationConfigurationManager administrationConfigurationManager, BambooPermissionManager bambooPermissionManager, DashboardCachingManager dashboardCachingManager, com.atlassian.plugin.web.WebInterfaceManager webInterfaceManager, BambooUserManager bambooUserManager, com.atlassian.plugin.PluginAccessor pluginAccessor, PlanFavouriteService planFavouriteService)
Method Detail |
---|
@Nullable public java.lang.String getInstanceName()
@Nullable public com.atlassian.user.User getUser(javax.servlet.http.HttpServletRequest request)
public boolean isEnableSignup()
@Nullable public java.lang.String getCurrentUrl(javax.servlet.http.HttpServletRequest request)
public boolean hasBuilds()
public boolean isFavourite(Plan plan, javax.servlet.http.HttpServletRequest request)
public java.util.List<com.atlassian.plugin.web.descriptors.WebItemModuleDescriptor> getWebItemsForAdminSection(java.lang.String sectionName, javax.servlet.http.HttpServletRequest request)
sectionName
- - the section to retrieve the web items forrequest
- - the http request
public java.util.List<com.atlassian.plugin.web.descriptors.WebSectionModuleDescriptor> getWebSectionsForAdminLocation(java.lang.String location, javax.servlet.http.HttpServletRequest request)
location
- - the location to retrieve the web sections forrequest
- - the http request
public java.lang.String renderFreemarkerTemplateForAdmin(java.lang.String templateString, javax.servlet.http.HttpServletRequest request)
templateString
- - to renderrequest
- - the http request
public boolean hasGlobalPermission(java.lang.String permission)
permission
- The global permission being checked.
true
if the current user has this permission; false
otherwise.public boolean hasGlobalAdminPermission()
public boolean hasRestrictedAdminPermission()
public boolean hasAdminPermission()
public BambooLicenseManager getBambooLicenseManager()
@Nullable public PluggableTopNavigation getPluggableTopNavigation()
@Nullable public PluggableFooter getPluggableFooter()
public java.util.Map<java.lang.String,java.lang.Object> getWebFragmentsContextMapForAdminMenu(javax.servlet.http.HttpServletRequest request)
request
- - servlet request
public java.util.Collection<java.lang.String> getWebPanels(@NotNull java.lang.String location)
WebPanel
s for the location specified.
If called in the context of rendering a BambooActionSupport
action the context used is taken from BambooActionSupport.getWebPanelContext(String)
location
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |