Package org.zanata.exception

Examples of org.zanata.exception.KeyNotFoundException


    @Begin(join = true)
    public void validateActivationKey() {

        if (getActivationKey() == null)
            throw new KeyNotFoundException();

        key =
                entityManager.find(HAccountResetPasswordKey.class,
                        getActivationKey());

        if (key == null)
            throw new KeyNotFoundException();
    }
View Full Code Here


    @Begin(join = true)
    public void validateActivationKey() {

        if (getActivationKey() == null) {
            throw new KeyNotFoundException("null activation key");
        }

        key = accountActivationKeyDAO.findById(getActivationKey(), false);

        if (key == null) {
            throw new KeyNotFoundException("activation key: "
                    + getActivationKey());
        }

        if (isExpired(key.getCreationDate(), LINK_ACTIVE_DAYS)) {
            throw new ActivationLinkExpiredException("Activation link expired:"
View Full Code Here

        if (activationKey != null && !activationKey.isEmpty()) {
            HPersonEmailValidationKey entry =
                    emailChangeService.getActivationKey(activationKey);
            if (entry == null) {
                throw new KeyNotFoundException("activation key: "
                        + activationKey);
            }

            String checkResult = checkExpiryDate(entry.getCreationDate());
View Full Code Here

TOP

Related Classes of org.zanata.exception.KeyNotFoundException

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.