Esempio n. 1
0
  /** @return descriptors */
  public Map<String, Object> initDescriptors() {
    ValueFactories factories = this.getExecutionContext().getValueFactories();
    descriptors.put(Repository.SPEC_NAME_DESC, valueFor(factories, JcrI18n.SPEC_NAME_DESC.text()));
    descriptors.put(Repository.SPEC_VERSION_DESC, valueFor(factories, "2.0"));

    if (!descriptors.containsKey(Repository.REP_NAME_DESC)) {
      descriptors.put(
          Repository.REP_NAME_DESC,
          valueFor(factories, JcrRepository.getBundleProperty(Repository.REP_NAME_DESC, true)));
    }
    if (!descriptors.containsKey(Repository.REP_VENDOR_DESC)) {
      descriptors.put(
          Repository.REP_VENDOR_DESC,
          valueFor(factories, JcrRepository.getBundleProperty(Repository.REP_VENDOR_DESC, true)));
    }
    if (!descriptors.containsKey(Repository.REP_VENDOR_URL_DESC)) {
      descriptors.put(
          Repository.REP_VENDOR_URL_DESC,
          valueFor(
              factories, JcrRepository.getBundleProperty(Repository.REP_VENDOR_URL_DESC, true)));
    }
    if (!descriptors.containsKey(Repository.REP_VERSION_DESC)) {
      descriptors.put(Repository.REP_VERSION_DESC, valueFor(factories, getEngineVersion()));
    }
    return descriptors;
  }
Esempio n. 2
0
 /**
  * Get the version of this engine.
  *
  * @return version
  */
 public String getEngineVersion() {
   return JcrRepository.getBundleProperty(Repository.REP_VERSION_DESC, true);
 }