1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.model.impl;
24  
25  import com.liferay.portal.kernel.util.GetterUtil;
26  import com.liferay.portal.model.Account;
27  import com.liferay.portal.model.Contact;
28  import com.liferay.portal.model.ListType;
29  import com.liferay.portal.model.Organization;
30  import com.liferay.portal.util.PropsKeys;
31  import com.liferay.portal.util.PropsUtil;
32  
33  /**
34   * <a href="ListTypeImpl.java.html"><b><i>View Source</i></b></a>
35   *
36   * @author Brian Wing Shun Chan
37   *
38   */
39  public class ListTypeImpl extends ListTypeModelImpl implements ListType {
40  
41      // Common
42  
43      public static final String ADDRESS = ".address";
44  
45      public static final String EMAIL_ADDRESS = ".emailAddress";
46  
47      public static final String PHONE = ".phone";
48  
49      public static final String WEBSITE = ".website";
50  
51      // Account
52  
53      public static final String ACCOUNT_ADDRESS =
54          Account.class.getName() + ADDRESS;
55  
56      public static final int ACCOUNT_ADDRESS_DEFAULT =
57          GetterUtil.getInteger(PropsUtil.get(PropsKeys.
58              SQL_DATA_COM_LIFERAY_PORTAL_MODEL_LISTTYPE_ACCOUNT_ADDRESS));
59  
60      public static final String ACCOUNT_EMAIL_ADDRESS =
61          Account.class.getName() + EMAIL_ADDRESS;
62  
63      public static final int ACCOUNT_EMAIL_ADDRESS_DEFAULT =
64          GetterUtil.getInteger(PropsUtil.get(PropsKeys.
65              SQL_DATA_COM_LIFERAY_PORTAL_MODEL_LISTTYPE_ACCOUNT_EMAIL_ADDRESS));
66  
67      public static final String ACCOUNT_PHONE =
68          Account.class.getName() + PHONE;
69  
70      public static final String ACCOUNT_WEBSITE =
71          Account.class.getName() + WEBSITE;
72  
73      // Contact
74  
75      public static final String CONTACT_ADDRESS =
76          Contact.class.getName() + ADDRESS;
77  
78      public static final String CONTACT_EMAIL_ADDRESS =
79          Contact.class.getName() + EMAIL_ADDRESS;
80  
81      public static final int CONTACT_EMAIL_ADDRESS_DEFAULT =
82          GetterUtil.getInteger(PropsUtil.get(PropsKeys.
83              SQL_DATA_COM_LIFERAY_PORTAL_MODEL_LISTTYPE_CONTACT_EMAIL_ADDRESS));
84  
85      public static final String CONTACT_PHONE =
86          Contact.class.getName() + PHONE;
87  
88      public static final String CONTACT_PREFIX =
89          Contact.class.getName() + ".prefix";
90  
91      public static final String CONTACT_SUFFIX =
92          Contact.class.getName() + ".suffix";
93  
94      public static final String CONTACT_WEBSITE =
95          Contact.class.getName() + WEBSITE;
96  
97      // Organization
98  
99      public static final String ORGANIZATION_ADDRESS =
100         Organization.class.getName() + ADDRESS;
101 
102     public static final String ORGANIZATION_EMAIL_ADDRESS =
103         Organization.class.getName() + EMAIL_ADDRESS;
104 
105     public static final String ORGANIZATION_PHONE =
106         Organization.class.getName() + PHONE;
107 
108     public static final String ORGANIZATION_SERVICE =
109         Organization.class.getName() + ".service";
110 
111     public static final String ORGANIZATION_STATUS =
112         Organization.class.getName() + ".status";
113 
114     public static final int ORGANIZATION_STATUS_DEFAULT =
115         GetterUtil.getInteger(PropsUtil.get(PropsKeys.
116             SQL_DATA_COM_LIFERAY_PORTAL_MODEL_LISTTYPE_ORGANIZATION_STATUS));
117 
118     public static final String ORGANIZATION_WEBSITE =
119         Organization.class.getName() + WEBSITE;
120 
121     public ListTypeImpl() {
122     }
123 
124 }