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.kernel.util.LocalizationUtil;
020 import com.liferay.portal.service.LayoutSetPrototypeServiceUtil;
021
022 import java.rmi.RemoteException;
023
024 import java.util.Locale;
025 import java.util.Map;
026
027
070 public class LayoutSetPrototypeServiceSoap {
071 public static com.liferay.portal.model.LayoutSetPrototypeSoap addLayoutSetPrototype(
072 java.lang.String[] nameMapLanguageIds,
073 java.lang.String[] nameMapValues, java.lang.String description,
074 boolean active, boolean layoutsUpdateable,
075 com.liferay.portal.service.ServiceContext serviceContext)
076 throws RemoteException {
077 try {
078 Map<Locale, String> nameMap = LocalizationUtil.getLocalizationMap(nameMapLanguageIds,
079 nameMapValues);
080
081 com.liferay.portal.model.LayoutSetPrototype returnValue = LayoutSetPrototypeServiceUtil.addLayoutSetPrototype(nameMap,
082 description, active, layoutsUpdateable, serviceContext);
083
084 return com.liferay.portal.model.LayoutSetPrototypeSoap.toSoapModel(returnValue);
085 }
086 catch (Exception e) {
087 _log.error(e, e);
088
089 throw new RemoteException(e.getMessage());
090 }
091 }
092
093 public static void deleteLayoutSetPrototype(long layoutSetPrototypeId)
094 throws RemoteException {
095 try {
096 LayoutSetPrototypeServiceUtil.deleteLayoutSetPrototype(layoutSetPrototypeId);
097 }
098 catch (Exception e) {
099 _log.error(e, e);
100
101 throw new RemoteException(e.getMessage());
102 }
103 }
104
105 public static com.liferay.portal.model.LayoutSetPrototypeSoap getLayoutSetPrototype(
106 long layoutSetPrototypeId) throws RemoteException {
107 try {
108 com.liferay.portal.model.LayoutSetPrototype returnValue = LayoutSetPrototypeServiceUtil.getLayoutSetPrototype(layoutSetPrototypeId);
109
110 return com.liferay.portal.model.LayoutSetPrototypeSoap.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.LayoutSetPrototypeSoap[] search(
120 long companyId, java.lang.Boolean active,
121 com.liferay.portal.kernel.util.OrderByComparator obc)
122 throws RemoteException {
123 try {
124 java.util.List<com.liferay.portal.model.LayoutSetPrototype> returnValue =
125 LayoutSetPrototypeServiceUtil.search(companyId, active, obc);
126
127 return com.liferay.portal.model.LayoutSetPrototypeSoap.toSoapModels(returnValue);
128 }
129 catch (Exception e) {
130 _log.error(e, e);
131
132 throw new RemoteException(e.getMessage());
133 }
134 }
135
136 public static com.liferay.portal.model.LayoutSetPrototypeSoap updateLayoutSetPrototype(
137 long layoutSetPrototypeId, java.lang.String[] nameMapLanguageIds,
138 java.lang.String[] nameMapValues, java.lang.String description,
139 boolean active, boolean layoutsUpdateable,
140 com.liferay.portal.service.ServiceContext serviceContext)
141 throws RemoteException {
142 try {
143 Map<Locale, String> nameMap = LocalizationUtil.getLocalizationMap(nameMapLanguageIds,
144 nameMapValues);
145
146 com.liferay.portal.model.LayoutSetPrototype returnValue = LayoutSetPrototypeServiceUtil.updateLayoutSetPrototype(layoutSetPrototypeId,
147 nameMap, description, active, layoutsUpdateable,
148 serviceContext);
149
150 return com.liferay.portal.model.LayoutSetPrototypeSoap.toSoapModel(returnValue);
151 }
152 catch (Exception e) {
153 _log.error(e, e);
154
155 throw new RemoteException(e.getMessage());
156 }
157 }
158
159 public static com.liferay.portal.model.LayoutSetPrototypeSoap updateLayoutSetPrototype(
160 long layoutSetPrototypeId, java.lang.String settings)
161 throws RemoteException {
162 try {
163 com.liferay.portal.model.LayoutSetPrototype returnValue = LayoutSetPrototypeServiceUtil.updateLayoutSetPrototype(layoutSetPrototypeId,
164 settings);
165
166 return com.liferay.portal.model.LayoutSetPrototypeSoap.toSoapModel(returnValue);
167 }
168 catch (Exception e) {
169 _log.error(e, e);
170
171 throw new RemoteException(e.getMessage());
172 }
173 }
174
175 private static Log _log = LogFactoryUtil.getLog(LayoutSetPrototypeServiceSoap.class);
176 }