Author: bpapez
Date: Sun Sep 2 14:35:21 2007
New Revision: 18349
URL: https://svndev.jahia.net/websvn/listing.php?sc=3D1&rev=3D18349&repname=
=3Djahia
Log:
Read-only mode for a cluster node
Added:
trunk/core/src/java/org/jahia/exceptions/JahiaInvalidModeException.java
Added: trunk/core/src/java/org/jahia/exceptions/JahiaInvalidModeException.j=
ava
URL: https://svndev.jahia.net/websvn/filedetails.php?path=3D/trunk/core/src=
/java/org/jahia/exceptions/JahiaInvalidModeException.java&rev=3D18349&repna=
me=3Djahia
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/core/src/java/org/jahia/exceptions/JahiaInvalidModeException.java=
(added)
+++ trunk/core/src/java/org/jahia/exceptions/JahiaInvalidModeException.java=
Sun Sep 2 14:35:21 2007
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2002-2006 Jahia Ltd
+ *
+ * Licensed under the JAHIA COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (J=
CDDL), =
+ * Version 1.0 (the "License"), or (at your option) any later version; you=
may =
+ * not use this file except in compliance with the License. You should hav=
e =
+ * received a copy of the License along with this program; if not, you may=
obtain =
+ * a copy of the License at =
+ *
+ * http://www.jahia.org/license/
+ *
+ * Unless required by applicable law or agreed to in writing, software =
+ * distributed under the License is distributed on an "AS IS" BASIS, =
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied=
. =
+ * See the License for the specific language governing permissions and =
+ * limitations under the License.
+ */// $Id: JahiaForbiddenAccessException.java 14745 2006-07-20 14:58:38Z s=
huber $
+//
+
+
+package org.jahia.exceptions;
+
+
+/**
+ * This exception is raised when the user tries to access a resource, for =
which
+ * the mode is not valid (e.g. edit mode on a read-only cluster node)
+ */
+public class JahiaInvalidModeException extends JahiaException
+{
+
+ //--------------------------------------------------------------------=
-----
+ /** Default constructor
+ */
+ public JahiaInvalidModeException ()
+ {
+ super ("403 Invalid mode", "403 Invalid mode",
+ UNAVAILABLE_ERROR, ERROR_SEVERITY);
+ }
+}
_______________________________________________
cvs_list mailing list
[email protected]
http://lists.jahia.org/cgi-bin/mailman/listinfo/cvs_list