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