Package org.alfresco.util

Examples of org.alfresco.util.VersionNumber.compareTo()


      for (final String beanName : serviceDefinition.getBeanNames()) {
        final List<String> serviceNames = serviceDefinition.getServiceNames();
        final String requiredPlatformVersion = serviceDefinition.getPlatformVersion();
        if (StringUtils.hasText(requiredPlatformVersion)) {
          final VersionNumber versionNumber = new VersionNumber(requiredPlatformVersion);
          if (descriptor != null && versionNumber.compareTo(descriptor.getVersionNumber()) > 0) {
            if (logger.isDebugEnabled()) {
              logger.debug(
                  "Skipping registration of ServiceDefinitions {} because they require Alfresco version {}",
                  serviceNames, requiredPlatformVersion);
            }
View Full Code Here


      final Map<String, Object> alfrescoVersion = metadata.getAnnotationAttributes(AlfrescoPlatform.class
          .getName());
      final String minVersion = (String) alfrescoVersion.get("minVersion");
      final String maxVersion = (String) alfrescoVersion.get("maxVersion");
      final VersionNumber versionNumber = descriptor.getVersionNumber();
      if (StringUtils.hasText(minVersion) && versionNumber.compareTo(new VersionNumber(minVersion)) < 0) {
        matches = false;
      } else if (StringUtils.hasText(maxVersion) && versionNumber.compareTo(new VersionNumber(maxVersion)) > 0) {
        matches = false;
      }
    }
View Full Code Here

      final String minVersion = (String) alfrescoVersion.get("minVersion");
      final String maxVersion = (String) alfrescoVersion.get("maxVersion");
      final VersionNumber versionNumber = descriptor.getVersionNumber();
      if (StringUtils.hasText(minVersion) && versionNumber.compareTo(new VersionNumber(minVersion)) < 0) {
        matches = false;
      } else if (StringUtils.hasText(maxVersion) && versionNumber.compareTo(new VersionNumber(maxVersion)) > 0) {
        matches = false;
      }
    }
    return matches;
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.