org.apache.stanbol.entityhub.servicesapi.site
Interface ManagedSite

All Superinterfaces:
Site

public interface ManagedSite
extends Site

Extends ReferencedSite by create/update/delete functionalities

Author:
Rupert Westenthaler

Field Summary
 
Fields inherited from interface org.apache.stanbol.entityhub.servicesapi.site.Site
PROHIBITED_SITE_IDS
 
Method Summary
 void delete(String id)
          Deletes the Entity with the parsed id.
 void deleteAll()
          Deletes all Entities and their Mappings from the Entityhub.
 void store(Iterable<Representation> representation)
          Stores (create or updates) the parsed representations.
 void store(Representation representation)
          Stores (create or updates) the parsed representation.
 
Methods inherited from interface org.apache.stanbol.entityhub.servicesapi.site.Site
find, findEntities, findReferences, getConfiguration, getContent, getEntity, getFieldMapper, getId, getQueryFactory, supportsLocalMode, supportsSearch
 

Method Detail

store

void store(Representation representation)
           throws ManagedSiteException
Stores (create or updates) the parsed representation.

Parameters:
representation - the representation to be stored/updated
Throws:
ManagedSiteException - On any error while performing the operation
IllegalArgumentException - if null is parsed as Representation.

store

void store(Iterable<Representation> representation)
           throws ManagedSiteException
Stores (create or updates) the parsed representations.

Parameters:
representation - the representation to be stored/updated
Throws:
ManagedSiteException - On any error while performing the operation
IllegalArgumentException - if null is parsed

delete

void delete(String id)
            throws ManagedSiteException
Deletes the Entity with the parsed id. This will delete the entity and all its information including metadata and mappings to other entities form the Entityhub. To mark the Entity as removed use #setState(String, ManagedEntityState) with ManagedEntityState.removed as second parameter.

Parameters:
id - The id of the Entity to delete
Throws:
EntityhubException - On any error while performing the operation
IllegalArgumentException - if null or an empty String is parsed as id
ManagedSiteException

deleteAll

void deleteAll()
               throws ManagedSiteException
Deletes all Entities and their Mappings from the Entityhub.

Throws:
EntityhubException - On any error while performing the operation
ManagedSiteException


Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.