Examples of StoreNotFoundException


Examples of org.openxri.exceptions.StoreNotFoundException

    log.trace("setAuthorityIndex(" + indx + ")");

    // 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

Examples of org.openxri.exceptions.StoreNotFoundException

    log.trace("getAuthorityIndex()");

    // check authority

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

    // get index from authority

    String indx = ((DbAuthority) authority).getIndx();
View Full Code Here

Examples of org.openxri.exceptions.StoreNotFoundException

    log.trace("setSubSegmentAttributes()");

    // 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

Examples of org.openxri.exceptions.StoreNotFoundException

    log.trace("getSubSegmentAttributes()");

    // check subsegment

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

    // get attributes from subsegment

    Map<String, String> attributes = ((DbSubSegment)subSegment).getAttributes();
View Full Code Here

Examples of org.openxri.exceptions.StoreNotFoundException

    log.trace("setSubSegmentIndex(" + indx + ")");

    // 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

Examples of org.openxri.exceptions.StoreNotFoundException

    log.trace("getSubSegmentIndex()");

    // check subsegment

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

    // get index from subsegment

    String indx = ((DbSubSegment) subSegment).getIndx();
View Full Code Here

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

Examples of org.openxri.exceptions.StoreNotFoundException

    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

Examples of org.openxri.exceptions.StoreNotFoundException

    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

Examples of org.openxri.exceptions.StoreNotFoundException

        XRI xri = new XRI(this.xri);
        XRIAuthority xriAuthority = ((XRIAuthority) xri.getAuthorityPath());

        authority = ((StoreBetterLookup) openXRIStore).localLookup(xriAuthority);

        if (authority == null) throw new StoreNotFoundException();
      } catch (StoreNotFoundException ex) {

        BasePage.log.error(ex);
        BasePage.this.error(BasePage.this.getString("notfound") + ex.getLocalizedMessage());
        return;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.