1   /**
2    * Copyright (c) 2000-2010 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   *
12   *
13   */
14  
15  package com.liferay.portal.model.impl;
16  
17  import com.liferay.portal.kernel.util.GetterUtil;
18  import com.liferay.portal.kernel.util.PropsKeys;
19  import com.liferay.portal.model.Account;
20  import com.liferay.portal.model.Contact;
21  import com.liferay.portal.model.ListType;
22  import com.liferay.portal.model.Organization;
23  import com.liferay.portal.util.PropsUtil;
24  
25  /**
26   * <a href="ListTypeImpl.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   */
30  public class ListTypeImpl extends ListTypeModelImpl implements ListType {
31  
32      // Common
33  
34      public static final String ADDRESS = ".address";
35  
36      public static final String EMAIL_ADDRESS = ".emailAddress";
37  
38      public static final String PHONE = ".phone";
39  
40      public static final String WEBSITE = ".website";
41  
42      // Account
43  
44      public static final String ACCOUNT_ADDRESS =
45          Account.class.getName() + ADDRESS;
46  
47      public static final int ACCOUNT_ADDRESS_DEFAULT =
48          GetterUtil.getInteger(PropsUtil.get(PropsKeys.
49              SQL_DATA_COM_LIFERAY_PORTAL_MODEL_LISTTYPE_ACCOUNT_ADDRESS));
50  
51      public static final String ACCOUNT_EMAIL_ADDRESS =
52          Account.class.getName() + EMAIL_ADDRESS;
53  
54      public static final int ACCOUNT_EMAIL_ADDRESS_DEFAULT =
55          GetterUtil.getInteger(PropsUtil.get(PropsKeys.
56              SQL_DATA_COM_LIFERAY_PORTAL_MODEL_LISTTYPE_ACCOUNT_EMAIL_ADDRESS));
57  
58      public static final String ACCOUNT_PHONE =
59          Account.class.getName() + PHONE;
60  
61      public static final String ACCOUNT_WEBSITE =
62          Account.class.getName() + WEBSITE;
63  
64      // Contact
65  
66      public static final String CONTACT_ADDRESS =
67          Contact.class.getName() + ADDRESS;
68  
69      public static final String CONTACT_EMAIL_ADDRESS =
70          Contact.class.getName() + EMAIL_ADDRESS;
71  
72      public static final int CONTACT_EMAIL_ADDRESS_DEFAULT =
73          GetterUtil.getInteger(PropsUtil.get(PropsKeys.
74              SQL_DATA_COM_LIFERAY_PORTAL_MODEL_LISTTYPE_CONTACT_EMAIL_ADDRESS));
75  
76      public static final String CONTACT_PHONE =
77          Contact.class.getName() + PHONE;
78  
79      public static final String CONTACT_PREFIX =
80          Contact.class.getName() + ".prefix";
81  
82      public static final String CONTACT_SUFFIX =
83          Contact.class.getName() + ".suffix";
84  
85      public static final String CONTACT_WEBSITE =
86          Contact.class.getName() + WEBSITE;
87  
88      // Organization
89  
90      public static final String ORGANIZATION_ADDRESS =
91          Organization.class.getName() + ADDRESS;
92  
93      public static final String ORGANIZATION_EMAIL_ADDRESS =
94          Organization.class.getName() + EMAIL_ADDRESS;
95  
96      public static final String ORGANIZATION_PHONE =
97          Organization.class.getName() + PHONE;
98  
99      public static final String ORGANIZATION_SERVICE =
100         Organization.class.getName() + ".service";
101 
102     public static final String ORGANIZATION_STATUS =
103         Organization.class.getName() + ".status";
104 
105     public static final int ORGANIZATION_STATUS_DEFAULT =
106         GetterUtil.getInteger(PropsUtil.get(PropsKeys.
107             SQL_DATA_COM_LIFERAY_PORTAL_MODEL_LISTTYPE_ORGANIZATION_STATUS));
108 
109     public static final String ORGANIZATION_WEBSITE =
110         Organization.class.getName() + WEBSITE;
111 
112     public ListTypeImpl() {
113     }
114 
115 }