public class ViewLabelAction extends AbstractLabelDisplayingAction
| Modifier and Type | Field and Description |
|---|---|
static int |
ITEMS_PER_PAGE
The default number of content to be displayed on each page.
|
protected PaginationSupport |
paginationSupport
Pagination support to assist in the display of the list of content associated with the label.
|
List |
preloadedPage |
MAX_LABELSkey, notificationManager, space, spaceManager, themeManager, wikiStyleRendererCANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, pluginAccessor, PREVIEW, settingsManager, spacePermissionManager, userAccessor, webInterfaceManager| Constructor and Description |
|---|
ViewLabelAction() |
| Modifier and Type | Method and Description |
|---|---|
String |
execute() |
DisplayableLabel |
getAddLabel(Label label)
Returns a DisplayableLabel representing the currently viewed labels
and the given label.
|
List |
getContent() |
String |
getDescription() |
FriendlyDateFormatterHelper |
getFriendlyDateFormatterHelper() |
DisplayableLabel |
getLabel()
Returns a DisplayableLabel based on all the labels being viewed.
|
List |
getLabels() |
List<DisplayableLabel> |
getOtherLabels(Labelable content)
Returns the first nine global labels on the given content that are not this.label.
|
PaginationSupport |
getPaginationSupport() |
String |
getPaginationUrl() |
List |
getPreloadedPage() |
List |
getRelated() |
DisplayableLabel |
getRemoveLabel(Label label)
Returns a DisplayableLabel representing the currently viewed labels,
minus the given label.
|
WebInterfaceContext |
getWebInterfaceContext()
Returns a context which can be passed to web items when rendering them.
|
boolean |
isViewPermissionRequired()
For viewing individual labels, we don't require view permission on any particular space
(actually, this doesn't matter right now - but might in the future!)
|
void |
setDescription(String description) |
void |
setIds(long[] ids) |
void |
setSearchManager(SearchManager searchManager) |
void |
setStartIndex(int startIndex) |
void |
validate() |
getPopularLabels, getRecentLabels, isSpaceRequiredgetKey, getPermissionTypes, getSpace, getSpaceKey, getSubscribableName, getThemeManager, hasSpaceIA, isAdminUser, isPermitted, isPersonalSpace, isSuperUser, isUserWatchingSpace, isValidSpaceKey, setKey, setNotificationManager, setSpace, setSpaceManager, setThemeManager, setWikiStyleRendereraddActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, doDefault, formatFriendlyDate, getActionName, getActionName, getAuthenticatedUser, getBootstrapManager, getCancel, getCancelResult, getContext, getDateFormatSetting, getDateFormatter, getDefaultResourceBundle, getDefaultTimeZone, getDocLink, getEventManager, getFriendlyDateFormatter, getGlobalSettings, getHelper, getI18n, getInstalledLanguages, getLabelManager, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getMessageHolder, getNiceContentType, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPreviousLoginDate, getRemoteUser, getSession, getSystemInformationService, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUser, getUserAccessor, getUserByName, getUserFullName, getUserInterfaceState, getUserLocaleDefaultDatePattern, getUserProfilePicUrl, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPermissionCheck, isPermittedAsString, isPrintableVersion, isSharedMode, isUserStatusPluginEnabled, isUsingH2, isUsingHSQL, setApiDateFormatService, setBootstrapManager, setCancel, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionCheck, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setSettingsManager, setSpacePermissionManager, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManageraddActionError, addActionMessage, addFieldError, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrorsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetSpacepublic static final int ITEMS_PER_PAGE
protected PaginationSupport paginationSupport
public List preloadedPage
public void setIds(long[] ids)
public void setStartIndex(int startIndex)
public void setSearchManager(SearchManager searchManager)
public List getLabels()
public List getContent()
public List getRelated()
public PaginationSupport getPaginationSupport()
public void validate()
validate in interface MessageHolderAwarevalidate in interface com.opensymphony.xwork.Validateablevalidate in class com.opensymphony.xwork.ActionSupportpublic String execute() throws Exception
execute in interface com.opensymphony.xwork.Actionexecute in class com.opensymphony.xwork.ActionSupportExceptionpublic boolean isViewPermissionRequired()
isViewPermissionRequired in interface SpaceAwareisViewPermissionRequired in class AbstractLabelDisplayingActionpublic List<DisplayableLabel> getOtherLabels(Labelable content)
content - the content to get labels forLabels with size between 0 and 8 inclusive. Not null.public List getPreloadedPage()
public DisplayableLabel getLabel()
public DisplayableLabel getAddLabel(Label label)
For example, if the current viewed labels are "a+b" and the passed label is "c", it returns a DisplayableLabel of "a+b+c"
Sorts the labels by title before returning them, so the order is canonical.public DisplayableLabel getRemoveLabel(Label label)
public String getPaginationUrl()
public WebInterfaceContext getWebInterfaceContext()
WebInterfacegetWebInterfaceContext in interface WebInterfacegetWebInterfaceContext in class ConfluenceActionSupportpublic String getDescription()
public void setDescription(String description)
public FriendlyDateFormatterHelper getFriendlyDateFormatterHelper()
Copyright © 2003–2015 Atlassian. All rights reserved.