1
14
15 package com.liferay.portal.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class EmailAddressLocalServiceUtil {
40 public static com.liferay.portal.model.EmailAddress addEmailAddress(
41 com.liferay.portal.model.EmailAddress emailAddress)
42 throws com.liferay.portal.SystemException {
43 return getService().addEmailAddress(emailAddress);
44 }
45
46 public static com.liferay.portal.model.EmailAddress createEmailAddress(
47 long emailAddressId) {
48 return getService().createEmailAddress(emailAddressId);
49 }
50
51 public static void deleteEmailAddress(long emailAddressId)
52 throws com.liferay.portal.PortalException,
53 com.liferay.portal.SystemException {
54 getService().deleteEmailAddress(emailAddressId);
55 }
56
57 public static void deleteEmailAddress(
58 com.liferay.portal.model.EmailAddress emailAddress)
59 throws com.liferay.portal.SystemException {
60 getService().deleteEmailAddress(emailAddress);
61 }
62
63 public static java.util.List<Object> dynamicQuery(
64 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65 throws com.liferay.portal.SystemException {
66 return getService().dynamicQuery(dynamicQuery);
67 }
68
69 public static java.util.List<Object> dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71 int end) throws com.liferay.portal.SystemException {
72 return getService().dynamicQuery(dynamicQuery, start, end);
73 }
74
75 public static com.liferay.portal.model.EmailAddress getEmailAddress(
76 long emailAddressId)
77 throws com.liferay.portal.PortalException,
78 com.liferay.portal.SystemException {
79 return getService().getEmailAddress(emailAddressId);
80 }
81
82 public static java.util.List<com.liferay.portal.model.EmailAddress> getEmailAddresses(
83 int start, int end) throws com.liferay.portal.SystemException {
84 return getService().getEmailAddresses(start, end);
85 }
86
87 public static int getEmailAddressesCount()
88 throws com.liferay.portal.SystemException {
89 return getService().getEmailAddressesCount();
90 }
91
92 public static com.liferay.portal.model.EmailAddress updateEmailAddress(
93 com.liferay.portal.model.EmailAddress emailAddress)
94 throws com.liferay.portal.SystemException {
95 return getService().updateEmailAddress(emailAddress);
96 }
97
98 public static com.liferay.portal.model.EmailAddress updateEmailAddress(
99 com.liferay.portal.model.EmailAddress emailAddress, boolean merge)
100 throws com.liferay.portal.SystemException {
101 return getService().updateEmailAddress(emailAddress, merge);
102 }
103
104 public static com.liferay.portal.model.EmailAddress addEmailAddress(
105 long userId, java.lang.String className, long classPK,
106 java.lang.String address, int typeId, boolean primary)
107 throws com.liferay.portal.PortalException,
108 com.liferay.portal.SystemException {
109 return getService()
110 .addEmailAddress(userId, className, classPK, address,
111 typeId, primary);
112 }
113
114 public static void deleteEmailAddresses(long companyId,
115 java.lang.String className, long classPK)
116 throws com.liferay.portal.SystemException {
117 getService().deleteEmailAddresses(companyId, className, classPK);
118 }
119
120 public static java.util.List<com.liferay.portal.model.EmailAddress> getEmailAddresses()
121 throws com.liferay.portal.SystemException {
122 return getService().getEmailAddresses();
123 }
124
125 public static java.util.List<com.liferay.portal.model.EmailAddress> getEmailAddresses(
126 long companyId, java.lang.String className, long classPK)
127 throws com.liferay.portal.SystemException {
128 return getService().getEmailAddresses(companyId, className, classPK);
129 }
130
131 public static com.liferay.portal.model.EmailAddress updateEmailAddress(
132 long emailAddressId, java.lang.String address, int typeId,
133 boolean primary)
134 throws com.liferay.portal.PortalException,
135 com.liferay.portal.SystemException {
136 return getService()
137 .updateEmailAddress(emailAddressId, address, typeId, primary);
138 }
139
140 public static EmailAddressLocalService getService() {
141 if (_service == null) {
142 _service = (EmailAddressLocalService)PortalBeanLocatorUtil.locate(EmailAddressLocalService.class.getName());
143 }
144
145 return _service;
146 }
147
148 public void setService(EmailAddressLocalService service) {
149 _service = service;
150 }
151
152 private static EmailAddressLocalService _service;
153 }