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

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


        return new MultiLanguageString(Locale.getDefault(), AlertService.getSubjectPrefixed(process,
                "message.phd.alert.final.proof.request.subject"));
    }

    private MultiLanguageString buildBody(final PhdIndividualProgramProcess process) {
        return new MultiLanguageString(Locale.getDefault(), AlertService.getBodyText(process,
                "message.phd.alert.final.proof.request.body"));
    }
View Full Code Here


    private void init(final PhdIndividualProgramProcess process) {
        super.init(process, buildSubject(process), buildBody(process));
    }

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

        return new MultiLanguageString(Locale.getDefault(), AlertService.getSubjectPrefixed(process,
                "message.phd.alert.registration.formalization.subject"));
    }

    private MultiLanguageString buildBody(final PhdIndividualProgramProcess process) {
        return new MultiLanguageString(Locale.getDefault(), AlertService.getBodyText(process,
                "message.phd.alert.registration.formalization.body"));
    }
View Full Code Here

    protected void generateMessage() {
        generateMessageForReporters();
    }

    private MultiLanguageString buildSubject(final PhdIndividualProgramProcess process) {
        return new MultiLanguageString(Locale.getDefault(), AlertMessage.get(
                "message.phd.request.jury.reviews.external.access.subject", process.getPhdProgram().getName()));
    }
View Full Code Here

        return new MultiLanguageString(Locale.getDefault(), AlertMessage.get(
                "message.phd.request.jury.reviews.external.access.subject", process.getPhdProgram().getName()));
    }

    private MultiLanguageString buildBody(final PhdIndividualProgramProcess process, PhdParticipant participant) {
        return new MultiLanguageString(Locale.getDefault(), AlertMessage.get(
                "message.phd.request.reminder.jury.reviews.reporter.body", process.getPerson().getName(),
                process.getProcessNumber(), getDaysLeftUntilDeadline(process))
                + "\n\n"
                + PhdThesisActivity.getAccessInformation(process, participant,
                        "message.phd.request.jury.reviews.coordinator.access", "message.phd.request.jury.reviews.teacher.access"));
View Full Code Here

    }

    @Atomic
    public DegreeSpecializationArea createSpecializationArea(String nameEn, String namePt) {

        MultiLanguageString area = new MultiLanguageString(MultiLanguageString.en, nameEn).with(MultiLanguageString.pt, namePt);

        return new DegreeSpecializationArea(this, area);
    }
View Full Code Here

        return (conversationThread != null) ? true : false;
    }

    public ConversationThread getConversationThreadBySubject(MultiLanguageString subject) {
        for (ConversationThread conversationThread : getConversationThreadSet()) {
            final MultiLanguageString title = conversationThread.getTitle();
            if (title != null && title.equalInAnyLanguage(subject)) {
                return conversationThread;
            }
        }

        return null;
View Full Code Here

    public static MultiLanguageString normalize(final MultiLanguageString multiLanguageString) {
        if (multiLanguageString == null) {
            return null;
        }
        MultiLanguageString result = new MultiLanguageString();
        for (final Locale language : multiLanguageString.getAllLocales()) {
            result = result.with(language, normalize(multiLanguageString.getContent(language)));
        }
        return result;
    }
View Full Code Here

        if (externalUnitBean.getUnitType() == PartyTypeEnum.DEPARTMENT) {
            return DepartmentUnit.createNewOfficialExternalDepartmentUnit(externalUnitBean.getUnitName(),
                    externalUnitBean.getUnitCode(), externalUnitBean.getParentUnit());
        } else {
            return new CreateUnit().run(externalUnitBean.getParentUnit(), new MultiLanguageString(Locale.getDefault(),
                    externalUnitBean.getUnitName()), null, null, externalUnitBean.getUnitCode(), new YearMonthDay(), null,
                    externalUnitBean.getUnitType(), null, null, null, null, null, null, null, null);
        }
    }
View Full Code Here

public class EditExternalUnit {

    @Atomic
    public static void run(final EditExternalUnitBean externalUnitBean) {
        final Unit externalUnit = externalUnitBean.getExternalUnit();
        externalUnit.edit(new MultiLanguageString(Locale.getDefault(), externalUnitBean.getUnitName()),
                externalUnitBean.getUnitCode());
    }
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.