Examples of ExcepcaoInexistente


Examples of org.fenixedu.academic.service.services.ExcepcaoInexistente

    public static Object run() throws ExcepcaoInexistente, FenixServiceException {
        List<InfoCountry> result = new ArrayList<InfoCountry>();

        Collection<Country> countries = Bennu.getInstance().getCountrysSet();
        if (countries.isEmpty()) {
            throw new ExcepcaoInexistente("Non existing Countries !!");
        }

        for (Country country : countries) {
            result.add(InfoCountry.newInfoFromDomain(country));
        }
View Full Code Here

Examples of org.fenixedu.academic.service.services.ExcepcaoInexistente

    @Atomic
    public static InfoPerson run(String username) throws ExcepcaoInexistente {
        final Person person = Person.readPersonByUsername(username);
        if (person == null) {
            throw new ExcepcaoInexistente("error.readPersonByUsername.noPerson");
        }
        return InfoPerson.newInfoFromDomain(person);
    }
View Full Code Here

Examples of org.fenixedu.academic.service.services.ExcepcaoInexistente

    public static void run(byte[] contents, ContentType contentType, String personUsername) throws ExcepcaoInexistente {
        check(RolePredicates.OPERATOR_PREDICATE);
        Person person = Person.readPersonByUsername(personUsername);

        if (person == null) {
            throw new ExcepcaoInexistente("Unknown Person !!");
        }

        storePersonalPhoto(contents, contentType, person);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.