1 package org.jahia.services.categories; 2 3 import org.jahia.content.ObjectKey; 4 import org.jahia.exceptions.JahiaException; 5 import org.jahia.exceptions.JahiaInitializationException; 6 import org.jahia.services.JahiaInitializableService; 7 import org.jahia.settings.SettingsBean; 8 9 import java.util.*; 10 11 23 24 public abstract class CategoryService extends JahiaInitializableService { 25 26 37 public abstract void init (SettingsBean jSettings) 38 throws JahiaInitializationException; 39 40 47 public abstract Category getRootCategory () 48 throws JahiaException; 49 50 59 public abstract Category getCategory (String key) 60 throws JahiaException; 61 62 72 public abstract Category getCategory (int categoryID) 73 throws JahiaException; 74 75 89 public abstract ArrayList getCategoryChildKeys (Category parentCategory) 90 throws JahiaException; 91 92 104 public abstract void addCategory (Category newCategory, 105 Category parentCategory) 106 throws JahiaException; 107 108 117 public abstract void removeCategory (Category category) 118 throws JahiaException; 119 120 131 public abstract void addObjectKeyToCategory (Category parentCategory, 132 ObjectKey childKey) 133 throws JahiaException; 134 135 145 public abstract void removeObjectKeyFromCategory (Category parentCategory, 146 ObjectKey childKey) 147 throws JahiaException; 148 149 160 public abstract Set getObjectCategories (ObjectKey objectKey) 161 throws JahiaException; 162 163 176 public abstract Map getTitlesForCategory (Category category) 177 throws JahiaException; 178 179 193 public abstract String getTitleForCategory (Category category, 194 Locale locale) 195 throws JahiaException; 196 197 208 public abstract void setTitleForCategory (Category category, Locale locale, 209 String title) 210 throws JahiaException; 211 212 222 public abstract void removeTitleForCategory (Category category, 223 Locale locale) 224 throws JahiaException; 225 226 233 public abstract Date getLastModificationDate (); 234 235 240 public abstract void setLastModificationDate(); 241 242 } 243 | Popular Tags |