Package ifott

Examples of ifott.BusinessException


    @Override
    public void pruefePasswort(String login, String passwort) throws BusinessException {
        logger.info("pruefePasswort: login='" + login + "', passwort='" + passwort + '\'');
        if (login == null || !login.equals(ServerConfiguration.getInstance().getProperty("ttexport.user")) ||
                passwort == null || !passwort.equals(ServerConfiguration.getInstance().getProperty("ttexport.password"))) {
            throw new BusinessException("unknown user or wrong password",
                    "Unbekannter Benutzer oder falsches Passwort");
        }

    }
View Full Code Here


        if (projects.containsKey(Long.parseLong(gruppenId))) {
            return convertProjectToGroup(projects.get(Long.parseLong(gruppenId)));
        }

        throw new BusinessException(
                "group with id " + gruppenId + " does not exist",
                "Gruppe mit ID " + gruppenId + " existiert nicht.");
    }
View Full Code Here

TOP

Related Classes of ifott.BusinessException

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.