KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > filesys > smb > WinNT


1 /*
2  * Copyright (C) 2005 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.smb;
18
19 /**
20  * Windows NT Constants Class
21  */

22 public class WinNT
23 {
24
25     // Compression format types
26

27     public final static int CompressionFormatNone = 0;
28     public final static int CompressionFormatDefault = 1;
29     public final static int CompressionFormatLZNT1 = 2;
30
31     // Get/set security descriptor flags
32

33     public final static int SecurityOwner = 0x0001;
34     public final static int SecurityGroup = 0x0002;
35     public final static int SecurityDACL = 0x0004;
36     public final static int SecuritySACL = 0x0008;
37
38     // Security impersonation levels
39

40     public static final int SecurityAnonymous = 0;
41     public static final int SecurityIdentification = 1;
42     public static final int SecurityImpersonation = 2;
43     public static final int SecurityDelegation = 3;
44
45     // Security flags
46

47     public static final int SecurityContextTracking = 0x00040000;
48     public static final int SecurityEffectiveOnly = 0x00080000;
49
50     // NTCreateAndX flags (oplocks/target)
51

52     public static final int RequestOplock = 0x0002;
53     public static final int RequestBatchOplock = 0x0004;
54     public static final int TargetDirectory = 0x0008;
55     public static final int ExtendedResponse = 0x0010;
56
57     // NTCreateAndX create options flags
58

59     public static final int CreateFile = 0x00000000;
60     public static final int CreateDirectory = 0x00000001;
61     public static final int CreateWriteThrough = 0x00000002;
62     public static final int CreateSequential = 0x00000004;
63
64     public static final int CreateNonDirectory = 0x00000040;
65     public static final int CreateRandomAccess = 0x00000800;
66     public static final int CreateDeleteOnClose = 0x00001000;
67 }
68
Popular Tags