001
014
015 package com.liferay.portal.service.http;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.log.Log;
020 import com.liferay.portal.kernel.log.LogFactoryUtil;
021 import com.liferay.portal.service.EmailAddressServiceUtil;
022
023 import java.rmi.RemoteException;
024
025
065 @ProviderType
066 public class EmailAddressServiceSoap {
067 public static com.liferay.portal.model.EmailAddressSoap addEmailAddress(
068 java.lang.String className, long classPK, java.lang.String address,
069 long typeId, boolean primary,
070 com.liferay.portal.service.ServiceContext serviceContext)
071 throws RemoteException {
072 try {
073 com.liferay.portal.model.EmailAddress returnValue = EmailAddressServiceUtil.addEmailAddress(className,
074 classPK, address, typeId, primary, serviceContext);
075
076 return com.liferay.portal.model.EmailAddressSoap.toSoapModel(returnValue);
077 }
078 catch (Exception e) {
079 _log.error(e, e);
080
081 throw new RemoteException(e.getMessage());
082 }
083 }
084
085 public static void deleteEmailAddress(long emailAddressId)
086 throws RemoteException {
087 try {
088 EmailAddressServiceUtil.deleteEmailAddress(emailAddressId);
089 }
090 catch (Exception e) {
091 _log.error(e, e);
092
093 throw new RemoteException(e.getMessage());
094 }
095 }
096
097
105 public static com.liferay.portal.model.EmailAddressSoap fetchEmailAddress(
106 long emailAddressId) throws RemoteException {
107 try {
108 com.liferay.portal.model.EmailAddress returnValue = EmailAddressServiceUtil.fetchEmailAddress(emailAddressId);
109
110 return com.liferay.portal.model.EmailAddressSoap.toSoapModel(returnValue);
111 }
112 catch (Exception e) {
113 _log.error(e, e);
114
115 throw new RemoteException(e.getMessage());
116 }
117 }
118
119 public static com.liferay.portal.model.EmailAddressSoap getEmailAddress(
120 long emailAddressId) throws RemoteException {
121 try {
122 com.liferay.portal.model.EmailAddress returnValue = EmailAddressServiceUtil.getEmailAddress(emailAddressId);
123
124 return com.liferay.portal.model.EmailAddressSoap.toSoapModel(returnValue);
125 }
126 catch (Exception e) {
127 _log.error(e, e);
128
129 throw new RemoteException(e.getMessage());
130 }
131 }
132
133 public static com.liferay.portal.model.EmailAddressSoap[] getEmailAddresses(
134 java.lang.String className, long classPK) throws RemoteException {
135 try {
136 java.util.List<com.liferay.portal.model.EmailAddress> returnValue = EmailAddressServiceUtil.getEmailAddresses(className,
137 classPK);
138
139 return com.liferay.portal.model.EmailAddressSoap.toSoapModels(returnValue);
140 }
141 catch (Exception e) {
142 _log.error(e, e);
143
144 throw new RemoteException(e.getMessage());
145 }
146 }
147
148 public static com.liferay.portal.model.EmailAddressSoap updateEmailAddress(
149 long emailAddressId, java.lang.String address, long typeId,
150 boolean primary) throws RemoteException {
151 try {
152 com.liferay.portal.model.EmailAddress returnValue = EmailAddressServiceUtil.updateEmailAddress(emailAddressId,
153 address, typeId, primary);
154
155 return com.liferay.portal.model.EmailAddressSoap.toSoapModel(returnValue);
156 }
157 catch (Exception e) {
158 _log.error(e, e);
159
160 throw new RemoteException(e.getMessage());
161 }
162 }
163
164 private static Log _log = LogFactoryUtil.getLog(EmailAddressServiceSoap.class);
165 }