Class ActionInfo
java.lang.Object
com.google.gerrit.extensions.common.ActionInfo
Representation of an action in the REST API.
This class determines the JSON format of actions in the REST API.
An action describes a REST API call the client can make to manipulate a resource. These are frequently implemented by plugins and may be discovered at runtime.
-
Field Summary
Modifier and TypeFieldDescriptionIftrue
the action is permitted at this time and the caller is likely allowed to execute it.Optional list of enabled options.Short title to display to a user describing the action.HTTP method to use with the action.Longer text to display describing the action. -
Constructor Summary
-
Method Summary
-
Field Details
-
method
HTTP method to use with the action. Most actions usePOST
,PUT
orDELETE
to cause state changes. -
label
Short title to display to a user describing the action. In the Gerrit web interface the label is used as the text on the button that is presented in the UI. -
title
Longer text to display describing the action. In a web UI this should be the title attribute of the element, displaying when the user hovers the mouse. -
enabled
Iftrue
the action is permitted at this time and the caller is likely allowed to execute it. This may change if state is updated at the server or permissions are modified. -
enabledOptions
Optional list of enabled options.For the
rebase
REST view the following options are supported:rebase
: Present if the user can rebase the change. This is the case for the change owner and users with theSubmit
orRebase
permission if they have thePush
permission.rebase_on_behalf_of
: Present if the user can rebase the change on behalf of the uploader. This is the case for the change owner and users with theSubmit
orRebase
permission.
For all other REST views no options are returned.
-
-
Constructor Details
-
ActionInfo
-
ActionInfo
protected ActionInfo()
-
-
Method Details