1 17 package org.alfresco.service.cmr.model; 18 19 import java.util.List ; 20 21 import org.alfresco.service.cmr.repository.ContentReader; 22 import org.alfresco.service.cmr.repository.ContentWriter; 23 import org.alfresco.service.cmr.repository.NodeRef; 24 import org.alfresco.service.namespace.QName; 25 26 34 public interface FileFolderService 35 { 36 42 public List <FileInfo> list(NodeRef contextNodeRef); 43 44 50 public List <FileInfo> listFiles(NodeRef folderNodeRef); 51 52 58 public List <FileInfo> listFolders(NodeRef contextNodeRef); 59 60 74 public List <FileInfo> search( 75 NodeRef contextNodeRef, 76 String namePattern, 77 boolean includeSubFolders); 78 79 93 public List <FileInfo> search( 94 NodeRef contextNodeRef, 95 String namePattern, 96 boolean fileSearch, 97 boolean folderSearch, 98 boolean includeSubFolders); 99 100 109 public FileInfo rename(NodeRef fileFolderRef, String newName) throws FileExistsException, FileNotFoundException; 110 111 123 public FileInfo move(NodeRef sourceNodeRef, NodeRef targetParentRef, String newName) 124 throws FileExistsException, FileNotFoundException; 125 126 139 public FileInfo copy(NodeRef sourceNodeRef, NodeRef targetParentRef, String newName) 140 throws FileExistsException, FileNotFoundException; 141 142 152 public FileInfo create(NodeRef parentNodeRef, String name, QName typeQName) throws FileExistsException; 153 154 159 public void delete(NodeRef nodeRef); 160 161 173 public FileInfo makeFolders(NodeRef parentNodeRef, List <String > pathElements, QName folderTypeQName); 174 175 191 public List <FileInfo> getNamePath(NodeRef rootNodeRef, NodeRef nodeRef) throws FileNotFoundException; 192 193 201 public FileInfo resolveNamePath(NodeRef rootNodeRef, List <String > pathElements) throws FileNotFoundException; 202 203 209 public FileInfo getFileInfo(NodeRef nodeRef); 210 211 public ContentReader getReader(NodeRef nodeRef); 212 213 public ContentWriter getWriter(NodeRef nodeRef); 214 } 215 | Popular Tags |