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
EMPTY_CATEGORIES
public static final String[] EMPTY_CATEGORIES
Action
public Action()
Action
public Action(String id,
String[] categories)
isEnabled
public boolean isEnabled()
setEnabled
public void setEnabled(boolean enabled)
getLabel
public String getLabel()
setLabel
public void setLabel(String label)
getIcon
public String getIcon()
setIcon
public void setIcon(String icon)
getLink
public String getLink()
setLink
public void setLink(String link)
getCategories
public String[] getCategories()
getId
public String getId()
toString
public String toString()
- Overrides:
toString
in class Object
getOrder
public int getOrder()
- Returns the action order.
- Returns:
- the action order as an integer value
setOrder
public void setOrder(int order)
- Sets the order of the action.
- Parameters:
order
- order of the action
compareTo
public int compareTo(Action anotherAction)
- Specified by:
compareTo
in interface Comparable<Action>
getFilterIds
public List<String> getFilterIds()
setFilterIds
public void setFilterIds(List<String> filterIds)
getFilters
public ActionFilter[] getFilters()
setFilters
public void setFilters(ActionFilter[] filters)
setCategories
public void setCategories(String[] categories)
getLinkParams
public Class[] getLinkParams()
setLinkParams
public void setLinkParams(Class<?>[] linkParams)
getConfirm
public String getConfirm()
setConfirm
public void setConfirm(String confirm)
equals
public boolean equals(Object other)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
getAvailable
public boolean getAvailable()
setAvailable
public void setAvailable(boolean available)
getHelp
public String getHelp()
setHelp
public void setHelp(String title)
isImmediate
public boolean isImmediate()
setImmediate
public void setImmediate(boolean immediate)
clone
public Action clone()
throws CloneNotSupportedException
- Overrides:
clone
in class Object
- Throws:
CloneNotSupportedException
Copyright © 2011 Nuxeo SAS. All Rights Reserved.