001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portal.model.impl;
022:
023: import com.liferay.portal.kernel.util.GetterUtil;
024: import com.liferay.portal.model.Account;
025: import com.liferay.portal.model.Contact;
026: import com.liferay.portal.model.ListType;
027: import com.liferay.portal.model.Organization;
028: import com.liferay.portal.util.PropsUtil;
029:
030: /**
031: * <a href="ListTypeImpl.java.html"><b><i>View Source</i></b></a>
032: *
033: * @author Brian Wing Shun Chan
034: *
035: */
036: public class ListTypeImpl extends ListTypeModelImpl implements ListType {
037:
038: // Common
039:
040: public static final String ADDRESS = ".address";
041:
042: public static final String EMAIL_ADDRESS = ".emailAddress";
043:
044: public static final String PHONE = ".phone";
045:
046: public static final String WEBSITE = ".website";
047:
048: // Account
049:
050: public static final String ACCOUNT_ADDRESS = Account.class
051: .getName()
052: + ADDRESS;
053:
054: public static final int ACCOUNT_ADDRESS_DEFAULT = GetterUtil
055: .getInteger(PropsUtil
056: .get(PropsUtil.SQL_DATA_COM_LIFERAY_PORTAL_MODEL_LISTTYPE_ACCOUNT_ADDRESS));
057:
058: public static final String ACCOUNT_EMAIL_ADDRESS = Account.class
059: .getName()
060: + EMAIL_ADDRESS;
061:
062: public static final int ACCOUNT_EMAIL_ADDRESS_DEFAULT = GetterUtil
063: .getInteger(PropsUtil
064: .get(PropsUtil.SQL_DATA_COM_LIFERAY_PORTAL_MODEL_LISTTYPE_ACCOUNT_EMAIL_ADDRESS));
065:
066: public static final String ACCOUNT_PHONE = Account.class.getName()
067: + PHONE;
068:
069: public static final String ACCOUNT_WEBSITE = Account.class
070: .getName()
071: + WEBSITE;
072:
073: // Contact
074:
075: public static final String CONTACT_ADDRESS = Contact.class
076: .getName()
077: + ADDRESS;
078:
079: public static final String CONTACT_EMAIL_ADDRESS = Contact.class
080: .getName()
081: + EMAIL_ADDRESS;
082:
083: public static final int CONTACT_EMAIL_ADDRESS_DEFAULT = GetterUtil
084: .getInteger(PropsUtil
085: .get(PropsUtil.SQL_DATA_COM_LIFERAY_PORTAL_MODEL_LISTTYPE_CONTACT_EMAIL_ADDRESS));
086:
087: public static final String CONTACT_PHONE = Contact.class.getName()
088: + PHONE;
089:
090: public static final String CONTACT_PREFIX = Contact.class.getName()
091: + ".prefix";
092:
093: public static final String CONTACT_SUFFIX = Contact.class.getName()
094: + ".suffix";
095:
096: public static final String CONTACT_WEBSITE = Contact.class
097: .getName()
098: + WEBSITE;
099:
100: // Organization
101:
102: public static final String ORGANIZATION_ADDRESS = Organization.class
103: .getName()
104: + ADDRESS;
105:
106: public static final String ORGANIZATION_EMAIL_ADDRESS = Organization.class
107: .getName()
108: + EMAIL_ADDRESS;
109:
110: public static final String ORGANIZATION_PHONE = Organization.class
111: .getName()
112: + PHONE;
113:
114: public static final String ORGANIZATION_SERVICE = Organization.class
115: .getName()
116: + ".service";
117:
118: public static final String ORGANIZATION_STATUS = Organization.class
119: .getName()
120: + ".status";
121:
122: public static final int ORGANIZATION_STATUS_DEFAULT = GetterUtil
123: .getInteger(PropsUtil
124: .get(PropsUtil.SQL_DATA_COM_LIFERAY_PORTAL_MODEL_LISTTYPE_ORGANIZATION_STATUS));
125:
126: public static final String ORGANIZATION_WEBSITE = Organization.class
127: .getName()
128: + WEBSITE;
129:
130: public ListTypeImpl() {
131: }
132:
133: }
|