public interface SiteManager
| Modifier and Type | Method and Description |
|---|---|
QueryResultList<Representation> |
find(FieldQuery query)
Searches for Entities based on the parsed query and returns representations
including the selected fields and filtered values
|
QueryResultList<Entity> |
findEntities(FieldQuery query)
Returns the Entities that confirm to the parsed Query
|
QueryResultList<String> |
findIds(FieldQuery query)
Searches for Entities based on the parsed query and returns the ids.
|
InputStream |
getContent(String entity,
String contentType)
Getter for the content of the entity
|
Entity |
getEntity(String reference)
Getter for the Entity referenced by the parsed ID.
|
Site |
getSite(String id)
Getter for the referenced site based on the id
|
Collection<String> |
getSiteIds()
Getter for the Id's of all active referenced sites
|
Collection<Site> |
getSitesByEntityPrefix(String entityUri)
Getter for Sites that manages entities with the given ID.
|
boolean |
isReferred(String id)
Returns if a site with the parsed id is referenced
|
boolean isReferred(String id)
baseUri - the base URItrue if a site with the parsed ID is present.
Otherwise false.Site getSite(String id)
baseUri - the base URI of the referred SiteSite or null if no site is
present for the parsed base ID.Collection<Site> getSitesByEntityPrefix(String entityUri)
entityUri - the ID of the entityEntity getEntity(String reference)
id - the id of the entitynull if not foundQueryResultList<Entity> findEntities(FieldQuery query)
query - the queryQueryResultList<Representation> find(FieldQuery query)
query - The queryQueryResultList<String> findIds(FieldQuery query)
query - The queryInputStream getContent(String entity, String contentType)
entity - the id of the entitycontentType - the content typeInputStream or null if no
entity with this ID is known by the Entityhub or no representation for
the requested entity is available for the parsed content typeCollection<String> getSiteIds()
Copyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.