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

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


     * displaying path information as breadcrumb.
     */
    public List<KeyValueObject> getCurrentDirectoryHierarchy() {
        List<KeyValueObject> directoryHierarchy = new ArrayList<KeyValueObject>();

        directoryHierarchy.add(new KeyValueObject("/", "root"));
        String fullPath = this.currentDirectory.getPath();
        String dpath = "";
        if (fullPath.length() > 1) {
            String[] directoryNames = fullPath.substring(1).split("/");
            for (String directoryName : directoryNames) {
                dpath = dpath + "/" + directoryName;
                directoryHierarchy.add(new KeyValueObject(dpath, directoryName));
            }
        }
        return directoryHierarchy;
    }
View Full Code Here


     * displaying path information as breadcrumb.
     */
    public List<KeyValueObject> getCurrentDirectoryHierarchy() {
        List<KeyValueObject> directoryHierarchy = new ArrayList<KeyValueObject>();

        directoryHierarchy.add(new KeyValueObject("/", "root"));
        String fullPath = this.currentDirectory.getPath();
        if (fullPath.length() > 1) {
            String[] directoryNames = fullPath.substring(1).split("/");
            String directoryPath = "";
            for (String directoryName : directoryNames) {
                directoryPath = directoryPath + "/" + directoryName;
                directoryHierarchy.add(new KeyValueObject(directoryPath, directoryName));
            }
        }
        return directoryHierarchy;
    }
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<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

TOP

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

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.