Package org.nuxeo.ecm.platform.actions
Class Action
- java.lang.Object
- 
- org.nuxeo.ecm.platform.actions.Action
 
- 
- All Implemented Interfaces:
- Serializable,- Cloneable,- Comparable<Action>
 
 public class Action extends Object implements Serializable, Cloneable, Comparable<Action> Descriptor for action.- Author:
- Bogdan Stefanescu
- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected StringaccessKeyprotected booleanavailableprotected String[]categoriesprotected Stringconfirmstatic String[]EMPTY_CATEGORIESprotected Booleanenabledprotected booleanfilteredprotected List<String>filterIdsprotected ActionFilter[]filtersprotected Stringhelpprotected Stringiconprotected Stringidprotected Booleanimmediateprotected Stringlabelprotected Stringlinkprotected Map<String,Serializable>localPropertiesExtra set of properties to be used by API, when creating actions on the fly without contributions to the service.protected intorderAttribute that provides a hint for action ordering.protected ActionPropertiesDescriptorpropertiesprotected Map<String,Serializable>propertiesCacheprotected Stringtype
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Actionclone()intcompareTo(Action anotherAction)booleanequals(Object other)StringgetAccessKey()booleangetAvailable()String[]getCategories()List<String>getCategoryList()Returns the categories as a list.StringgetConfirm()Returns the confirm javascript for this element.List<String>getFilterIds()ActionFilter[]getFilters()StringgetHelp()StringgetIcon()StringgetId()StringgetLabel()StringgetLink()Returns the link for this action.intgetOrder()Returns the action order.Map<String,Serializable>getProperties()Returns an aggregate oflocalPropertiesandpropertiesset via descriptors.ActionPropertiesDescriptorgetPropertiesDescriptor()protected StringgetStringProperty(String prop)StringgetType()inthashCode()booleanisEnabled()booleanisEnableSet()Returns true if the enabled element was set on the descriptor, useful for merging.booleanisFiltered()booleanisImmediate()voidsetAccessKey(String accessKey)voidsetAvailable(boolean available)voidsetCategories(String[] categories)voidsetConfirm(String confirm)voidsetEnabled(boolean enabled)voidsetFiltered(boolean filtered)voidsetFilterIds(List<String> filterIds)voidsetFilters(ActionFilter[] filters)voidsetHelp(String title)voidsetIcon(String icon)voidsetImmediate(boolean immediate)voidsetLabel(String label)voidsetLink(String link)voidsetOrder(int order)Sets the order of the action.voidsetProperties(Map<String,Serializable> localProperties)Sets local properties programaticallyvoidsetPropertiesDescriptor(ActionPropertiesDescriptor properties)voidsetType(String type)StringtoString()
 
- 
- 
- 
Field Detail- 
EMPTY_CATEGORIESpublic static final String[] EMPTY_CATEGORIES 
 - 
propertiesprotected ActionPropertiesDescriptor properties - Since:
- 5.6
 
 - 
localPropertiesprotected Map<String,Serializable> localProperties Extra set of properties to be used by API, when creating actions on the fly without contributions to the service.- Since:
- 5.6
 
 - 
propertiesCacheprotected Map<String,Serializable> propertiesCache - Since:
- 5.6
 
 - 
availableprotected boolean available 
 - 
filteredprotected boolean filtered - Since:
- 8.2
 
 - 
orderprotected int order Attribute that provides a hint for action ordering.:XXX: Action ordering remains a problem. We will continue to use the existing strategy of, by default, ordering actions by specificity of registration and order of definition. 
 - 
categoriesprotected String[] categories 
 - 
filtersprotected ActionFilter[] filters 
 
- 
 - 
Method Detail- 
isEnableSetpublic boolean isEnableSet() Returns true if the enabled element was set on the descriptor, useful for merging.- Since:
- 5.8
 
 - 
isEnabledpublic boolean isEnabled() 
 - 
setEnabledpublic void setEnabled(boolean enabled) 
 - 
getStringPropertyprotected String getStringProperty(String prop) 
 - 
getLinkpublic String getLink() Returns the link for this action.Since 5.7.3, fallbacks on properties when link is not set and retrieve it using key "link". 
 - 
getCategoriespublic String[] getCategories() 
 - 
getCategoryListpublic List<String> getCategoryList() Returns the categories as a list.- Since:
- 7.2
 
 - 
getOrderpublic int getOrder() Returns the action order.- Returns:
- the action order as an integer value
 
 - 
setOrderpublic void setOrder(int order) Sets the order of the action.- Parameters:
- order- order of the action
 
 - 
compareTopublic int compareTo(Action anotherAction) - Specified by:
- compareToin interface- Comparable<Action>
 
 - 
getFilterIdspublic List<String> getFilterIds() 
 - 
setFilterIdspublic void setFilterIds(List<String> filterIds) 
 - 
getFilterspublic ActionFilter[] getFilters() 
 - 
setFilterspublic void setFilters(ActionFilter[] filters) 
 - 
setCategoriespublic void setCategories(String[] categories) 
 - 
getConfirmpublic String getConfirm() Returns the confirm javascript for this element.Since 5.7.3, fallbacks on properties when link is not set and retrieve it using key "confirm". 
 - 
setConfirmpublic void setConfirm(String confirm) 
 - 
getAvailablepublic boolean getAvailable() 
 - 
setAvailablepublic void setAvailable(boolean available) 
 - 
isFilteredpublic boolean isFiltered() - Since:
- 8.2
 
 - 
setFilteredpublic void setFiltered(boolean filtered) - Since:
- 8.2
 
 - 
isImmediatepublic boolean isImmediate() 
 - 
setImmediatepublic void setImmediate(boolean immediate) 
 - 
getPropertiesDescriptorpublic ActionPropertiesDescriptor getPropertiesDescriptor() - Since:
- 5.6
 
 - 
setPropertiesDescriptorpublic void setPropertiesDescriptor(ActionPropertiesDescriptor properties) - Since:
- 5.6
 
 - 
setPropertiespublic void setProperties(Map<String,Serializable> localProperties) Sets local properties programatically- Since:
- 5.6
 
 - 
getPropertiespublic Map<String,Serializable> getProperties() Returns an aggregate oflocalPropertiesandpropertiesset via descriptors.- Since:
- 5.6
 
 - 
setAccessKeypublic void setAccessKey(String accessKey) - Since:
- 5.6
 
 - 
getAccessKeypublic String getAccessKey() - Since:
- 5.6
 
 
- 
 
-