1 20 21 package com.methodhead.res; 22 23 import com.methodhead.auth.AuthUser; 24 import javax.servlet.http.HttpServletRequest ; 25 import com.methodhead.util.OperationContext; 26 27 public interface ResPolicy { 28 29 31 33 35 39 public boolean isMappingAuthorized( 40 AuthUser user, 41 String path ); 42 43 46 public void initFileManager( 47 HttpServletRequest request, 48 FileManager fileManager ); 49 50 53 public FileManager newFileManager(); 54 55 58 public FileTree newFileTree(); 59 60 public String isFileMoveAuthorized( 61 OperationContext op ); 62 63 public String isFileCopyAuthorized( 64 OperationContext op ); 65 66 public String isFileDeleteAuthorized( 67 OperationContext op ); 68 69 public String isFileEditAuthorized( 70 OperationContext op ); 71 72 public String isFileUnzipAuthorized( 73 OperationContext op ); 74 75 public String isFileListAuthorized( 76 OperationContext op ); 77 78 public String isFileManageAuthorized( 79 OperationContext op ); 80 81 public String isFileUploadFormAuthorized( 82 OperationContext op ); 83 84 public String isFileUploadAuthorized( 85 OperationContext op ); 86 87 public String isFileCreateFormAuthorized( 88 OperationContext op ); 89 90 public String isFileCreateAuthorized( 91 OperationContext op ); 92 } 93 | Popular Tags |