|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.opensymphony.xwork.ActionSupport com.atlassian.confluence.core.ConfluenceActionSupport com.atlassian.confluence.labels.actions.AbstractLabelDisplayingAction com.atlassian.confluence.labels.actions.ViewLabelAction
Action for viewing a label. The label can be specified by either using the labels name or the labels id, but not both.
Field Summary | |
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
|
Fields inherited from class com.atlassian.confluence.labels.actions.AbstractLabelDisplayingAction |
MAX_LABELS, space |
Fields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport |
CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, log, permissionManager, permitted, PREVIEW, settingsManager, spacePermissionManager, userAccessor, webInterfaceManager |
Fields inherited from class com.opensymphony.xwork.ActionSupport |
LOG |
Fields inherited from interface com.opensymphony.xwork.Action |
ERROR, INPUT, LOGIN, NONE, SUCCESS |
Constructor Summary | |
ViewLabelAction()
|
Method Summary | |
String |
doDefault()
Default webwork action execution method. |
String |
execute()
|
List |
getContent()
|
long |
getId()
Getter for the id property |
Label |
getLabel()
|
String |
getName()
Getter for the name property |
List |
getOtherLabels(ContentEntityObject content)
Returns the first nine global labels on the given content that are not this.label. |
PaginationSupport |
getPaginationSupport()
|
List |
getPreloadedPage()
|
List |
getRelated()
|
List |
getSpacesForLabelledContent()
|
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 |
setId(long id)
Setter for the id property |
void |
setName(String name)
Setter for the name property |
void |
setStartIndex(int startIndex)
|
void |
validate()
|
Methods inherited from class com.atlassian.confluence.labels.actions.AbstractLabelDisplayingAction |
getPopularLabels, getRecentLabels, getSpace, isSpaceRequired, setSpace |
Methods inherited from class com.opensymphony.xwork.ActionSupport |
addActionError, addActionMessage, addFieldError, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int ITEMS_PER_PAGE
protected PaginationSupport paginationSupport
public List preloadedPage
Constructor Detail |
public ViewLabelAction()
Method Detail |
public void setId(long id)
id
- public long getId()
public void setName(String name)
name
- public String getName()
public Label getLabel()
public List getContent()
public List getRelated()
public PaginationSupport getPaginationSupport()
public void setStartIndex(int startIndex)
public void validate()
public String execute() throws Exception
Exception
public String doDefault() throws Exception
ConfluenceActionSupport
doDefault
in class ConfluenceActionSupport
Exception
- if something goes wrongpublic boolean isViewPermissionRequired()
isViewPermissionRequired
in interface SpaceAware
isViewPermissionRequired
in class AbstractLabelDisplayingAction
public List getSpacesForLabelledContent()
public List getOtherLabels(ContentEntityObject content)
content
- the content to get labels forpublic List getPreloadedPage()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |