Package org.ugate.service.entity.jpa

Examples of org.ugate.service.entity.jpa.AppInfo


   *         {@linkplain AppInfo#getVersion()} was not found and had to be
   *         added (null when it already exists)
   */
  @Transactional(readOnly = false, propagation = Propagation.REQUIRED)
  public AppInfo addAppInfoIfNeeded(final String version) {
    AppInfo appInfo = credentialDao.getAppInfo(version);
    if (appInfo == null) {
      appInfo = new AppInfo();
      appInfo.setVersion(version);
      appInfo.setCreatedDate(new Date());
      credentialDao.persistEntity(appInfo);
      return appInfo;
    }
    return appInfo;
  }
View Full Code Here


   *            the {@linkplain AppInfo#getVersion()}
   */
  @Transactional(readOnly = false, propagation = Propagation.REQUIRED)
  public boolean setDefaultActor(final Actor defaultActor,
      final String version) {
    final AppInfo appInfo = credentialDao.getAppInfo(version);
    if (appInfo != null) {
      appInfo.setDefaultActor(defaultActor);
      credentialDao.persistEntity(appInfo);
      return true;
    }
    return false;
  }
View Full Code Here

      throws UnsupportedOperationException {
    actor.setPassword(generateHash(actor.getUsername(),
        actor.getPassword(), actor.getPassPhrase()));
    credentialDao.persistEntity(actor);
    if (appVersion != null && appVersion.length() > 0) {
      final AppInfo appInfo = credentialDao.getAppInfo(appVersion);
      appInfo.setDefaultActor(actor);
      credentialDao.persistEntity(actor);
    }
    return actor;
  }
View Full Code Here

TOP

Related Classes of org.ugate.service.entity.jpa.AppInfo

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.