001: /*
002: * File : $Source: /usr/local/cvs/opencms/src/org/opencms/lock/Messages.java,v $
003: * Date : $Date: 2008-02-27 12:05:46 $
004: * Version: $Revision: 1.11 $
005: *
006: * This library is part of OpenCms -
007: * the Open Source Content Management System
008: *
009: * Copyright (c) 2002 - 2008 Alkacon Software GmbH (http://www.alkacon.com)
010: *
011: * This library is free software; you can redistribute it and/or
012: * modify it under the terms of the GNU Lesser General Public
013: * License as published by the Free Software Foundation; either
014: * version 2.1 of the License, or (at your option) any later version.
015: *
016: * This library is distributed in the hope that it will be useful,
017: * but WITHOUT ANY WARRANTY; without even the implied warranty of
018: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
019: * Lesser General Public License for more details.
020: *
021: * For further information about Alkacon Software GmbH, please see the
022: * company website: http://www.alkacon.com
023: *
024: * For further information about OpenCms, please see the
025: * project website: http://www.opencms.org
026: *
027: * You should have received a copy of the GNU Lesser General Public
028: * License along with this library; if not, write to the Free Software
029: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
030: */
031:
032: package org.opencms.lock;
033:
034: import org.opencms.i18n.A_CmsMessageBundle;
035: import org.opencms.i18n.I_CmsMessageBundle;
036:
037: /**
038: * Convenience class to access the localized messages of this OpenCms package.<p>
039: *
040: * @author Jan Baudisch
041: *
042: * @version $Revision: 1.11 $
043: *
044: * @since 6.0.0
045: */
046: public final class Messages extends A_CmsMessageBundle {
047:
048: /** Message constant for key in the resource bundle. */
049: public static final String ERR_INVALID_LOCK_TYPE_1 = "ERR_INVALID_LOCK_TYPE_1";
050:
051: /** Message constant for key in the resource bundle. */
052: public static final String ERR_LOCK_ILLEGAL_STATE_2 = "ERR_LOCK_ILLEGAL_STATE_2";
053:
054: /** Message constant for key in the resource bundle. */
055: public static final String ERR_READ_LOCKS_0 = "ERR_READ_LOCKS_0";
056:
057: /** Message constant for key in the resource bundle. */
058: public static final String ERR_READ_LOCKS_STARTUP_ONLY_0 = "ERR_READ_LOCKS_STARTUP_ONLY_0";
059:
060: /** Message constant for key in the resource bundle. */
061: public static final String ERR_REMOVING_UNDELETED_RESOURCE_1 = "ERR_REMOVING_UNDELETED_RESOURCE_1";
062:
063: /** Message constant for key in the resource bundle. */
064: public static final String ERR_RESOURCE_LOCKED_1 = "ERR_RESOURCE_LOCKED_1";
065:
066: /** Message constant for key in the resource bundle. */
067: public static final String ERR_RESOURCE_LOCKED_BYOTHERUSER_1 = "ERR_RESOURCE_LOCKED_BYOTHERUSER_1";
068:
069: /** Message constant for key in the resource bundle. */
070: public static final String ERR_RESOURCE_LOCKED_FORPUBLISH_1 = "ERR_RESOURCE_LOCKED_FORPUBLISH_1";
071:
072: /** Message constant for key in the resource bundle. */
073: public static final String ERR_RESOURCE_LOCKED_INHERITED_1 = "ERR_RESOURCE_LOCKED_INHERITED_1";
074:
075: /** Message constant for key in the resource bundle. */
076: public static final String ERR_RESOURCE_UNLOCK_1 = "ERR_RESOURCE_UNLOCK_1";
077:
078: /** Message constant for key in the resource bundle. */
079: public static final String ERR_SIBLING_LOCKED_2 = "ERR_SIBLING_LOCKED_2";
080:
081: /** Message constant for key in the resource bundle. */
082: public static final String ERR_UNLOCK_LOCK_INHERITED_1 = "ERR_UNLOCK_LOCK_INHERITED_1";
083:
084: /** Message constant for key in the resource bundle. */
085: public static final String ERR_WRITE_LOCKS_0 = "ERR_WRITE_LOCKS_0";
086:
087: /** Message constant for key in the resource bundle. */
088: public static final String ERR_WRITE_LOCKS_FINAL_0 = "ERR_WRITE_LOCKS_FINAL_0";
089:
090: /** Name of the used resource bundle. */
091: private static final String BUNDLE_NAME = "org.opencms.lock.messages";
092:
093: /** Static instance member. */
094: private static final I_CmsMessageBundle INSTANCE = new Messages();
095:
096: /**
097: * Hides the public constructor for this utility class.<p>
098: */
099: private Messages() {
100:
101: // hide the constructor
102: }
103:
104: /**
105: * Returns an instance of this localized message accessor.<p>
106: *
107: * @return an instance of this localized message accessor
108: */
109: public static I_CmsMessageBundle get() {
110:
111: return INSTANCE;
112: }
113:
114: /**
115: * Returns the bundle name for this OpenCms package.<p>
116: *
117: * @return the bundle name for this OpenCms package
118: */
119: public String getBundleName() {
120:
121: return BUNDLE_NAME;
122: }
123: }
|