1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.model;
16  
17  import com.liferay.portal.kernel.util.GetterUtil;
18  import com.liferay.portal.kernel.util.PropsKeys;
19  import com.liferay.portal.kernel.util.PropsUtil;
20  
21  /**
22   * <a href="ListTypeConstants.java.html"><b><i>View Source</i></b></a>
23   *
24   * @author Alexander Chow
25   */
26  public class ListTypeConstants {
27  
28      // Common
29  
30      public static final String ADDRESS = ".address";
31  
32      public static final String EMAIL_ADDRESS = ".emailAddress";
33  
34      public static final String PHONE = ".phone";
35  
36      public static final String WEBSITE = ".website";
37  
38      // Account
39  
40      public static final String ACCOUNT_ADDRESS =
41          Account.class.getName() + ADDRESS;
42  
43      public static final int ACCOUNT_ADDRESS_DEFAULT =
44          GetterUtil.getInteger(PropsUtil.get(PropsKeys.
45              SQL_DATA_COM_LIFERAY_PORTAL_MODEL_LISTTYPE_ACCOUNT_ADDRESS));
46  
47      public static final String ACCOUNT_EMAIL_ADDRESS =
48          Account.class.getName() + EMAIL_ADDRESS;
49  
50      public static final int ACCOUNT_EMAIL_ADDRESS_DEFAULT =
51          GetterUtil.getInteger(PropsUtil.get(PropsKeys.
52              SQL_DATA_COM_LIFERAY_PORTAL_MODEL_LISTTYPE_ACCOUNT_EMAIL_ADDRESS));
53  
54      public static final String ACCOUNT_PHONE =
55          Account.class.getName() + PHONE;
56  
57      public static final String ACCOUNT_WEBSITE =
58          Account.class.getName() + WEBSITE;
59  
60      // Contact
61  
62      public static final String CONTACT_ADDRESS =
63          Contact.class.getName() + ADDRESS;
64  
65      public static final String CONTACT_EMAIL_ADDRESS =
66          Contact.class.getName() + EMAIL_ADDRESS;
67  
68      public static final int CONTACT_EMAIL_ADDRESS_DEFAULT =
69          GetterUtil.getInteger(PropsUtil.get(PropsKeys.
70              SQL_DATA_COM_LIFERAY_PORTAL_MODEL_LISTTYPE_CONTACT_EMAIL_ADDRESS));
71  
72      public static final String CONTACT_PHONE =
73          Contact.class.getName() + PHONE;
74  
75      public static final String CONTACT_PREFIX =
76          Contact.class.getName() + ".prefix";
77  
78      public static final String CONTACT_SUFFIX =
79          Contact.class.getName() + ".suffix";
80  
81      public static final String CONTACT_WEBSITE =
82          Contact.class.getName() + WEBSITE;
83  
84      // Organization
85  
86      public static final String ORGANIZATION_ADDRESS =
87          Organization.class.getName() + ADDRESS;
88  
89      public static final String ORGANIZATION_EMAIL_ADDRESS =
90          Organization.class.getName() + EMAIL_ADDRESS;
91  
92      public static final String ORGANIZATION_PHONE =
93          Organization.class.getName() + PHONE;
94  
95      public static final String ORGANIZATION_SERVICE =
96          Organization.class.getName() + ".service";
97  
98      public static final String ORGANIZATION_STATUS =
99          Organization.class.getName() + ".status";
100 
101     public static final int ORGANIZATION_STATUS_DEFAULT =
102         GetterUtil.getInteger(PropsUtil.get(PropsKeys.
103             SQL_DATA_COM_LIFERAY_PORTAL_MODEL_LISTTYPE_ORGANIZATION_STATUS));
104 
105     public static final String ORGANIZATION_WEBSITE =
106         Organization.class.getName() + WEBSITE;
107 
108 }