KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > filesys > server > smb > repo > IOControl


1 /*
2  * Copyright (C) 2006 Alfresco, Inc.
3  *
4  * Licensed under the Mozilla Public License version 1.1
5  * with a permitted attribution clause. You may obtain a
6  * copy of the License at
7  *
8  * http://www.alfresco.org/legal/license.txt
9  *
10  * Unless required by applicable law or agreed to in writing,
11  * software distributed under the License is distributed on an
12  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13  * either express or implied. See the License for the specific
14  * language governing permissions and limitations under the
15  * License.
16  */

17 package org.alfresco.filesys.server.smb.repo;
18
19 import org.alfresco.filesys.smb.NTIOCtl;
20
21 /**
22  * Content Disk Driver I/O Control Codes Class
23  *
24  * <p>contains I/O control codes and status codes used by the content disk driver I/O control
25  * implementation.
26  *
27  * @author gkspencer
28  */

29 public class IOControl
30 {
31     // Custom I/O control codes
32

33     public static final int CmdProbe = NTIOCtl.FsCtlCustom;
34     public static final int CmdFileStatus = NTIOCtl.FsCtlCustom + 1;
35     public static final int CmdCheckOut = NTIOCtl.FsCtlCustom + 2;
36     public static final int CmdCheckIn = NTIOCtl.FsCtlCustom + 3;
37
38     // I/O control request/response signature
39

40     public static final String JavaDoc Signature = "ALFRESCO";
41     
42     // I/O control status codes
43

44     public static final int StsSuccess = 0;
45     
46     public static final int StsError = 1;
47     public static final int StsFileNotFound = 2;
48     public static final int StsAccessDenied = 3;
49     public static final int StsBadParameter = 4;
50     public static final int StsNotWorkingCopy = 5;
51     
52     // Boolean field values
53

54     public static final int True = 1;
55     public static final int False = 0;
56     
57     // File status field values
58
//
59
// Node type
60

61     public static final int TypeFile = 0;
62     public static final int TypeFolder = 1;
63     
64     // Lock status
65

66     public static final int LockNone = 0;
67     public static final int LockRead = 1;
68     public static final int LockWrite = 2;
69 }
70
Popular Tags