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