Package org.openxri.store

Examples of org.openxri.store.SubSegment


          break;
        }

        // using the parent authority and subsegment name, find the authority we are describing now

        SubSegment subSegment = moStore.findSubSegment(parent, subSegmentName);
        if (subSegment == null) {

          soLog.warn("Cannot find subsegment: " + subSegmentName);
          return(null);
        }
View Full Code Here


      final Store openXRIStore = ((OpenXRIAdminApplication) this.getApplication()).getOpenXRIStore();
      final Resolver resolver = ((OpenXRIAdminApplication) this.getApplication()).getResolver();

      try {

        SubSegment rootSubSegment = openXRIStore.createRootSubSegment(this.namespace, new XRD());

        CanonicalID canonicalID;
        Authority authority;

        try {
View Full Code Here

    try {

      if (store instanceof StoreResettable) ((StoreResettable) store).resetStore();

      SubSegment rootSubSegment1 = store.createRootSubSegment("=example", new XRD());
      Authority rootAuthority1 = store.getSubSegmentAuthority(rootSubSegment1);
      SubSegment subSegment1 = store.registerSubsegment(rootAuthority1, "*name1", makeSampleXRD());
      SubSegment subSegment2 = store.registerSubsegment(rootAuthority1, "*name2", makeSampleXRD());

      SubSegment rootSubSegment2 = store.createRootSubSegment("@example", new XRD());
      Authority rootAuthority2 = store.getSubSegmentAuthority(rootSubSegment2);
      SubSegment subSegment3 = store.registerSubsegment(rootAuthority2, "*name3", makeSampleXRD());
      Authority authority3 = store.getSubSegmentAuthority(subSegment3);
      SubSegment subSegment4 = store.registerSubsegment(authority3, "*name4", makeSampleXRD());

    } catch (StoreException ex) {

      ex.printStackTrace();
    }
View Full Code Here

          break;
        }

        // using the parent authority and subsegment name, find the authority we are describing now

        SubSegment subSegment;
       
        try {

          subSegment = moStore.findSubSegment(parent, subSegmentName);
          if (subSegment == null) throw new StoreNotFoundException("Null value returned.");
View Full Code Here

      private static final long serialVersionUID = 8793019471745319174L;

      @Override
      protected void populateItem(ListItem item) {

        final SubSegment subSegment = (SubSegment) item.getModelObject();

        PageLink link = new PageLink("link", new IPageLink() {

          private static final long serialVersionUID = 4182879013901656829L;

          public Page getPage() {

            return(new SubSegmentDetails(subSegment));
          }

          public Class<?> getPageIdentity() {

            return(SubSegmentDetails.class);
          }
        });
        link.add(new Label("name", subSegment.getName()));
        item.add(link);
      }
    });
    this.childSubSegmentsContainer.add(new ListView("childSubSegments") {

      private static final long serialVersionUID = 1273612869821409740L;

      @Override
      protected void populateItem(ListItem item) {

        final SubSegment subSegment = (SubSegment) item.getModelObject();

        PageLink link = new PageLink("link", new IPageLink() {

          private static final long serialVersionUID = -1232152334705755201L;

          public Page getPage() {

            return(new SubSegmentDetails(subSegment));
          }

          public Class<?> getPageIdentity() {

            return(SubSegmentDetails.class);
          }
        });
        link.add(new Label("name", subSegment.getName()));
        item.add(link);
      }
    });
    this.add(this.subSegmentsContainer);
    this.add(this.childSubSegmentsContainer);
View Full Code Here

        // using the parent authority and subsegment name, find the subsegment and the authority we are describing now
        // we must be prepared to have null values here, since not all pipeline configurations
        // may use objects from the store

        SubSegment subSegment = null;
        Authority authority = null;

        if (parentAuthority != null) subSegment = this.store.findSubSegment(parentAuthority, subSegmentName);
        if (subSegment != null) authority = this.store.getSubSegmentAuthority(subSegment);
View Full Code Here

    if (! subSegmentDir.exists()) {

      throw new StoreException(StoreException.KEY_NOTFOUND, "Subsegment does not exist.");
    }

    SubSegment subSegment = new FileSubSegment(subSegmentDir);

    // done

    return(subSegment);
  }
View Full Code Here

    @Override
    protected void onSubmit() {

      final Store openXRIStore = ((OpenXRIAdminApplication) this.getApplication()).getOpenXRIStore();

      SubSegment subSegment;
      Authority authority;
     
      try {

        XRD xrd = new XRD();
View Full Code Here

    if (! subSegmentDir.exists()) {

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

    SubSegment subSegment = new FileSubSegment(subSegmentDir);

    // done

    return(subSegment);
  }
View Full Code Here

    @Override
    protected void onSubmit() {

      final Store openXRIStore = ((OpenXRIAdminApplication) this.getApplication()).getOpenXRIStore();

      SubSegment subSegment;
     
      try {

        subSegment = openXRIStore.registerSubsegment(
            this.parentAuthority,
View Full Code Here

TOP

Related Classes of org.openxri.store.SubSegment

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.