KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > blogs > api > XMLRPCConstants


1 /*
2  * ____.
3  * __/\ ______| |__/\. _______
4  * __ .____| | \ | +----+ \
5  * _______| /--| | | - \ _ | : - \_________
6  * \\______: :---| : : | : | \________>
7  * |__\---\_____________:______: :____|____:_____\
8  * /_____|
9  *
10  * . . . i n j a h i a w e t r u s t . . .
11  *
12  *
13  *
14  * ----- BEGIN LICENSE BLOCK -----
15  * Version: JCSL 1.0
16  *
17  * The contents of this file are subject to the Jahia Community Source License
18  * 1.0 or later (the "License"); you may not use this file except in
19  * compliance with the License. You may obtain a copy of the License at
20  * http://www.jahia.org/license
21  *
22  * Software distributed under the License is distributed on an "AS IS" basis,
23  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
24  * for the rights, obligations and limitations governing use of the contents
25  * of the file. The Original and Upgraded Code is the Jahia CMS and Portal
26  * Server. The developer of the Original and Upgraded Code is JAHIA Ltd. JAHIA
27  * Ltd. owns the copyrights in the portions it created. All Rights Reserved.
28  *
29  * The Shared Modifications are Jahia View Helper.
30  *
31  * The Developer of the Shared Modifications is Jahia Solution Sàrl.
32  * Portions created by the Initial Developer are Copyright (C) 2002 by the
33  * Initial Developer. All Rights Reserved.
34  *
35  * ----- END LICENSE BLOCK -----
36  */

37
38 package org.jahia.blogs.api;
39
40 /**
41  * Simple interface providing error codes and corresponding messages.
42  *
43  * @author Xavier Lawrence
44  */

45 public interface XMLRPCConstants {
46     
47     public static final int AUTHORIZATION_EXCEPTION = 0001;
48     public static final String JavaDoc AUTHORIZATION_EXCEPTION_MSG =
49             "Invalid Username and/or Password";
50     
51     public static final int UNKNOWN_EXCEPTION = 1000;
52     public static final String JavaDoc UNKNOWN_EXCEPTION_MSG =
53             "An error occured processing your request";
54     
55     public static final int BLOGGERAPI_DISABLED = 1000;
56     public static final String JavaDoc BLOGGERAPI_DISABLED_MSG =
57             "You have not enabled Blogger API support for your weblog";
58     
59     public static final int UNSUPPORTED_EXCEPTION = 1001;
60     public static final String JavaDoc UNSUPPORTED_EXCEPTION_MSG =
61             "Unsupported method - Jahia does not support this method";
62     
63     public static final int INVALID_POSTID = 2000;
64     public static final String JavaDoc INVALID_POSTID_MSG =
65             "The entry postID you submitted is invalid";
66     
67     public static final int NOBLOGS_EXCEPTION = 3000;
68     public static final String JavaDoc NOBLOGS_EXCEPTION_MSG =
69             "There are no blogs defined for your user";
70     
71     public static final int UPLOAD_DENIED_EXCEPTION = 4000;
72     public static final String JavaDoc UPLOAD_DENIED_EXCEPTION_MSG =
73             "Upload denied";
74 }
75
Popular Tags