001: package net.jforum.tools.phpbb2jforum;
002:
003: /**
004: * Encapsulate all configuration keys in constants. This is more typesafe and provides
005: * a nice overview of all configuration keys. Last but not least this lets us autocomplete
006: * configuration keys under eclipse ;-)
007: *
008: * @author Rafael Steil
009: * @version $Id: ConfigKeys.java,v 1.8 2007/08/31 01:21:34 rafaelsteil Exp $
010: */
011:
012: public class ConfigKeys {
013: private ConfigKeys() {
014: }
015:
016: public static final String INSTALLATION = "installation";
017:
018: public static final String INSTALLATION_CONFIG = "installation.config";
019: public static final String DEFAULT_CONFIG = "default.config";
020:
021: public static final String RESOURCE_DIR = "resource.dir";
022: public static final String CONFIG_DIR = "config.dir";
023:
024: public static final String DATABASE_DRIVER = "database.driver";
025: public static final String DATABASE_JFORUM_URL = "database.jforum.url";
026: public static final String DATABASE_PHPBB = "database.phpbb";
027: public static final String DATABASE_QUERIES = "database.queries";
028: public static final String PHPBB_TABLE_PREFIX = "phpbb.table.prefix";
029:
030: public static final String B_REGEX = "b.regex";
031: public static final String U_REGEX = "u.regex";
032: public static final String I_REGEX = "i.regex";
033: public static final String QUOTE_REGEX = "quote.regex";
034: public static final String QUOTE_USERNAME_OPEN_REGEX = "quote.username.open.regex";
035: public static final String QUOTE_USERNAME_CLOSE_REGEX = "quote.username.close.regex";
036: public static final String LIST_REGEX = "list.regex";
037: public static final String COLOR_REGEX = "color.regex";
038: public static final String SIZE_REGEX = "size.regex";
039: public static final String IMG_REGEX = "img.regex";
040: public static final String CODE_REGEX = "code.regex";
041:
042: public static final String B_REPLACE = "b.replace";
043: public static final String I_REPLACE = "i.replace";
044: public static final String U_REPLACE = "u.replace";
045: public static final String QUOTE_REPLACE = "quote.replace";
046: public static final String QUOTE_USERNAME_OPEN_REPLACE = "quote.username.open.replace";
047: public static final String QUOTE_USERNAME_CLOSE_REPLACE = "quote.username.close.replace";
048: public static final String LIST_REPLACE = "list.replace";
049: public static final String COLOR_REPLACE = "color.replace";
050: public static final String SIZE_REPLACE = "size.replace";
051: public static final String IMG_REPLACE = "img.replace";
052: public static final String CODE_REPLACE = "code.replace";
053:
054: public static final String QUERY_PRIVMSGS = "query.privmsgs";
055: public static final String QUERY_PRIVMSGS_TEXT = "query.privmsgs.text";
056: public static final String QUERY_CATEGORIES = "query.categories";
057: public static final String QUERY_FORUMS = "query.forums";
058: public static final String QUERY_POSTS = "query.posts";
059: public static final String QUERY_POSTS_TEXT = "query.posts.text";
060: public static final String QUERY_RANKS = "query.ranks";
061: public static final String QUERY_TOPICS = "query.topics";
062: public static final String QUERY_TOPICS_WATCH = "query.topics.watch";
063: public static final String QUERY_USERS = "query.users";
064:
065: public static final String QUERY_TOTAL_POSTS = "query.totalposts";
066: public static final String QUERY_SELECT_POSTS_TEXT = "query.select.poststext";
067: public static final String QUERY_SELECT_PM = "query.select.pm";
068: public static final String QUERY_SELECT_USERS = "query.select.users";
069:
070: public static final String QUERY_UPDATE_ANONYMOUS = "query.update.anonymous";
071:
072: public static final String QUERY_CLEAN_BANLIST = "query.clean.banlist";
073: public static final String QUERY_CLEAN_CATEGORIES = "query.clean.categories";
074: public static final String QUERY_CLEAN_FORUMS = "query.clean.forums";
075: public static final String QUERY_CLEAN_GROUPS = "query.clean.groups";
076: public static final String QUERY_CLEAN_POSTS = "query.clean.posts";
077: public static final String QUERY_CLEAN_POSTS_TEXT = "query.clean.posts.text";
078: public static final String QUERY_CLEAN_PRIVMSGS = "query.clean.privmsgs";
079: public static final String QUERY_CLEAN_PRIVMSGS_TEXT = "query.clean.privmsgs.text";
080: public static final String QUERY_CLEAN_RANKS = "query.clean.ranks";
081: public static final String QUERY_CLEAN_SMILIES = "query.clean.smilies";
082: public static final String QUERY_CLEAN_TOPICS = "query.clean.topics";
083: public static final String QUERY_CLEAN_TOPICS_WATCH = "query.clean.topicswatch";
084: public static final String QUERY_CLEAN_USERS = "query.clean.users";
085: public static final String QUERY_CLEAN_USERGROUPS = "query.clean.usergroups";
086: public static final String QUERY_CLEAN_VOTE_DESC = "query.clean.votedesc";
087: public static final String QUERY_CLEAN_VOTE_RESULTS = "query.clean.voteresults";
088: public static final String QUERY_CLEAN_VOTE_VOTERS = "query.clean.votevoters";
089:
090: public static final String QUERY_BANLIST = "query.banlist";
091: public static final String QUERY_VOTE_DESC = "query.votedesc";
092: public static final String QUERY_VOTE_RESULTS = "query.voteresults";
093: public static final String QUERY_VOTE_VOTERS = "query.votevoters";
094: public static final String QUERY_GROUPS = "query.groups";
095: public static final String QUERY_USERGROUPS = "query.usergroups";
096: public static final String QUERY_ANONYMOUSUSER_GROUP = "quer.anonymoususer.group";
097: public static final String QUERY_ADMINGROUP = "query.admingroup";
098: public static final String QUERY_ADMINROLE = "query.adminrole";
099: public static final String QUERY_MAXGROUPID = "query.maxgroupid";
100: public static final String QUERY_ADMINUSERGROUPS = "query.adminusergroups";
101: }
|