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.LayoutPrototypeServiceUtil;
021
022 import java.rmi.RemoteException;
023
024 import java.util.Locale;
025 import java.util.Map;
026
027
069 public class LayoutPrototypeServiceSoap {
070 public static com.liferay.portal.model.LayoutPrototypeSoap addLayoutPrototype(
071 java.lang.String[] nameMapLanguageIds,
072 java.lang.String[] nameMapValues, java.lang.String description,
073 boolean active) throws RemoteException {
074 try {
075 Map<Locale, String> nameMap = LocalizationUtil.getLocalizationMap(nameMapLanguageIds,
076 nameMapValues);
077
078 com.liferay.portal.model.LayoutPrototype returnValue = LayoutPrototypeServiceUtil.addLayoutPrototype(nameMap,
079 description, active);
080
081 return com.liferay.portal.model.LayoutPrototypeSoap.toSoapModel(returnValue);
082 }
083 catch (Exception e) {
084 _log.error(e, e);
085
086 throw new RemoteException(e.getMessage());
087 }
088 }
089
090 public static void deleteLayoutPrototype(long layoutPrototypeId)
091 throws RemoteException {
092 try {
093 LayoutPrototypeServiceUtil.deleteLayoutPrototype(layoutPrototypeId);
094 }
095 catch (Exception e) {
096 _log.error(e, e);
097
098 throw new RemoteException(e.getMessage());
099 }
100 }
101
102 public static com.liferay.portal.model.LayoutPrototypeSoap getLayoutPrototype(
103 long layoutPrototypeId) throws RemoteException {
104 try {
105 com.liferay.portal.model.LayoutPrototype returnValue = LayoutPrototypeServiceUtil.getLayoutPrototype(layoutPrototypeId);
106
107 return com.liferay.portal.model.LayoutPrototypeSoap.toSoapModel(returnValue);
108 }
109 catch (Exception e) {
110 _log.error(e, e);
111
112 throw new RemoteException(e.getMessage());
113 }
114 }
115
116 public static com.liferay.portal.model.LayoutPrototypeSoap[] search(
117 long companyId, java.lang.Boolean active,
118 com.liferay.portal.kernel.util.OrderByComparator obc)
119 throws RemoteException {
120 try {
121 java.util.List<com.liferay.portal.model.LayoutPrototype> returnValue =
122 LayoutPrototypeServiceUtil.search(companyId, active, obc);
123
124 return com.liferay.portal.model.LayoutPrototypeSoap.toSoapModels(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.LayoutPrototypeSoap updateLayoutPrototype(
134 long layoutPrototypeId, java.lang.String[] nameMapLanguageIds,
135 java.lang.String[] nameMapValues, java.lang.String description,
136 boolean active) throws RemoteException {
137 try {
138 Map<Locale, String> nameMap = LocalizationUtil.getLocalizationMap(nameMapLanguageIds,
139 nameMapValues);
140
141 com.liferay.portal.model.LayoutPrototype returnValue = LayoutPrototypeServiceUtil.updateLayoutPrototype(layoutPrototypeId,
142 nameMap, description, active);
143
144 return com.liferay.portal.model.LayoutPrototypeSoap.toSoapModel(returnValue);
145 }
146 catch (Exception e) {
147 _log.error(e, e);
148
149 throw new RemoteException(e.getMessage());
150 }
151 }
152
153 private static Log _log = LogFactoryUtil.getLog(LayoutPrototypeServiceSoap.class);
154 }