1 17 package org.alfresco.service.cmr.search; 18 19 import java.util.Collection ; 20 21 import org.alfresco.service.cmr.repository.ChildAssociationRef; 22 import org.alfresco.service.cmr.repository.NodeRef; 23 import org.alfresco.service.cmr.repository.StoreRef; 24 import org.alfresco.service.namespace.QName; 25 26 39 public interface CategoryService 40 { 41 48 public enum Mode {MEMBERS, SUB_CATEGORIES, ALL}; 49 50 56 public enum Depth {IMMEDIATE, ANY}; 57 58 66 public Collection <ChildAssociationRef> getChildren(NodeRef categoryRef, Mode mode, Depth depth ); 67 68 76 public Collection <ChildAssociationRef> getCategories(StoreRef storeRef, QName aspectQName, Depth depth ); 77 78 83 public Collection <ChildAssociationRef> getClassifications(StoreRef storeRef); 84 85 92 public Collection <ChildAssociationRef> getRootCategories(StoreRef storeRef, QName aspectName); 93 94 99 public Collection <QName> getClassificationAspects(); 100 101 110 public NodeRef createClassifiction(StoreRef storeRef, QName aspectName, String attributeName); 111 112 120 public NodeRef createRootCategory(StoreRef storeRef, QName aspectName, String name); 121 122 129 public NodeRef createCategory(NodeRef parent, String name); 130 131 137 public void deleteClassification(StoreRef storeRef, QName aspectName); 138 139 144 public void deleteCategory(NodeRef nodeRef); 145 } 146 | Popular Tags |