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 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 onSubmit() {

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

      // delete the subsegment

      try {

        openXRIStore.releaseSubSegment(SubSegmentDetails.this.subSegment);
      } catch (StoreException ex) {

        SubSegmentDetails.log.error(ex);
        SubSegmentDetails.this.error(SubSegmentDetails.this._storefail + ex.getLocalizedMessage());
      }
View Full Code Here

    }

    @Override
    protected void onSubmit() {

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

      SubSegment subSegment;
     
      try {

        subSegment = openXRIStore.registerSubsegment(
            this.parentAuthority,
            this.name,
            this.authority);
      } catch (StoreException ex) {
View Full Code Here

  public SubSegmentImageResource(SubSegment subSegment) throws StoreException {

    super(IMAGE_WIDTH, IMAGE_HEIGHT, "png");

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

    this.subSegment = subSegment;
    this.parentAuthority = openXRIStore.getSubSegmentParentAuthority(subSegment);
    this.authority = openXRIStore.getSubSegmentAuthority(subSegment);
  }
View Full Code Here

  public AuthorityImageResource(Authority authority) throws StoreException {

    super(IMAGE_WIDTH, IMAGE_HEIGHT, "png");

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

    if (authority.getXrd().getCanonicalID() != null)
      this.authorityText = authority.getXrd().getCanonicalID().getValue();
    else
      this.authorityText = authority.getId().toString();

    SubSegment[] subSegments = ((StoreBetterLookup) openXRIStore).getAuthoritySubSegments(authority);
    SubSegment[] childSubSegments = ((StoreBetterLookup) openXRIStore).getAuthorityChildSubSegments(authority);

    this.parentAuthorities = new HashMap<String, List<String>> ();
    for (SubSegment subSegment : subSegments) {

      Authority parentAuthority = openXRIStore.getSubSegmentParentAuthority(subSegment);

      String authorityText;
      if (parentAuthority == null || parentAuthority.getXrd() == null)
        authorityText = "-";
      else if (parentAuthority.getXrd().getCanonicalID() != null)
        authorityText = parentAuthority.getXrd().getCanonicalID().getValue();
      else
        authorityText = parentAuthority.getId().toString();

      List<String> subSegmentNames = this.parentAuthorities.get(authorityText);
      if (subSegmentNames == null) {

        subSegmentNames = new ArrayList<String> ();
        this.parentAuthorities.put(authorityText, subSegmentNames);
      }
      subSegmentNames.add(subSegment.getName());
    }

    this.childAuthorities = new HashMap<String, List<String>> ();
    for (SubSegment childSubSegment : childSubSegments) {

      Authority childAuthority = openXRIStore.getSubSegmentAuthority(childSubSegment);

      String authorityText;
      if (childAuthority == null || childAuthority.getXrd() == null)
        authorityText = "-";
      else if (childAuthority.getXrd().getCanonicalID() != null)
View Full Code Here

  public SubSegmentImageResource(SubSegment subSegment) throws StoreException {

    super(IMAGE_WIDTH, IMAGE_HEIGHT, "png");

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

    this.name = subSegment.getName();
    this.parentAuthorityNull = openXRIStore.getSubSegmentParentAuthority(subSegment) == null;
    this.authorityNull = openXRIStore.getSubSegmentAuthority(subSegment) == null;
  }
View Full Code Here

  public AuthorityImageResource(Authority authority) throws StoreException {

    super(IMAGE_WIDTH, IMAGE_HEIGHT, "png");

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

    SubSegment[] subSegments = ((StoreBetterLookup) openXRIStore).getAuthoritySubSegments(authority);
    SubSegment[] childSubSegments = ((StoreBetterLookup) openXRIStore).getAuthorityChildSubSegments(authority);

    this.subSegmentNames = new String[subSegments.length];
View Full Code Here

    }

    @Override
    protected void onSubmit() {

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

      // find the authority

      Authority authority;
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.