public class DashboardMacroSupport extends Object
Constructor and Description |
---|
DashboardMacroSupport() |
DashboardMacroSupport(LabelManager labelManager,
SpaceManager spaceManager,
LocaleManager localeManager,
PermissionManager permissionManager) |
Modifier and Type | Method and Description |
---|---|
List<Space> |
getAllViewableSpaces() |
DateFormatter |
getDateFormatter() |
List<Space> |
getFavouriteSpaces() |
List<Space> |
getNewSpaces() |
Set<Space> |
getPermittedSpaces()
Deprecated.
Since 3.5. Use
getPermittedSpacesBuilder() . |
ListBuilder<Space> |
getPermittedSpacesBuilder()
Get an ListBuilder of all spaces the current user can see.
|
javax.servlet.http.HttpServletRequest |
getRequest()
There are two possible cases here -
You are within an HTTP request thread, in which case the request will be retrieved from a ThreadLocal
You are not a 'web related' thread (e.g.
|
String |
getRequestParameter(String key) |
protected String |
getSelectedTeamLabelName() |
String |
getSpacesSelectedTab() |
List<Space> |
getTeamSpaces() |
protected UserInterfaceState |
getUserInterfaceState() |
List<String> |
getViewableTeamLabels() |
protected String |
sanitiseSelectedSpacesTab(String spacesSelectedTab)
four cases to sanitise on
"new" tab when there are no new spaces
"my" tab when there are no favourite spaces
"team" tab when there are no teams
|
void |
setLabelManager(LabelManager labelManager) |
void |
setLocaleManager(LocaleManager localeManager) |
void |
setPermissionManager(PermissionManager permissionManager) |
void |
setSpaceManager(SpaceManager spaceManager) |
public DashboardMacroSupport()
public DashboardMacroSupport(LabelManager labelManager, SpaceManager spaceManager, LocaleManager localeManager, PermissionManager permissionManager)
public DateFormatter getDateFormatter()
@Deprecated public Set<Space> getPermittedSpaces()
getPermittedSpacesBuilder()
.public ListBuilder<Space> getPermittedSpacesBuilder()
protected String getSelectedTeamLabelName()
protected UserInterfaceState getUserInterfaceState()
public String getSpacesSelectedTab()
protected String sanitiseSelectedSpacesTab(String spacesSelectedTab)
spacesSelectedTab
- currently selected tabpublic javax.servlet.http.HttpServletRequest getRequest()
public void setLabelManager(LabelManager labelManager)
public void setSpaceManager(SpaceManager spaceManager)
public void setLocaleManager(LocaleManager localeManager)
public void setPermissionManager(PermissionManager permissionManager)
Copyright © 2003–2015 Atlassian. All rights reserved.