01: /*
02: * The contents of this file are subject to the
03: * Mozilla Public License Version 1.1 (the "License");
04: * you may not use this file except in compliance with the License.
05: * You may obtain a copy of the License at http://www.mozilla.org/MPL/
06: *
07: * Software distributed under the License is distributed on an "AS IS"
08: * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
09: * See the License for the specific language governing rights and
10: * limitations under the License.
11: *
12: * The Initial Developer of the Original Code is Simulacra Media Ltd.
13: * Portions created by Simulacra Media Ltd are Copyright (C) Simulacra Media Ltd, 2004.
14: *
15: * All Rights Reserved.
16: *
17: * Contributor(s):
18: */
19: package org.openharmonise.vfs.status;
20:
21: import java.util.*;
22:
23: /**
24: *
25: * @author Matthew Large
26: * @version $Revision: 1.1 $
27: *
28: */
29: public interface StatusData {
30:
31: public static int LEVEL_CONFIRM = 0;
32: public static int LEVEL_WARNING = 1;
33: public static int LEVEL_ERROR = 2;
34:
35: public static int STATUS_OK = 0;
36: public static int STATUS_INVALID_PERMISSIONS = 1;
37: public static int STATUS_RESOURCE_LOCKED = 2;
38: public static int STATUS_INVALID_REQUEST = 3;
39: public static int STATUS_COMMUNICATIONS_FAILURE = 4;
40: public static int STATUS_RESOURCE_NOT_FOUND = 5;
41: public static int STATUS_INVALID_RESOURCE_STATE = 6;
42: public static int STATUS_TIMEOUT = 7;
43: public static int STATUS_SERVER_ERROR = 8;
44: public static int STATUS_REQUEST_CONDITIONS_NOT_MET = 9;
45: public static int STATUS_RESOURCE_EXISTS = 10;
46:
47: public void addStatusData(StatusData status);
48:
49: public int getStatusLevel();
50:
51: public int getStatusCode();
52:
53: public boolean isOK();
54:
55: public void setMethodName(String sMethodName);
56:
57: public String getMethodName();
58:
59: public int getWorstLevel();
60:
61: public void setStatusLevel(int nLevel);
62:
63: public List getStatusData(int nLevel);
64:
65: }
|