1
19
20 package com.liferay.portal.service;
21
22
23
44 public class EmailAddressServiceUtil {
45 public static com.liferay.portal.model.EmailAddress addEmailAddress(
46 java.lang.String className, long classPK, java.lang.String address,
47 int typeId, boolean primary)
48 throws com.liferay.portal.PortalException,
49 com.liferay.portal.SystemException, java.rmi.RemoteException {
50 return getService()
51 .addEmailAddress(className, classPK, address, typeId, primary);
52 }
53
54 public static void deleteEmailAddress(long emailAddressId)
55 throws com.liferay.portal.PortalException,
56 com.liferay.portal.SystemException, java.rmi.RemoteException {
57 getService().deleteEmailAddress(emailAddressId);
58 }
59
60 public static com.liferay.portal.model.EmailAddress getEmailAddress(
61 long emailAddressId)
62 throws com.liferay.portal.PortalException,
63 com.liferay.portal.SystemException, java.rmi.RemoteException {
64 return getService().getEmailAddress(emailAddressId);
65 }
66
67 public static java.util.List<com.liferay.portal.model.EmailAddress> getEmailAddresses(
68 java.lang.String className, long classPK)
69 throws com.liferay.portal.PortalException,
70 com.liferay.portal.SystemException, java.rmi.RemoteException {
71 return getService().getEmailAddresses(className, classPK);
72 }
73
74 public static com.liferay.portal.model.EmailAddress updateEmailAddress(
75 long emailAddressId, java.lang.String address, int typeId,
76 boolean primary)
77 throws com.liferay.portal.PortalException,
78 com.liferay.portal.SystemException, java.rmi.RemoteException {
79 return getService()
80 .updateEmailAddress(emailAddressId, address, typeId, primary);
81 }
82
83 public static EmailAddressService getService() {
84 if (_service == null) {
85 throw new RuntimeException("EmailAddressService is not set");
86 }
87
88 return _service;
89 }
90
91 public void setService(EmailAddressService service) {
92 _service = service;
93 }
94
95 private static EmailAddressService _service;
96 }