public class StanbolEntityHubSource extends ParameterizedHTTPEntitySource
| Modifier and Type | Field and Description |
|---|---|
static String |
RDF_TYPE |
OWL_THING| Constructor and Description |
|---|
StanbolEntityHubSource() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
dereferenceInto(DocumentModel localEntity,
URI remoteEntity,
boolean override,
boolean lazyResourceFetch)
Dereference a remote entity into an existing document model.
|
Set<String> |
getAdmissibleTypes(URI remoteEntity)
Introspect the referenced entity to suggest which Nuxeo types can be used
to dereference this entity.
|
void |
setDescriptor(RemoteEntitySourceDescriptor descriptor) |
List<EntitySuggestion> |
suggestRemoteEntity(String keywords,
String type,
int maxSuggestions)
Perform query on registered remote entity sources to suggests entity
definitions that match the name given as keywords and the requested
entity type.
|
canDereference, canSuggestRemoteEntity, dereferenceIntoFromModelpublic static final String RDF_TYPE
public void setDescriptor(RemoteEntitySourceDescriptor descriptor)
setDescriptor in class ParameterizedHTTPEntitySourcepublic Set<String> getAdmissibleTypes(URI remoteEntity) throws DereferencingException
RemoteEntitySourceremoteEntity - the URI of the entity to dereferenceDereferencingExceptionpublic boolean dereferenceInto(DocumentModel localEntity, URI remoteEntity, boolean override, boolean lazyResourceFetch) throws DereferencingException
RemoteEntitySourceoverride is set to
true.
It is the responsibility of the method caller to save the updated
document model back to the repository.localEntity - local document model to store a copy of the entity
attributeremoteEntity - the URI of the entity to dereferenceoverride - replace non-empty local fields with values from the
remote entitylazyResourceFetch - if true, delay the fetch of the content of
referenced resources (e.g. JPEG images) to first access.DereferencingExceptionpublic List<EntitySuggestion> suggestRemoteEntity(String keywords, String type, int maxSuggestions) throws IOException
RemoteEntitySourceIOExceptionCopyright © 2012 Nuxeo SA. All Rights Reserved.