java.lang.Object | ||
↳ | com.opensymphony.xwork.ActionSupport | |
↳ | com.atlassian.confluence.core.ConfluenceActionSupport |
Base class for all Confluence webwork actions. Mainly takes care of managing permissions, and a few other tasks that are common across all actions in the app.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | CANCEL | ||||||||||
String | DEVMODE | ||||||||||
String | LICENSE_EXPIRED | ||||||||||
String | LICENSE_USERS_EXCEEDED | ||||||||||
String | PREVIEW |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.opensymphony.xwork.Action
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
eventManager | |||||||||||
i18NBeanFactory | |||||||||||
labelManager | |||||||||||
languageManager | |||||||||||
log | This field is deprecated. since 2.6.1 create a private static logger in your action class | ||||||||||
permissionManager | |||||||||||
permitted | |||||||||||
pluginAccessor | |||||||||||
settingsManager | |||||||||||
spacePermissionManager | |||||||||||
userAccessor | |||||||||||
webInterfaceManager |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.opensymphony.xwork.ActionSupport
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds an error to the current action which will be displayed to the user.
| |||||||||||
Adds an error to the current action which will be displayed next to the specified field.
| |||||||||||
Default webwork action execution method.
| |||||||||||
Returns the internationalised name of the current action.
| |||||||||||
Creates a version specific documentation link for the provided page.
| |||||||||||
This method is deprecated.
since 2.9. Random number generation does not belong here. Please introduce your own random number generation in your own actions.
| |||||||||||
Return the user from
getRequest() , or if that is not found,
the user returned from getUser() . | |||||||||||
This can be used for internationalisation where a non-internationalised default string exists. | |||||||||||
Returns a context which can be passed to web items when rendering them.
| |||||||||||
Has this action been cancelled? Used by
CancellingInterceptor to determine if the action should be executed. | |||||||||||
Returns true if the system property confluence.devmode is set and has the value "true".
| |||||||||||
Temporary method until we have plugin points to require i18n keys.
| |||||||||||
Placing this method in ConfluenceActionSupport is a bit of a hack, but it is suprisingly difficult to
have a generic piece of logic that can be used in decorators.
| |||||||||||
Set by the "cancel" button on forms.
| |||||||||||
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.opensymphony.xwork.ActionSupport
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.confluence.plugin.descriptor.web.WebInterface
| |||||||||||
From interface
com.opensymphony.xwork.Action
| |||||||||||
From interface
com.opensymphony.xwork.LocaleProvider
| |||||||||||
From interface
com.opensymphony.xwork.TextProvider
| |||||||||||
From interface
com.opensymphony.xwork.Validateable
| |||||||||||
From interface
com.opensymphony.xwork.ValidationAware
|
This field is deprecated.
since 2.6.1 create a private static logger in your action class
Adds an error to the current action which will be displayed to the user. HTML-escapes any String arguments to avoid cross-site scripting problems with user input.
textKey | key to internationalised text |
---|---|
args | args to be merged with text via standard MessageFormat rules |
Adds an error to the current action which will be displayed next to the specified field. HTML-escapes any String arguments to avoid cross-site scripting problems with user input.
fieldName | field to apply error to |
---|---|
textKey | key to internationalised text |
args | args to be merged with text via standard MessageFormat rules |
Default webwork action execution method.
Exception | if something goes wrong |
---|
Creates a version specific documentation link for the provided page. This method exists because some error messages include links. Otherwise use $docBean which is available on the velocity context.
page | the page to link to (just the title) |
---|
This method is deprecated.
since 2.9. Random number generation does not belong here. Please introduce your own random number generation in your own actions.
Return the user from getRequest()
, or if that is not found,
the user returned from getUser()
.
This can be used for internationalisation where a non-internationalised default string exists. If the key is null or returns a null value, then the default will be used instead.
Note the HtmlSafe annotation on this method. Ensure that you handle the defaultValue appropriately for display.
Returns a context which can be passed to web items when rendering them.
Typically, WebWork actions will implement this to provide extra details in the context such as content objects, and so on.Has this action been cancelled? Used by CancellingInterceptor
to determine if the action should be executed.
Returns true if the system property confluence.devmode is set and has the value "true".
Temporary method until we have plugin points to require i18n keys. CONF-15428
Placing this method in ConfluenceActionSupport is a bit of a hack, but it is suprisingly difficult to have a generic piece of logic that can be used in decorators.
Set by the "cancel" button on forms. This tells the CancellingInterceptor
that an action should
not be executed, and should just return its getCancelResult()
result.
cancel | Any non-null, non-empty string value. |
---|