1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17   * SOFTWARE.
18   */
19  
20  package com.liferay.portal.model.impl;
21  
22  import com.liferay.portal.kernel.util.GetterUtil;
23  import com.liferay.portal.model.Account;
24  import com.liferay.portal.model.Contact;
25  import com.liferay.portal.model.ListType;
26  import com.liferay.portal.model.Organization;
27  import com.liferay.portal.util.PropsKeys;
28  import com.liferay.portal.util.PropsUtil;
29  
30  /**
31   * <a href="ListTypeImpl.java.html"><b><i>View Source</i></b></a>
32   *
33   * @author Brian Wing Shun Chan
34   *
35   */
36  public class ListTypeImpl extends ListTypeModelImpl implements ListType {
37  
38      // Common
39  
40      public static final String ADDRESS = ".address";
41  
42      public static final String EMAIL_ADDRESS = ".emailAddress";
43  
44      public static final String PHONE = ".phone";
45  
46      public static final String WEBSITE = ".website";
47  
48      // Account
49  
50      public static final String ACCOUNT_ADDRESS =
51          Account.class.getName() + ADDRESS;
52  
53      public static final int ACCOUNT_ADDRESS_DEFAULT =
54          GetterUtil.getInteger(PropsUtil.get(PropsKeys.
55              SQL_DATA_COM_LIFERAY_PORTAL_MODEL_LISTTYPE_ACCOUNT_ADDRESS));
56  
57      public static final String ACCOUNT_EMAIL_ADDRESS =
58          Account.class.getName() + EMAIL_ADDRESS;
59  
60      public static final int ACCOUNT_EMAIL_ADDRESS_DEFAULT =
61          GetterUtil.getInteger(PropsUtil.get(PropsKeys.
62              SQL_DATA_COM_LIFERAY_PORTAL_MODEL_LISTTYPE_ACCOUNT_EMAIL_ADDRESS));
63  
64      public static final String ACCOUNT_PHONE =
65          Account.class.getName() + PHONE;
66  
67      public static final String ACCOUNT_WEBSITE =
68          Account.class.getName() + WEBSITE;
69  
70      // Contact
71  
72      public static final String CONTACT_ADDRESS =
73          Contact.class.getName() + ADDRESS;
74  
75      public static final String CONTACT_EMAIL_ADDRESS =
76          Contact.class.getName() + EMAIL_ADDRESS;
77  
78      public static final int CONTACT_EMAIL_ADDRESS_DEFAULT =
79          GetterUtil.getInteger(PropsUtil.get(PropsKeys.
80              SQL_DATA_COM_LIFERAY_PORTAL_MODEL_LISTTYPE_CONTACT_EMAIL_ADDRESS));
81  
82      public static final String CONTACT_PHONE =
83          Contact.class.getName() + PHONE;
84  
85      public static final String CONTACT_PREFIX =
86          Contact.class.getName() + ".prefix";
87  
88      public static final String CONTACT_SUFFIX =
89          Contact.class.getName() + ".suffix";
90  
91      public static final String CONTACT_WEBSITE =
92          Contact.class.getName() + WEBSITE;
93  
94      // Organization
95  
96      public static final String ORGANIZATION_ADDRESS =
97          Organization.class.getName() + ADDRESS;
98  
99      public static final String ORGANIZATION_EMAIL_ADDRESS =
100         Organization.class.getName() + EMAIL_ADDRESS;
101 
102     public static final String ORGANIZATION_PHONE =
103         Organization.class.getName() + PHONE;
104 
105     public static final String ORGANIZATION_SERVICE =
106         Organization.class.getName() + ".service";
107 
108     public static final String ORGANIZATION_STATUS =
109         Organization.class.getName() + ".status";
110 
111     public static final int ORGANIZATION_STATUS_DEFAULT =
112         GetterUtil.getInteger(PropsUtil.get(PropsKeys.
113             SQL_DATA_COM_LIFERAY_PORTAL_MODEL_LISTTYPE_ORGANIZATION_STATUS));
114 
115     public static final String ORGANIZATION_WEBSITE =
116         Organization.class.getName() + WEBSITE;
117 
118     public ListTypeImpl() {
119     }
120 
121 }