Package pt.utl.ist.fenix.tools.util.i18n

Examples of pt.utl.ist.fenix.tools.util.i18n.MultiLanguageString


        if (name == null || StringUtils.isEmpty(name.trim())) {
            throw new DomainException("error.accountabilityType.empty.name");
        }

        MultiLanguageString typeName = getTypeName();
        typeName =
                typeName == null ? new MultiLanguageString(Locale.getDefault(), name) : typeName.with(Locale.getDefault(), name);

        setTypeName(typeName);
    }
View Full Code Here


        return getMostRecentDegreeCurricularPlan();
    }

    @Override
    public MultiLanguageString getQualificationLevel(final ExecutionYear executionYear) {
        return new MultiLanguageString();
    }
View Full Code Here

        return new MultiLanguageString();
    }

    @Override
    public MultiLanguageString getProfessionalExits(final ExecutionYear executionYear) {
        return new MultiLanguageString();
    }
View Full Code Here

        setCandidacyHashCode(candidacyHashCode);
    }

    private MultiLanguageString generateSubject(final PhdProgramPublicCandidacyHashCode candidacyHashCode) {
        // TODO: if collaboration type change, then message must be different
        return new MultiLanguageString().with(MultiLanguageString.en,
                BundleUtil.getString(Bundle.PHD, "message.phd.email.subject.missing.candidacy"));
    }
View Full Code Here

        // TODO: if collaboration type change, then message must be different
        String submissionAccessURL = FenixEduAcademicConfiguration.getConfiguration().getPhdPublicCandidacySubmissionLink();
        final String body =
                String.format(BundleUtil.getString(Bundle.PHD, "message.phd.email.body.missing.candidacy"), submissionAccessURL,
                        hashCode.getValue());
        return new MultiLanguageString().with(MultiLanguageString.en, body);
    }
View Full Code Here

    public static DepartmentUnit createNewOfficialExternalDepartmentUnit(final String departmentName,
            final String departmentAcronym, final Unit parentUnit) {

        final DepartmentUnit departmentUnit = new DepartmentUnit();
        departmentUnit.init(new MultiLanguageString(Locale.getDefault(), departmentName), null, null, departmentAcronym,
                new YearMonthDay(), null, null, null, null, null, null);
        if (parentUnit.isCountryUnit()) {
            departmentUnit.addParentUnit(parentUnit, AccountabilityType.readByType(AccountabilityTypeEnum.GEOGRAPHIC));
        } else {
            departmentUnit.addParentUnit(parentUnit,
View Full Code Here

        init(referee.getIndividualProgramProcess(), generateSubject(referee), generateBody(referee));
        setReferee(referee);
    }

    private MultiLanguageString generateSubject(final PhdCandidacyReferee referee) {
        return new MultiLanguageString(String.format(BundleUtil.getString(Bundle.PHD, "message.phd.email.subject.referee"),
                referee.getCandidatePerson().getName(), referee.getCandidatePerson().getName()));
    }
View Full Code Here

        return new MultiLanguageString(String.format(BundleUtil.getString(Bundle.PHD, "message.phd.email.subject.referee"),
                referee.getCandidatePerson().getName(), referee.getCandidatePerson().getName()));
    }

    private MultiLanguageString generateBody(final PhdCandidacyReferee referee) {
        return new MultiLanguageString(referee.getPhdProgramCandidacyProcess().getPublicPhdCandidacyPeriod()
                .getEmailMessageBodyForRefereeForm(referee));
    }
View Full Code Here

        this();
        init(process, targetGroup, subject, body, sendMail, fireDate, userDefined, shared);
    }

    public PhdCustomAlert(PhdCustomAlertBean bean) {
        this(bean.getProcess(), bean.calculateTargetGroup(), new MultiLanguageString(Locale.getDefault(), bean.getSubject()),
                new MultiLanguageString(Locale.getDefault(), bean.getBody()), bean.isToSendEmail(), bean.getFireDate(), bean
                        .getUserDefined(), bean.getShared());
    }
View Full Code Here

        this();
        super.init(process, buildSubject(process), buildBody(process));
    }

    private MultiLanguageString buildSubject(final PhdIndividualProgramProcess process) {
        return new MultiLanguageString(Locale.getDefault(), AlertService.getSubjectPrefixed(process,
                AlertMessage.create("message.phd.alert.public.presentation.seminar.subject")));
    }
View Full Code Here

TOP

Related Classes of pt.utl.ist.fenix.tools.util.i18n.MultiLanguageString

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.