Package org.xwiki.livedata
Class LiveDataActionDescriptor
- java.lang.Object
-
- org.xwiki.livedata.WithParameters
-
- org.xwiki.livedata.BaseDescriptor
-
- org.xwiki.livedata.LiveDataActionDescriptor
-
public class LiveDataActionDescriptor extends BaseDescriptor
Describes a live data action.- Since:
- 12.10.1, 13.0
- Version:
- $Id: fcd5d8f986f9e380a164a90fd8e7ce08eff8f495 $
-
-
Constructor Summary
Constructors Constructor Description LiveDataActionDescriptor()
Default constructor.LiveDataActionDescriptor(String id)
Creates a new descriptor for the specified action.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAllowProperty()
String
getDescription()
Map<String,Object>
getIcon()
String
getName()
String
getUrlProperty()
void
initialize()
Preventnull
values where it's possible.void
setAllowProperty(String allowProperty)
Sets the live data property to be used to determine if the current user is allowed to perform this action on a given live data entry.void
setDescription(String description)
Sets the action description.void
setIcon(Map<String,Object> icon)
Sets the icon meta data.void
setName(String name)
Sets the action pretty name.void
setUrlProperty(String urlProperty)
Sets the live data property that holds the URL that can be used to perform this action on a given entry.-
Methods inherited from class org.xwiki.livedata.BaseDescriptor
equals, getId, hashCode, setId, toString
-
Methods inherited from class org.xwiki.livedata.WithParameters
getParameters, setParameter
-
-
-
-
Constructor Detail
-
LiveDataActionDescriptor
public LiveDataActionDescriptor()
Default constructor.
-
LiveDataActionDescriptor
public LiveDataActionDescriptor(String id)
Creates a new descriptor for the specified action.- Parameters:
id
- the action id
-
-
Method Detail
-
getName
public String getName()
- Returns:
- the action pretty name
-
setName
public void setName(String name)
Sets the action pretty name.- Parameters:
name
- the new pretty name
-
getDescription
public String getDescription()
- Returns:
- the action description
-
setDescription
public void setDescription(String description)
Sets the action description.- Parameters:
description
- the new action description
-
setIcon
public void setIcon(Map<String,Object> icon)
Sets the icon meta data.- Parameters:
icon
- the new icon meta data
-
getAllowProperty
public String getAllowProperty()
- Returns:
- the live data property used to determine if the current user is allowed to perform this action on a given live data entry
- Since:
- 12.10.4, 13.0
-
setAllowProperty
public void setAllowProperty(String allowProperty)
Sets the live data property to be used to determine if the current user is allowed to perform this action on a given live data entry.- Parameters:
allowProperty
- the live data property used to determine if the current user is allowed to perform this action on a given live data entry- Since:
- 12.10.4, 13.0
-
getUrlProperty
public String getUrlProperty()
- Returns:
- the live data property that holds the URL that can be used to perform this action on a given entry
- Since:
- 12.10.4, 13.0
-
setUrlProperty
public void setUrlProperty(String urlProperty)
Sets the live data property that holds the URL that can be used to perform this action on a given entry.- Parameters:
urlProperty
- the live data property that holds the URL that can be used to perform this action on a given entry- Since:
- 12.10.4, 13.0
-
initialize
public void initialize()
Preventnull
values where it's possible.
-
-