KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > filesys > smb > dcerpc > Srvsvc


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.dcerpc;
18
19 /**
20  * Srvsvc Operation Ids Class
21  */

22 public class Srvsvc
23 {
24
25     // Srvsvc opcodes
26

27     public static final int NetrServerGetInfo = 0x15;
28     public static final int NetrServerSetInfo = 0x16;
29     public static final int NetrShareEnum = 0x0F;
30     public static final int NetrShareEnumSticky = 0x24;
31     public static final int NetrShareGetInfo = 0x10;
32     public static final int NetrShareSetInfo = 0x11;
33     public static final int NetrShareAdd = 0x0E;
34     public static final int NetrShareDel = 0x12;
35     public static final int NetrSessionEnum = 0x0C;
36     public static final int NetrSessionDel = 0x0D;
37     public static final int NetrConnectionEnum = 0x08;
38     public static final int NetrFileEnum = 0x09;
39     public static final int NetrRemoteTOD = 0x1C;
40
41     /**
42      * Convert an opcode to a function name
43      *
44      * @param opCode int
45      * @return String
46      */

47     public final static String JavaDoc getOpcodeName(int opCode)
48     {
49
50         String JavaDoc ret = "";
51         switch (opCode)
52         {
53         case NetrServerGetInfo:
54             ret = "NetrServerGetInfo";
55             break;
56         case NetrServerSetInfo:
57             ret = "NetrServerSetInfo";
58             break;
59         case NetrShareEnum:
60             ret = "NetrShareEnum";
61             break;
62         case NetrShareEnumSticky:
63             ret = "NetrShareEnumSticky";
64             break;
65         case NetrShareGetInfo:
66             ret = "NetrShareGetInfo";
67             break;
68         case NetrShareSetInfo:
69             ret = "NetrShareSetInfo";
70             break;
71         case NetrShareAdd:
72             ret = "NetrShareAdd";
73             break;
74         case NetrShareDel:
75             ret = "NetrShareDel";
76             break;
77         case NetrSessionEnum:
78             ret = "NetrSessionEnum";
79             break;
80         case NetrSessionDel:
81             ret = "NetrSessionDel";
82             break;
83         case NetrConnectionEnum:
84             ret = "NetrConnectionEnum";
85             break;
86         case NetrFileEnum:
87             ret = "NetrFileEnum";
88             break;
89         case NetrRemoteTOD:
90             ret = "NetrRemoteTOD";
91             break;
92         }
93         return ret;
94     }
95 }
96
Popular Tags