Package org.apache.roller

Examples of org.apache.roller.ThemeNotFoundException


    public Theme getTheme(String name)
        throws ThemeNotFoundException, RollerException {
       
        Theme theme = (Theme) this.themes.get(name);
        if(theme == null)
            throw new ThemeNotFoundException("Couldn't find theme ["+name+"]");
       
        return theme;
    }
View Full Code Here


     */
    public ThemeTemplate getTemplateById(String id)
        throws ThemeNotFoundException, RollerException {
       
        if(id == null)
            throw new ThemeNotFoundException("Theme id was null");
       
        // in our case we expect a template id to be <theme>:<template>
        // so extract each piece and do the lookup
        String[] split = id.split(":"2);
        if(split.length != 2)
            throw new ThemeNotFoundException("Invalid theme id ["+id+"]");
       
        return this.getTemplate(split[0], split[1]);
    }
View Full Code Here

    public Theme getTheme(String name)
        throws ThemeNotFoundException, RollerException {
       
        Theme theme = (Theme) this.themes.get(name);
        if(theme == null)
            throw new ThemeNotFoundException("Couldn't find theme ["+name+"]");
       
        return theme;
    }
View Full Code Here

     */
    public ThemeTemplate getTemplateById(String id)
        throws ThemeNotFoundException, RollerException {
       
        if(id == null)
            throw new ThemeNotFoundException("Theme id was null");
       
        // in our case we expect a template id to be <theme>:<template>
        // so extract each piece and do the lookup
        String[] split = id.split(":"2);
        if(split.length != 2)
            throw new ThemeNotFoundException("Invalid theme id ["+id+"]");
       
        return this.getTemplate(split[0], split[1]);
    }
View Full Code Here

TOP

Related Classes of org.apache.roller.ThemeNotFoundException

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.