Package com.liferay.portal.model

Examples of com.liferay.portal.model.Release


public class ReleaseLocalManagerImpl implements ReleaseLocalManager {

  // Business methods

  public Release getRelease() throws PortalException, SystemException {
    Release release = null;

    try {
      release = ReleaseUtil.findByPrimaryKey(Release.DEFAULT_ID);
    }
    catch (NoSuchReleaseException nsre) {
      release = ReleaseUtil.create(Release.DEFAULT_ID);

      Date now = new Date();

      release.setCreateDate(now);
      release.setModifiedDate(now);

      ReleaseUtil.update(release);
    }

    return release;
View Full Code Here


    return release;
  }

  public Release updateRelease() throws PortalException, SystemException {
    Release release = getRelease();

    release.setModifiedDate(new Date());
    release.setBuildNumber(ReleaseInfo.getBuildNumber());
    release.setBuildDate(ReleaseInfo.getBuildDate());

    ReleaseUtil.update(release);

    return release;
  }
View Full Code Here

    }
    else if (releaseId == null) {
      return null;
    }
    else {
      Release obj = null;
      String key = releaseId.toString();

      if (Validator.isNull(key)) {
        return null;
      }
View Full Code Here

    }
    else if (releaseId == null) {
      return null;
    }
    else {
      Release obj = null;
      String key = releaseId.toString();

      if (Validator.isNull(key)) {
        return null;
      }
View Full Code Here

TOP

Related Classes of com.liferay.portal.model.Release

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.