Kawai Wiki

Rev

Rev 228 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 228 Rev 231
Line 95... Line 95...
95
        Page p = new Page();
95
        Page p = new Page();
96
        p.setName(name);
96
        p.setName(name);
97
        p.setLanguageId(lang.getId());
97
        p.setLanguageId(lang.getId());
98
        p.setDeleted(false);
98
        p.setDeleted(false);
99
       
99
       
100
        List<Page> pages = session.loadList(p, new String[] { "id", "name", "title", "languageId" });
-
 
101
       
-
 
102
        if (pages == null || pages.size() != 1) {
-
 
103
                return null;
-
 
104
        }
-
 
105
       
-
 
106
        return pages.get(0);
-
 
-
 
100
        return session.loadUnique(p, "name", "title", "languageId");
107
    }
101
    }
108
102
109
    /**
103
    /**
110
     * Loads the front page by language.
104
     * Loads the front page by language.
111
     * @return Page
105
     * @return Page