Package org.apache.roller.weblogger.ui.struts2.editor

Examples of org.apache.roller.weblogger.ui.struts2.editor.Templates


                if (results.size() > MediaFileSearchBean.PAGE_SIZE) {
                    results.remove(results.size() - 1);
                    hasMore = true;
                }

                this.pager = new MediaFilePager(bean.getPageNum(), results, hasMore);
               
            } catch (Exception e) {
                log.error("Error applying search criteria", e);
                // TODO: i18n
                addError("Error applying search criteria");
View Full Code Here


   
   
    public List<KeyValueObject> getSortByOptions() {
        List<KeyValueObject> opts = new ArrayList();
       
        opts.add(new KeyValueObject("pubTime", getText("weblogEntryQuery.label.pubTime")));
        opts.add(new KeyValueObject("updateTime", getText("weblogEntryQuery.label.updateTime")));
       
        return opts;
    }
View Full Code Here

    }
   
    public List<KeyValueObject> getStatusOptions() {
        List<KeyValueObject> opts = new ArrayList();
       
        opts.add(new KeyValueObject("ALL", getText("weblogEntryQuery.label.allEntries")));
        opts.add(new KeyValueObject("DRAFT", getText("weblogEntryQuery.label.draftOnly")));
        opts.add(new KeyValueObject("PUBLISHED", getText("weblogEntryQuery.label.publishedOnly")));
        opts.add(new KeyValueObject("PENDING", getText("weblogEntryQuery.label.pendingOnly")));
        opts.add(new KeyValueObject("SCHEDULED", getText("weblogEntryQuery.label.scheduledOnly")));
       
        return opts;
    }
View Full Code Here

   
    public List getCommentStatusOptions() {
       
        List opts = new ArrayList();
       
        opts.add(new KeyValueObject("ALL", getText("commentManagement.all")));
        opts.add(new KeyValueObject("ONLY_PENDING", getText("commentManagement.onlyPending")));
        opts.add(new KeyValueObject("ONLY_APPROVED", getText("commentManagement.onlyApproved")));
        opts.add(new KeyValueObject("ONLY_DISAPPROVED", getText("commentManagement.onlyDisapproved")));
       
        return opts;
    }
View Full Code Here

   
    public List getSpamStatusOptions() {
       
        List opts = new ArrayList();
       
        opts.add(new KeyValueObject("ALL", getText("commentManagement.all")));
        opts.add(new KeyValueObject("NO_SPAM", getText("commentManagement.noSpam")));
        opts.add(new KeyValueObject("ONLY_SPAM", getText("commentManagement.onlySpam")));
       
        return opts;
    }
View Full Code Here

   
    public List getCommentStatusOptions() {
       
        List opts = new ArrayList();
       
        opts.add(new KeyValueObject("ALL", getText("commentManagement.all")));
        opts.add(new KeyValueObject("ONLY_PENDING", getText("commentManagement.onlyPending")));
        opts.add(new KeyValueObject("ONLY_APPROVED", getText("commentManagement.onlyApproved")));
        opts.add(new KeyValueObject("ONLY_DISAPPROVED", getText("commentManagement.onlyDisapproved")));
       
        return opts;
    }
View Full Code Here

   
    public List getSpamStatusOptions() {
       
        List opts = new ArrayList();
       
        opts.add(new KeyValueObject("ALL", getText("commentManagement.all")));
        opts.add(new KeyValueObject("NO_SPAM", getText("commentManagement.noSpam")));
        opts.add(new KeyValueObject("ONLY_SPAM", getText("commentManagement.onlySpam")));
       
        return opts;
    }
View Full Code Here

   
    public List getCommentStatusOptions() {
       
        List opts = new ArrayList();
       
        opts.add(new KeyValueObject("ALL", getText("commentManagement.all")));
        opts.add(new KeyValueObject("ONLY_PENDING", getText("commentManagement.onlyPending")));
        opts.add(new KeyValueObject("ONLY_APPROVED", getText("commentManagement.onlyApproved")));
        opts.add(new KeyValueObject("ONLY_DISAPPROVED", getText("commentManagement.onlyDisapproved")));
       
        return opts;
    }
View Full Code Here

   
    public List getSpamStatusOptions() {
       
        List opts = new ArrayList();
       
        opts.add(new KeyValueObject("ALL", getText("commentManagement.all")));
        opts.add(new KeyValueObject("NO_SPAM", getText("commentManagement.noSpam")));
        opts.add(new KeyValueObject("ONLY_SPAM", getText("commentManagement.onlySpam")));
       
        return opts;
    }
View Full Code Here

        this.pageTitle = "mediaFileView.title";

        if (SIZE_FILTER_TYPES == null) {

            SIZE_FILTER_TYPES = Arrays.asList(
                new KeyValueObject("mediaFileView.gt", getText("mediaFileView.gt")),
                new KeyValueObject("mediaFileView.ge", getText("mediaFileView.ge")),
                new KeyValueObject("mediaFileView.eq", getText("mediaFileView.eq")),
                new KeyValueObject("mediaFileView.le", getText("mediaFileView.le")),
                new KeyValueObject("mediaFileView.lt", getText("mediaFileView.lt")));

            FILE_TYPES = Arrays.asList(
                new KeyValueObject("mediaFileView.any",   getText("mediaFileView.any")),
                new KeyValueObject("mediaFileView.others",   getText("mediaFileView.others")),
                new KeyValueObject("mediaFileView.image", getText("mediaFileView.image")),
                new KeyValueObject("mediaFileView.video", getText("mediaFileView.video")),
                new KeyValueObject("mediaFileView.audio", getText("mediaFileView.audio")));

            SIZE_UNITS = Arrays.asList(
                new KeyValueObject("mediaFileView.bytes", getText("mediaFileView.bytes")),
                new KeyValueObject("mediaFileView.kb",    getText("mediaFileView.kb")),
                new KeyValueObject("mediaFileView.mb",    getText("mediaFileView.mb")));

            SORT_OPTIONS = Arrays.asList(
                new KeyValueObject("mediaFileView.name", getText("mediaFileView.name")),
                new KeyValueObject("mediaFileView.date", getText("mediaFileView.date")),
                new KeyValueObject("mediaFileView.type", getText("mediaFileView.type")));
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.roller.weblogger.ui.struts2.editor.Templates

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.