Package org.jabusuite.core.language.session

Examples of org.jabusuite.core.language.session.JbsLanguagesRemote


    protected void setTextsAfterFromTransaction(BusinessTransaction transaction) {
        JbsLangStrings langStrings = new JbsLangStrings();

        try {
            JbsLanguagesRemote langRemote = (JbsLanguagesRemote) ClientTools.getRemoteBean(JbsLanguagesRemote.class);
            List<JbsLanguage> languages = langRemote.getAllLanguages();

            Iterator<JbsLanguage> it = languages.iterator();
            while (it.hasNext()) {
                JbsLanguage language = it.next();
                JbsLangString langString = new JbsLangString(language);
View Full Code Here


   
    protected JbsLangStrings getLongTexts() {
        JbsLangStrings langStrings = new JbsLangStrings();

        try {
            JbsLanguagesRemote langRemote = (JbsLanguagesRemote)ClientTools.getRemoteBean(JbsLanguagesRemote.class.getName());
            List<JbsLanguage> languages = langRemote.getAllLanguages();

            Iterator<JbsLanguage> it = languages.iterator();
            while (it.hasNext()) {
                JbsLanguage language = it.next();
                JbsLangString langString = new JbsLangString(language);
View Full Code Here

   
    protected JbsLangStrings getHeadlines() {
        JbsLangStrings langStrings = new JbsLangStrings();

        try {
            JbsLanguagesRemote langRemote = (JbsLanguagesRemote)ClientTools.getRemoteBean(JbsLanguagesRemote.class.getName());
            List<JbsLanguage> languages = langRemote.getAllLanguages();

            Iterator<JbsLanguage> it = languages.iterator();
            while (it.hasNext()) {
                JbsLanguage language = it.next();
                JbsLangString langString = new JbsLangString(language);
View Full Code Here

     */
    protected JbsLangStrings getNames() {
        JbsLangStrings langStrings = new JbsLangStrings();

        try {
            JbsLanguagesRemote langRemote = (JbsLanguagesRemote) ClientTools.getRemoteBean(JbsLanguagesRemote.class);
            List<JbsLanguage> languages = langRemote.getAllLanguages();

            Iterator<JbsLanguage> it = languages.iterator();
            while (it.hasNext()) {
                JbsLanguage language = it.next();
                JbsLangString langString = new JbsLangString(language);
View Full Code Here

    protected JbsLangStrings getPtLongTexts() {
        JbsLangStrings langStrings = new JbsLangStrings();

        try {
            JbsLanguagesRemote langRemote = (JbsLanguagesRemote) ClientTools.getRemoteBean(JbsLanguagesRemote.class);
            List<JbsLanguage> languages = langRemote.getAllLanguages();

            Iterator<JbsLanguage> it = languages.iterator();
            while (it.hasNext()) {
                JbsLanguage language = it.next();
                JbsLangString langString = new JbsLangString(language);
View Full Code Here

    protected JbsLangStrings getPositionShortTexts() {
        JbsLangStrings langStrings = new JbsLangStrings();

        try {
            JbsLanguagesRemote langRemote = (JbsLanguagesRemote) ClientTools.getRemoteBean(JbsLanguagesRemote.class);
            List<JbsLanguage> languages = langRemote.getAllLanguages();

            Iterator<JbsLanguage> it = languages.iterator();
            while (it.hasNext()) {
                JbsLanguage language = it.next();
                JbsLangString langString = new JbsLangString(language);
View Full Code Here

    protected JbsLangStrings getPositionLongTexts() {
        JbsLangStrings langStrings = new JbsLangStrings();

        try {
            JbsLanguagesRemote langRemote = (JbsLanguagesRemote) ClientTools.getRemoteBean(JbsLanguagesRemote.class);
            List<JbsLanguage> languages = langRemote.getAllLanguages();

            Iterator<JbsLanguage> it = languages.iterator();
            while (it.hasNext()) {
                JbsLanguage language = it.next();
                JbsLangString langString = new JbsLangString(language);
View Full Code Here

    }
   
    public void initLanguages(String mainProgLangCode, String mainDbLangCode, String fallbackDbLangCode) {
        try {
            //JbsLanguagesRemote langRemote = (JbsLanguagesRemote) ClientTools.getRemoteBean("JbsLanguagesBean");
            JbsLanguagesRemote langRemote = (JbsLanguagesRemote) ClientTools.getRemoteBean(JbsLanguagesRemote.class.getName());
            this.setMainProgramLanguage(langRemote.findLanguage(mainProgLangCode));
            this.setMainDbLanguage(langRemote.findLanguage(mainDbLangCode));
            this.setFallbackDbLanguage(langRemote.findLanguage(fallbackDbLangCode));
        } catch (Exception e) {
            logger.error("Error setting language", e);
        }
       
    }
View Full Code Here

TOP

Related Classes of org.jabusuite.core.language.session.JbsLanguagesRemote

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.