Package org.openxri.store

Examples of org.openxri.store.Store


    }

    @Override
    protected void onSubmit() {

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

      // update information in the store

      try {
View Full Code Here


    }

    @Override
    protected void onSubmit() {

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

      // update information in the store

      try {
View Full Code Here

    }

    @Override
    protected void onSubmit() {

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

      // delete the authority

      try {

        openXRIStore.deleteAuthority(AuthorityDetails.this.authority);
      } catch (StoreException ex) {

        AuthorityDetails.log.error(ex);
        AuthorityDetails.this.error(AuthorityDetails.this._storefail + ex.getLocalizedMessage());
        return;
View Full Code Here

    }

    @Override
    protected void onSubmit() {

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

      try {

        openXRIStore.createRootSubSegment(this.namespace, new XRD());
      } catch (StoreException ex) {

        CreateRootNamespace.log.error(ex);
        CreateRootNamespace.this.error(CreateRootNamespace.this._storefail + ex.getLocalizedMessage());
        return;
View Full Code Here

    if (! request.getPathInfo().replace("/", "").equals(LOAD_SAMPLE_DATA_PATH)) return(false);

    // load store with sample data

    Store store = (Store) ServerConfigFactory.getSingleton().getComponentRegistry().getComponent(Store.class);

    try {

      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

TOP

Related Classes of org.openxri.store.Store

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.