1 16 package org.apache.cocoon.portal.coplets.basket; 17 18 import java.util.List ; 19 20 27 public interface BasketManager { 28 29 30 String ROLE = BasketManager.class.getName(); 31 32 33 String BASKET_KEY = BasketManager.class.getName() + "/Basket"; 34 35 36 String BRIEFCASE_KEY = BasketManager.class.getName() + "/Briefcase"; 37 38 39 String FOLDER_KEY = BasketManager.class.getName() + "/Folder"; 40 41 42 String ALL_BRIEFCASES_KEY = BasketManager.class.getName() + "/All"; 43 44 47 Basket getBasket(); 48 49 52 Briefcase getBriefcase(); 53 54 57 Folder getFolder(); 58 59 63 List getBriefcaseDescriptions(); 64 65 68 public static class ActionInfo { 69 public final String name; 70 public final String url; 71 72 public ActionInfo(String n, String u) { 73 this.name = n; 74 this.url = u; 75 } 76 } 77 78 82 List getBasketActions(); 83 84 87 ActionInfo getBasketAction(String name); 88 89 93 List getBriefcaseActions(); 94 95 98 ActionInfo getBriefcaseAction(String name); 99 100 void addBatch(ContentItem item, 101 int frequencyInDays, 102 ActionInfo action); 103 104 107 void update(ContentStore store); 108 } 109 | Popular Tags |