Package org.openxri.exceptions

Examples of org.openxri.exceptions.StoreNotFoundException


    log.trace("setXrd()");

    // check authority

    if (authority == null) throw new NullPointerException();
    if (! (authority instanceof DbAuthority)) throw new StoreNotFoundException("Authority is not from this store.");

    // start database session

    Session session = this.getSessionFactory().getCurrentSession();
View Full Code Here


    while (path != null && path.startsWith("/")) path = path.substring(1);

    // check authority

    if (authority == null) throw new NullPointerException();
    if (! (authority instanceof DbAuthority)) throw new StoreNotFoundException("Authority is not from this store.");

    // start database session

    Session session = this.getSessionFactory().getCurrentSession();
View Full Code Here

    log.trace("getAuthorityPath()");

    // check authority

    if (authority == null) throw new NullPointerException();
    if (! (authority instanceof DbAuthority)) throw new StoreNotFoundException("Authority is not from this store.");

    // get path from authority

    String path = ((DbAuthority) authority).getPath();
View Full Code Here

      rootSubSegment = DbSubSegment.RootByName(session, name);

      if (rootSubSegment == null) {

        throw new StoreNotFoundException("Root subsegment does not exist.");
      }

      session.delete(rootSubSegment);
      session.flush();
      session.getTransaction().commit();
View Full Code Here

    log.trace("deleteAuthority()");

    // check authority

    if (authority == null) throw new NullPointerException();
    if (! (authority instanceof DbAuthority)) throw new StoreNotFoundException("Authority is not from this store.");

    // start database session

    Session session = this.getSessionFactory().getCurrentSession();
View Full Code Here

    log.trace("registerSubsegment(" + subSegmentName + ")");

    // check parent authority

    if (parentAuthority == null) throw new NullPointerException();
    if (! (parentAuthority instanceof DbAuthority)) throw new StoreNotFoundException("Parent authority is not from this store.");

    // check if the parent authority overrides the CREATE pipeline. if not, use the default.

    ServerConfig serverConfig = ServerConfigFactory.getSingleton();
    PipelineRegistry pipelineRegistry = (serverConfig == null) ? null : serverConfig.getPipelineRegistry();
View Full Code Here

    log.trace("registerSubsegment(" + subSegmentName + ")");

    // check authority and parent authority

    if (parentAuthority != null && (! (parentAuthority instanceof DbAuthority))) throw new StoreNotFoundException("Parent authority is not from this store.");
    if (authority != null && (! (authority instanceof DbAuthority))) throw new StoreNotFoundException("Authority is not from this store.");

    // start database session

    Session session = this.getSessionFactory().getCurrentSession();
View Full Code Here

    log.trace("releaseSubsegment()");

    // check subsegment

    if (subSegment == null) throw new NullPointerException();
    if (! (subSegment instanceof DbSubSegment)) throw new StoreNotFoundException("Subsegment is not from this store.");

    // start database session

    Session session = this.getSessionFactory().getCurrentSession();
View Full Code Here

    log.trace("findSubSegment()");

    // check parent authority

    if (parentAuthority == null) throw new NullPointerException();
    if (! (parentAuthority instanceof DbAuthority)) throw new StoreNotFoundException("Parent authority is not from this store.");

    // start database session

    Session session = this.getSessionFactory().getCurrentSession();
View Full Code Here

    log.trace("getSubSegmentParentAuthority()");

    // check subsegment

    if (subSegment == null) throw new NullPointerException();
    if (! (subSegment instanceof DbSubSegment)) throw new StoreNotFoundException("Subsegment is not from this store.");

    // start database session

    Session session = this.getSessionFactory().getCurrentSession();
View Full Code Here

TOP

Related Classes of org.openxri.exceptions.StoreNotFoundException

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.