Package org.projectforge

Examples of org.projectforge.Version


  public DatabaseUpdateDO setVersionString(final String versionString)
  {
    if (versionString == null) {
      version = null;
    } else {
      version = new Version(versionString);
    }
    return this;
  }
View Full Code Here


   * @return the userAgentBrowserVersion
   */
  public Version getUserAgentBrowserVersion()
  {
    if (userAgentBrowserVersion == null && userAgentBrowserVersionString != null) {
      userAgentBrowserVersion = new Version(userAgentBrowserVersionString);
    }
    return userAgentBrowserVersion;
  }
View Full Code Here

      throw new IllegalArgumentException("No user given for the rest call: authenticate/getToken.");
    }
    final UserObject userObject = PFUserDOConverter.getUserObject(user);
    final ServerInfo info = new ServerInfo(AppVersion.VERSION.toString());
    info.setUser(userObject);
    Version clientVersion = null;
    if (clientVersionString != null) {
      clientVersion = new Version(clientVersionString);
    }
    if (clientVersion == null) {
      info.setStatus(ServerInfo.STATUS_UNKNOWN);
    } else if (clientVersion.compareTo(new Version("5.0")) < 0) {
      info.setStatus(ServerInfo.STATUS_CLIENT_TO_OLD);
    } else if (clientVersion.compareTo(AppVersion.VERSION) > 0) {
      info.setStatus(ServerInfo.STATUS_CLIENT_NEWER_THAN_SERVER);
    } else {
      info.setStatus(ServerInfo.STATUS_OK);
    }
    final String json = JsonUtils.toJson(info);
View Full Code Here

public class VersionConverter extends AbstractValueConverter<Version>
{
  @Override
  public Version fromString(final String str)
  {
    return new Version(str);
  }
View Full Code Here

    boolean odd = true;
    for (final UpdateEntry updateEntry : updateEntries) {
      if (showOldUpdateScripts == false && updateEntry.getPreCheckStatus() == UpdatePreCheckStatus.ALREADY_UPDATED) {
        continue;
      }
      final Version version = updateEntry.getVersion();
      final WebMarkupContainer item = new WebMarkupContainer(scriptRows.newChildId());
      scriptRows.add(item);
      if (odd == true) {
        item.add(AttributeModifier.append("class", "odd"));
      } else {
        item.add(AttributeModifier.append("class", "even"));
      }
      odd = !odd;
      item.add(new Label("regionId", updateEntry.getRegionId()));
      if (updateEntry.isInitial() == true) {
        item.add(new Label("version", "initial"));
      } else {
        item.add(new Label("version", version.toString()));
      }
      final String description = updateEntry.getDescription();
      item.add(new Label("description", StringUtils.isBlank(description) == true ? "" : description));
      item.add(new Label("date", updateEntry.getDate()));
      final String preCheckResult = updateEntry.getPreCheckResult();
View Full Code Here

TOP

Related Classes of org.projectforge.Version

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.