diff options
author | Endi Sukma Dewata <edewata@redhat.com> | 2012-03-24 02:27:47 -0500 |
---|---|---|
committer | Endi Sukma Dewata <edewata@redhat.com> | 2012-03-26 11:43:54 -0500 |
commit | 621d9e5c413e561293d7484b93882d985b3fe15f (patch) | |
tree | 638f3d75761c121d9a8fb50b52a12a6686c5ac5c /base/common/src/com/netscape/cmscore/util/UtilResources.java | |
parent | 40d3643b8d91886bf210aa27f711731c81a11e49 (diff) | |
download | pki-621d9e5c413e561293d7484b93882d985b3fe15f.tar.gz pki-621d9e5c413e561293d7484b93882d985b3fe15f.tar.xz pki-621d9e5c413e561293d7484b93882d985b3fe15f.zip |
Removed unnecessary pki folder.
Previously the source code was located inside a pki folder.
This folder was created during svn migration and is no longer
needed. This folder has now been removed and the contents have
been moved up one level.
Ticket #131
Diffstat (limited to 'base/common/src/com/netscape/cmscore/util/UtilResources.java')
-rw-r--r-- | base/common/src/com/netscape/cmscore/util/UtilResources.java | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/base/common/src/com/netscape/cmscore/util/UtilResources.java b/base/common/src/com/netscape/cmscore/util/UtilResources.java new file mode 100644 index 000000000..6955dda50 --- /dev/null +++ b/base/common/src/com/netscape/cmscore/util/UtilResources.java @@ -0,0 +1,74 @@ +// --- BEGIN COPYRIGHT BLOCK --- +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; version 2 of the License. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License along +// with this program; if not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +// +// (C) 2007 Red Hat, Inc. +// All rights reserved. +// --- END COPYRIGHT BLOCK --- +package com.netscape.cmscore.util; + +import java.util.ListResourceBundle; + +/** + * A class represents a resource bundle for miscellanous utilities + * <P> + * + * @author mikep + * @version $Revision$, $Date$ + * @see java.util.ListResourceBundle + */ +public class UtilResources extends ListResourceBundle { + + /** + * Returns the content of this resource. + */ + public Object[][] getContents() { + return contents; + } + + /** + * Constants. The suffix represents the number of + * possible parameters. + */ + public final static String HASH_FILE_CHECK_USAGE = "hashFileCheckUsage"; + public final static String BAD_ARG_COUNT = "badArgCount"; + public final static String NO_SUCH_FILE_1 = "noSuchFile"; + public final static String DIGEST_MATCH_1 = "digestMatch"; + public final static String DIGEST_DONT_MATCH_1 = "digestDontMatch"; + public final static String FILE_TRUNCATED = "fileTruncated"; + public final static String EXCEPTION_1 = "exception"; + public final static String LOG_PASSWORD = "logPassword"; + public final static String NO_USERID = "noUserId"; + public final static String NO_SUCH_USER_2 = "noSuchUser"; + public final static String NO_UID_PERMISSION_2 = "noUidPermission"; + public final static String SHUTDOWN_SIG = "shutdownSignal"; + public final static String RESTART_SIG = "restartSignal"; + + static final Object[][] contents = { + { HASH_FILE_CHECK_USAGE, "usage: HashFileCheck <filename>" }, + { BAD_ARG_COUNT, "incorrect number of arguments" }, + { NO_SUCH_FILE_1, "can''t find file {0}" }, + { FILE_TRUNCATED, "Log file has been truncated." }, + { DIGEST_MATCH_1, "Hash digest matches log file. {0} OK" }, + { + DIGEST_DONT_MATCH_1, + "Hash digest does NOT match log file. {0} and/or hash file is corrupt or the password is incorrect." }, + { EXCEPTION_1, "Caught unexpected exception {0}" }, + { LOG_PASSWORD, "Please enter the log file hash digest password: " }, + { NO_USERID, "No user id in config file. Running as {0}" }, + { NO_SUCH_USER_2, "No such user as {0}. Running as {1}" }, + { NO_UID_PERMISSION_2, "Can''t change process uid to {0}. Running as {1}" }, + { SHUTDOWN_SIG, "Received shutdown signal" }, + { RESTART_SIG, "Received restart signal" }, + }; +} |