@Unstable public class LiveDataActionDescriptor extends BaseDescriptor
Constructor and Description |
---|
LiveDataActionDescriptor()
Default constructor.
|
LiveDataActionDescriptor(String id)
Creates a new descriptor for the specified action.
|
Modifier and Type | Method and Description |
---|---|
String |
getAllowProperty() |
String |
getDescription() |
Map<String,Object> |
getIcon() |
String |
getName() |
String |
getUrlProperty() |
void |
initialize()
Prevent
null 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.
|
equals, getId, hashCode, setId
getParameters, setParameter
public LiveDataActionDescriptor()
public LiveDataActionDescriptor(String id)
id
- the action idpublic String getName()
public void setName(String name)
name
- the new pretty namepublic String getDescription()
public void setDescription(String description)
description
- the new action descriptionpublic void setIcon(Map<String,Object> icon)
icon
- the new icon meta datapublic String getAllowProperty()
public void setAllowProperty(String allowProperty)
allowProperty
- the live data property used to determine if the current user is allowed to perform this
action on a given live data entrypublic String getUrlProperty()
public void setUrlProperty(String urlProperty)
urlProperty
- the live data property that holds the URL that can be used to perform this action on a given
entrypublic void initialize()
null
values where it's possible.Copyright © 2004–2022 XWiki. All rights reserved.