public abstract class Suggestion extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
DATE_FORMAT_PATTERN |
Constructor and Description |
---|
Suggestion(String id,
String type,
String label,
String iconURL) |
Modifier and Type | Method and Description |
---|---|
Suggestion |
disable() |
String |
getDescription() |
String |
getIconURL()
Relative URL path to download an icon (can represent the type of suggestion or the specific instance such as the
mimetype icon of a document suggestion or the avatar icon of a user profile suggestion).
|
String |
getId()
The id of the object associated to the suggestion.
|
boolean |
getIsDisabled()
Disabled suggestions can be useful to display suggestions that might have been relevant if the context was
slightly different (e.g.
|
String |
getLabel()
The i18n label to display to the user for this suggestion.
|
abstract String |
getObjectUrl() |
String |
getType()
A string marker to give the type (i.e.
|
String |
toString() |
Suggestion |
withDescription(String description) |
public static final String DATE_FORMAT_PATTERN
public String getId()
public String getType()
public String getLabel()
public String getIconURL()
public String getDescription()
public Suggestion withDescription(String description)
public boolean getIsDisabled()
public Suggestion disable()
public abstract String getObjectUrl()
Copyright © 2015 Nuxeo SA. All rights reserved.