Package com.liferay.portal

Examples of com.liferay.portal.SystemException


      }

      return array;
    }
    catch (HibernateException he) {
      throw new SystemException(he);
    }
    finally {
      HibernateUtil.closeSession(session);
    }
  }
View Full Code Here


      }

      return list;
    }
    catch (HibernateException he) {
      throw new SystemException(he);
    }
    finally {
      HibernateUtil.closeSession(session);
    }
  }
View Full Code Here

      }

      session.flush();
    }
    catch (HibernateException he) {
      throw new SystemException(he);
    }
    finally {
      HibernateUtil.closeSession(session);
    }
  }
View Full Code Here

      }

      return 0;
    }
    catch (HibernateException he) {
      throw new SystemException(he);
    }
    finally {
      HibernateUtil.closeSession(session);
    }
  }
View Full Code Here

    catch (HibernateException he) {
      if (he instanceof ObjectNotFoundException) {
        throw new NoSuchImageException(imageId.toString());
      }
      else {
        throw new SystemException(he);
      }
    }
    finally {
      HibernateUtil.closeSession(session);
    }
View Full Code Here

      }

      return image;
    }
    catch (HibernateException he) {
      throw new SystemException(he);
    }
    finally {
      HibernateUtil.closeSession(session);
    }
  }
View Full Code Here

    catch (HibernateException he) {
      if (he instanceof ObjectNotFoundException) {
        throw new NoSuchImageException(imageId.toString());
      }
      else {
        throw new SystemException(he);
      }
    }
    finally {
      HibernateUtil.closeSession(session);
    }
View Full Code Here

      }

      return list;
    }
    catch (HibernateException he) {
      throw new SystemException(he);
    }
    finally {
      HibernateUtil.closeSession(session);
    }
  }
View Full Code Here

    try {
      userId = Encryptor.decrypt(company.getKeyObj(), userId);
    }
    catch (EncryptorException ee) {
      throw new SystemException(ee);
    }

    String liferayUserId = userId;

    try {
      PrincipalFinder principalFinder = (PrincipalFinder)InstancePool.get(
        PropsUtil.get(PropsUtil.PRINCIPAL_FINDER));

      liferayUserId = principalFinder.toLiferay(userId);
    }
    catch (Exception e) {
    }

    User user = UserUtil.findByPrimaryKey(liferayUserId);

    try {
      password = Encryptor.decrypt(company.getKeyObj(), password);
    }
    catch (EncryptorException ee) {
      throw new SystemException(ee);
    }

    String encPwd = Encryptor.digest(password);

    if (user.getPassword().equals(encPwd)) {
View Full Code Here

    try {
      return Encryptor.encrypt(company.getKeyObj(), userId);
    }
    catch (EncryptorException ee) {
      throw new SystemException(ee);
    }
  }
View Full Code Here

TOP

Related Classes of com.liferay.portal.SystemException

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.