Package org.apache.stanbol.entityhub.servicesapi.site

Examples of org.apache.stanbol.entityhub.servicesapi.site.ManagedSiteException


    @Override
    public QueryResultList<String> findReferences(FieldQuery query) throws ManagedSiteException {
        try {
            return getYard().findReferences(query);
        } catch (YardException e) {
            throw new ManagedSiteException(e.getMessage(), e);
        }
    }
View Full Code Here


    @Override
    public QueryResultList<Representation> find(FieldQuery query) throws ManagedSiteException {
        try {
            return getYard().find(query);
        } catch (YardException e) {
            throw new ManagedSiteException(e.getMessage(), e);
        }
    }
View Full Code Here

    public QueryResultList<Entity> findEntities(FieldQuery query) throws ManagedSiteException {
        QueryResultList<Representation> results;
        try {
            results = getYard().findRepresentation(query);
        } catch (YardException e) {
            throw new ManagedSiteException(e.getMessage(), e);
        }
        return new QueryResultListImpl<Entity>(results.getQuery(),
                new AdaptingIterator<Representation,Entity>(
                        results.iterator(),
                        new AdaptingIterator.Adapter<Representation,Entity>() {
View Full Code Here

    public Entity getEntity(String id) throws ManagedSiteException {
        Representation rep;
        try {
            rep = getYard().getRepresentation(id);
        } catch (YardException e) {
            throw new ManagedSiteException(e.getMessage(), e);
        }
        if(rep != null){
            Entity entity = new EntityImpl(config.getId(), rep, null);
            SiteUtils.initEntityMetadata(entity, siteMetadata, null);
            return entity;
View Full Code Here

        try {
            Yard yard = getYard();
            fieldMapper.applyMappings(representation, representation, yard.getValueFactory());
            yard.store(representation);
        catch (YardException e) {
            throw new ManagedSiteException(e.getMessage(), e);
        }
       
    }
View Full Code Here

                        public void remove() { it.remove(); }
                    };
                }
            });
        catch (YardException e) {
            throw new ManagedSiteException(e.getMessage(), e);
        }
    }
View Full Code Here

    @Override
    public void delete(String id) throws ManagedSiteException {
        try {
            getYard().remove(id);
        catch (YardException e) {
            throw new ManagedSiteException(e.getMessage(), e);
        }
    }
View Full Code Here

    @Override
    public void deleteAll() throws ManagedSiteException {
        try {
            getYard().removeAll();
        catch (YardException e) {
            throw new ManagedSiteException(e.getMessage(), e);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.stanbol.entityhub.servicesapi.site.ManagedSiteException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.