public class EntitySuggestion extends Object implements Comparable<EntitySuggestion>, Serializable
| Modifier and Type | Field and Description |
|---|---|
Set<String> |
alternativeNames |
static String |
ALTNAMES_PROPERTY |
boolean |
automaticallyCreated |
DocumentModel |
entity |
String |
label |
Set<String> |
remoteEntityUris |
static String |
SAMEAS_LABEL_PROPERTY |
static String |
SAMEAS_URI_PROPERTY |
double |
score |
String |
type |
| Constructor and Description |
|---|
EntitySuggestion(DocumentModel entity) |
EntitySuggestion(String label,
String remoteEntityUri,
String type) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(EntitySuggestion o) |
static List<EntitySuggestion> |
fromDocument(DocumentModel doc)
Static helper to turn a document complex property into a list of
RemoteEntity instances suitable to the UI layer.
|
String |
getLabel() |
String |
getLocalId() |
String |
getRemoteUri() |
String |
getType() |
boolean |
isLocal() |
String |
toString() |
EntitySuggestion |
withAutomaticallyCreated(boolean automaticallyCreated) |
EntitySuggestion |
withScore(double score) |
public static final String SAMEAS_URI_PROPERTY
public static final String SAMEAS_LABEL_PROPERTY
public static final String ALTNAMES_PROPERTY
public String label
public DocumentModel entity
public String type
public double score
public boolean automaticallyCreated
public EntitySuggestion(DocumentModel entity) throws ClientException
ClientExceptionpublic EntitySuggestion withScore(double score)
public EntitySuggestion withAutomaticallyCreated(boolean automaticallyCreated)
public boolean isLocal()
public int compareTo(EntitySuggestion o)
compareTo in interface Comparable<EntitySuggestion>public String getLabel()
public String getType()
public String getLocalId()
public String getRemoteUri()
public static List<EntitySuggestion> fromDocument(DocumentModel doc) throws ClientException
ClientExceptionCopyright © 2012 Nuxeo SA. All Rights Reserved.