|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.plugins.macros.dashboard.DashboardMacroSupport
public class DashboardMacroSupport
This support class provides common functionality used by the macros that are used on the dashboard.
Constructor Summary | |
---|---|
DashboardMacroSupport()
|
|
DashboardMacroSupport(LabelManager labelManager,
SpaceManager spaceManager,
LocaleManager localeManager,
PermissionManager permissionManager)
|
Method Summary | |
---|---|
java.util.List<Space> |
getAllViewableSpaces()
|
DateFormatter |
getDateFormatter()
|
java.util.List<Space> |
getFavouriteSpaces()
|
java.util.List<Space> |
getNewSpaces()
|
java.util.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. |
java.lang.String |
getRequestParameter(java.lang.String key)
|
protected java.lang.String |
getSelectedTeamLabelName()
|
java.lang.String |
getSpacesSelectedTab()
|
java.util.List<Space> |
getTeamSpaces()
|
protected UserInterfaceState |
getUserInterfaceState()
|
java.util.List<java.lang.String> |
getViewableTeamLabels()
|
protected java.lang.String |
sanitiseSelectedSpacesTab(java.lang.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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DashboardMacroSupport()
public DashboardMacroSupport(LabelManager labelManager, SpaceManager spaceManager, LocaleManager localeManager, PermissionManager permissionManager)
Method Detail |
---|
public java.util.List<Space> getFavouriteSpaces()
public DateFormatter getDateFormatter()
public java.util.List<Space> getNewSpaces()
public java.util.List<Space> getTeamSpaces()
@Deprecated public java.util.Set<Space> getPermittedSpaces()
getPermittedSpacesBuilder()
.
public ListBuilder<Space> getPermittedSpacesBuilder()
protected java.lang.String getSelectedTeamLabelName()
public java.util.List<java.lang.String> getViewableTeamLabels()
protected UserInterfaceState getUserInterfaceState()
public java.lang.String getSpacesSelectedTab()
protected java.lang.String sanitiseSelectedSpacesTab(java.lang.String spacesSelectedTab)
spacesSelectedTab
- currently selected tab
public java.lang.String getRequestParameter(java.lang.String key)
public javax.servlet.http.HttpServletRequest getRequest()
public java.util.List<Space> getAllViewableSpaces()
public void setLabelManager(LabelManager labelManager)
public void setSpaceManager(SpaceManager spaceManager)
public void setLocaleManager(LocaleManager localeManager)
public void setPermissionManager(PermissionManager permissionManager)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |