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.LayoutSetBranchServiceUtil;
020
021 import java.rmi.RemoteException;
022
023
066 public class LayoutSetBranchServiceSoap {
067 public static com.liferay.portal.model.LayoutSetBranchSoap addLayoutSetBranch(
068 long groupId, boolean privateLayout, java.lang.String name,
069 java.lang.String description, boolean master,
070 long copyLayoutSetBranchId,
071 com.liferay.portal.service.ServiceContext serviceContext)
072 throws RemoteException {
073 try {
074 com.liferay.portal.model.LayoutSetBranch returnValue = LayoutSetBranchServiceUtil.addLayoutSetBranch(groupId,
075 privateLayout, name, description, master,
076 copyLayoutSetBranchId, serviceContext);
077
078 return com.liferay.portal.model.LayoutSetBranchSoap.toSoapModel(returnValue);
079 }
080 catch (Exception e) {
081 _log.error(e, e);
082
083 throw new RemoteException(e.getMessage());
084 }
085 }
086
087 public static void deleteLayoutSetBranch(long layoutSetBranchId)
088 throws RemoteException {
089 try {
090 LayoutSetBranchServiceUtil.deleteLayoutSetBranch(layoutSetBranchId);
091 }
092 catch (Exception e) {
093 _log.error(e, e);
094
095 throw new RemoteException(e.getMessage());
096 }
097 }
098
099 public static com.liferay.portal.model.LayoutSetBranchSoap[] getLayoutSetBranches(
100 long groupId, boolean privateLayout) throws RemoteException {
101 try {
102 java.util.List<com.liferay.portal.model.LayoutSetBranch> returnValue =
103 LayoutSetBranchServiceUtil.getLayoutSetBranches(groupId,
104 privateLayout);
105
106 return com.liferay.portal.model.LayoutSetBranchSoap.toSoapModels(returnValue);
107 }
108 catch (Exception e) {
109 _log.error(e, e);
110
111 throw new RemoteException(e.getMessage());
112 }
113 }
114
115 public static com.liferay.portal.model.LayoutSetBranchSoap mergeLayoutSetBranch(
116 long layoutSetBranchId, long mergeLayoutSetBranchId,
117 com.liferay.portal.service.ServiceContext serviceContext)
118 throws RemoteException {
119 try {
120 com.liferay.portal.model.LayoutSetBranch returnValue = LayoutSetBranchServiceUtil.mergeLayoutSetBranch(layoutSetBranchId,
121 mergeLayoutSetBranchId, serviceContext);
122
123 return com.liferay.portal.model.LayoutSetBranchSoap.toSoapModel(returnValue);
124 }
125 catch (Exception e) {
126 _log.error(e, e);
127
128 throw new RemoteException(e.getMessage());
129 }
130 }
131
132 public static com.liferay.portal.model.LayoutSetBranchSoap updateLayoutSetBranch(
133 long groupId, long layoutSetBranchId, java.lang.String name,
134 java.lang.String description,
135 com.liferay.portal.service.ServiceContext serviceContext)
136 throws RemoteException {
137 try {
138 com.liferay.portal.model.LayoutSetBranch returnValue = LayoutSetBranchServiceUtil.updateLayoutSetBranch(groupId,
139 layoutSetBranchId, name, description, serviceContext);
140
141 return com.liferay.portal.model.LayoutSetBranchSoap.toSoapModel(returnValue);
142 }
143 catch (Exception e) {
144 _log.error(e, e);
145
146 throw new RemoteException(e.getMessage());
147 }
148 }
149
150 private static Log _log = LogFactoryUtil.getLog(LayoutSetBranchServiceSoap.class);
151 }