Package org.openxri.store

Examples of org.openxri.store.Store


  @Override
  public Object load() {

    List<Authority> list;

    Store openXRIStore = ((OpenXRIAdminApplication) Application.get()).getOpenXRIStore();

    list = new ArrayList<Authority> ();

    // list all authorities
View Full Code Here


  @Override
  public Object load() {

    List<SubSegment> list;

    Store openXRIStore = ((OpenXRIAdminApplication) Application.get()).getOpenXRIStore();

    list = new ArrayList<SubSegment> ();

    // add all subsegments to the model

    log.debug("Listing all root subsegments.");

    try {

      SubSegment[] rootSubSegments = openXRIStore.listRootSubSegments();

      for (SubSegment rootSubSegment : rootSubSegments) {

        list.add(rootSubSegment);
      }
View Full Code Here

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

    // load store with sample data

    Store store = (Store) this.serverConfig.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

  }

  @Override
  public void onBeforeRender() {

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

    try {

      this.authorityId = this.authority.getId();
      this.subSegments = Arrays.asList(((StoreBetterLookup) openXRIStore).getAuthoritySubSegments(this.authority));
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 onBeforeRender() {

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

      // get information from 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 onBeforeRender() {

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

      // get information from 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 onBeforeRender() {

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

      // get information from the store

      try {
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.