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