Class DocumentSuggestion
- java.lang.Object
-
- org.nuxeo.ecm.platform.suggestbox.service.Suggestion
-
- org.nuxeo.ecm.platform.suggestbox.service.DocumentSuggestion
-
- All Implemented Interfaces:
Serializable
public class DocumentSuggestion extends Suggestion
Suggest to navigate to a specific document.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected DocumentLocation
documentLocation
-
Fields inherited from class org.nuxeo.ecm.platform.suggestbox.service.Suggestion
DATE_FORMAT_PATTERN, description, disabled, highlights, iconURL, id, label, thumbnailURL, type
-
-
Constructor Summary
Constructors Constructor Description DocumentSuggestion(String id, DocumentLocation documentLocation, String label, String iconURL)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Suggestion
fromDocumentModel(DocumentModel doc)
DocumentLocation
getDocumentLocation()
String
getObjectUrl()
-
Methods inherited from class org.nuxeo.ecm.platform.suggestbox.service.Suggestion
disable, getDescription, getHighlights, getIconURL, getId, getIsDisabled, getLabel, getThumbnailURL, getType, toString, withDescription, withHighlights, withThumbnailURL
-
-
-
-
Field Detail
-
documentLocation
protected final DocumentLocation documentLocation
-
-
Constructor Detail
-
DocumentSuggestion
public DocumentSuggestion(String id, DocumentLocation documentLocation, String label, String iconURL)
-
-
Method Detail
-
fromDocumentModel
public static Suggestion fromDocumentModel(DocumentModel doc)
-
getDocumentLocation
public DocumentLocation getDocumentLocation()
-
getObjectUrl
public String getObjectUrl()
- Specified by:
getObjectUrl
in classSuggestion
- Returns:
- the url to access to the object. It used by the navigation in the select2.
-
-