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.LayoutSetPrototypeServiceUtil;
020
021 import java.rmi.RemoteException;
022
023
066 public class LayoutSetPrototypeServiceSoap {
067 public static void deleteLayoutSetPrototype(long layoutSetPrototypeId)
068 throws RemoteException {
069 try {
070 LayoutSetPrototypeServiceUtil.deleteLayoutSetPrototype(layoutSetPrototypeId);
071 }
072 catch (Exception e) {
073 _log.error(e, e);
074
075 throw new RemoteException(e.getMessage());
076 }
077 }
078
079 public static com.liferay.portal.model.LayoutSetPrototypeSoap getLayoutSetPrototype(
080 long layoutSetPrototypeId) throws RemoteException {
081 try {
082 com.liferay.portal.model.LayoutSetPrototype returnValue = LayoutSetPrototypeServiceUtil.getLayoutSetPrototype(layoutSetPrototypeId);
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 com.liferay.portal.model.LayoutSetPrototypeSoap[] search(
094 long companyId, java.lang.Boolean active,
095 com.liferay.portal.kernel.util.OrderByComparator obc)
096 throws RemoteException {
097 try {
098 java.util.List<com.liferay.portal.model.LayoutSetPrototype> returnValue =
099 LayoutSetPrototypeServiceUtil.search(companyId, active, obc);
100
101 return com.liferay.portal.model.LayoutSetPrototypeSoap.toSoapModels(returnValue);
102 }
103 catch (Exception e) {
104 _log.error(e, e);
105
106 throw new RemoteException(e.getMessage());
107 }
108 }
109
110 public static com.liferay.portal.model.LayoutSetPrototypeSoap updateLayoutSetPrototype(
111 long layoutSetPrototypeId, java.lang.String settings)
112 throws RemoteException {
113 try {
114 com.liferay.portal.model.LayoutSetPrototype returnValue = LayoutSetPrototypeServiceUtil.updateLayoutSetPrototype(layoutSetPrototypeId,
115 settings);
116
117 return com.liferay.portal.model.LayoutSetPrototypeSoap.toSoapModel(returnValue);
118 }
119 catch (Exception e) {
120 _log.error(e, e);
121
122 throw new RemoteException(e.getMessage());
123 }
124 }
125
126 private static Log _log = LogFactoryUtil.getLog(LayoutSetPrototypeServiceSoap.class);
127 }