001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.model;
016    
017    import com.liferay.portal.kernel.util.GetterUtil;
018    import com.liferay.portal.kernel.util.PropsKeys;
019    import com.liferay.portal.kernel.util.PropsUtil;
020    
021    /**
022     * @author Alexander Chow
023     */
024    public class ListTypeConstants {
025    
026            // Common
027    
028            public static final String ADDRESS = ".address";
029    
030            public static final String EMAIL_ADDRESS = ".emailAddress";
031    
032            public static final String PHONE = ".phone";
033    
034            public static final String WEBSITE = ".website";
035    
036            // Account
037    
038            public static final String ACCOUNT_ADDRESS =
039                    Account.class.getName() + ADDRESS;
040    
041            public static final int ACCOUNT_ADDRESS_DEFAULT =
042                    GetterUtil.getInteger(PropsUtil.get(PropsKeys.
043                            SQL_DATA_COM_LIFERAY_PORTAL_MODEL_LISTTYPE_ACCOUNT_ADDRESS));
044    
045            public static final String ACCOUNT_EMAIL_ADDRESS =
046                    Account.class.getName() + EMAIL_ADDRESS;
047    
048            public static final int ACCOUNT_EMAIL_ADDRESS_DEFAULT =
049                    GetterUtil.getInteger(PropsUtil.get(PropsKeys.
050                            SQL_DATA_COM_LIFERAY_PORTAL_MODEL_LISTTYPE_ACCOUNT_EMAIL_ADDRESS));
051    
052            public static final String ACCOUNT_PHONE = Account.class.getName() + PHONE;
053    
054            public static final String ACCOUNT_WEBSITE =
055                    Account.class.getName() + WEBSITE;
056    
057            // Contact
058    
059            public static final String CONTACT_ADDRESS =
060                    Contact.class.getName() + ADDRESS;
061    
062            public static final String CONTACT_EMAIL_ADDRESS =
063                    Contact.class.getName() + EMAIL_ADDRESS;
064    
065            public static final int CONTACT_EMAIL_ADDRESS_DEFAULT =
066                    GetterUtil.getInteger(PropsUtil.get(PropsKeys.
067                            SQL_DATA_COM_LIFERAY_PORTAL_MODEL_LISTTYPE_CONTACT_EMAIL_ADDRESS));
068    
069            public static final String CONTACT_PHONE = Contact.class.getName() + PHONE;
070    
071            public static final String CONTACT_PREFIX =
072                    Contact.class.getName() + ".prefix";
073    
074            public static final String CONTACT_SUFFIX =
075                    Contact.class.getName() + ".suffix";
076    
077            public static final String CONTACT_WEBSITE =
078                    Contact.class.getName() + WEBSITE;
079    
080            // Organization
081    
082            public static final String ORGANIZATION_ADDRESS =
083                    Organization.class.getName() + ADDRESS;
084    
085            public static final String ORGANIZATION_EMAIL_ADDRESS =
086                    Organization.class.getName() + EMAIL_ADDRESS;
087    
088            public static final String ORGANIZATION_PHONE =
089                    Organization.class.getName() + PHONE;
090    
091            public static final String ORGANIZATION_SERVICE =
092                    Organization.class.getName() + ".service";
093    
094            public static final String ORGANIZATION_STATUS =
095                    Organization.class.getName() + ".status";
096    
097            public static final int ORGANIZATION_STATUS_DEFAULT =
098                    GetterUtil.getInteger(PropsUtil.get(PropsKeys.
099                            SQL_DATA_COM_LIFERAY_PORTAL_MODEL_LISTTYPE_ORGANIZATION_STATUS));
100    
101            public static final String ORGANIZATION_WEBSITE =
102                    Organization.class.getName() + WEBSITE;
103    
104    }