1
22
23 package com.liferay.portlet.documentlibrary.service.http;
24
25 import com.liferay.portal.kernel.log.Log;
26 import com.liferay.portal.kernel.log.LogFactoryUtil;
27
28 import com.liferay.portlet.documentlibrary.service.DLFileEntryServiceUtil;
29
30 import java.rmi.RemoteException;
31
32
80 public class DLFileEntryServiceSoap {
81 public static com.liferay.portlet.documentlibrary.model.DLFileEntrySoap addFileEntry(
82 long folderId, java.lang.String name, java.lang.String title,
83 java.lang.String description, java.lang.String[] tagsEntries,
84 java.lang.String extraSettings, byte[] byteArray,
85 boolean addCommunityPermissions, boolean addGuestPermissions)
86 throws RemoteException {
87 try {
88 com.liferay.portlet.documentlibrary.model.DLFileEntry returnValue = DLFileEntryServiceUtil.addFileEntry(folderId,
89 name, title, description, tagsEntries, extraSettings,
90 byteArray, addCommunityPermissions, addGuestPermissions);
91
92 return com.liferay.portlet.documentlibrary.model.DLFileEntrySoap.toSoapModel(returnValue);
93 }
94 catch (Exception e) {
95 _log.error(e, e);
96 throw new RemoteException(e.getMessage());
97 }
98 }
99
100 public static com.liferay.portlet.documentlibrary.model.DLFileEntrySoap addFileEntry(
101 long folderId, java.lang.String name, java.lang.String title,
102 java.lang.String description, java.lang.String[] tagsEntries,
103 java.lang.String extraSettings, byte[] byteArray,
104 java.lang.String[] communityPermissions,
105 java.lang.String[] guestPermissions) throws RemoteException {
106 try {
107 com.liferay.portlet.documentlibrary.model.DLFileEntry returnValue = DLFileEntryServiceUtil.addFileEntry(folderId,
108 name, title, description, tagsEntries, extraSettings,
109 byteArray, communityPermissions, guestPermissions);
110
111 return com.liferay.portlet.documentlibrary.model.DLFileEntrySoap.toSoapModel(returnValue);
112 }
113 catch (Exception e) {
114 _log.error(e, e);
115 throw new RemoteException(e.getMessage());
116 }
117 }
118
119 public static void deleteFileEntry(long folderId, java.lang.String name)
120 throws RemoteException {
121 try {
122 DLFileEntryServiceUtil.deleteFileEntry(folderId, name);
123 }
124 catch (Exception e) {
125 _log.error(e, e);
126 throw new RemoteException(e.getMessage());
127 }
128 }
129
130 public static void deleteFileEntry(long folderId, java.lang.String name,
131 double version) throws RemoteException {
132 try {
133 DLFileEntryServiceUtil.deleteFileEntry(folderId, name, version);
134 }
135 catch (Exception e) {
136 _log.error(e, e);
137 throw new RemoteException(e.getMessage());
138 }
139 }
140
141 public static com.liferay.portlet.documentlibrary.model.DLFileEntrySoap getFileEntry(
142 long folderId, java.lang.String name) throws RemoteException {
143 try {
144 com.liferay.portlet.documentlibrary.model.DLFileEntry returnValue = DLFileEntryServiceUtil.getFileEntry(folderId,
145 name);
146
147 return com.liferay.portlet.documentlibrary.model.DLFileEntrySoap.toSoapModel(returnValue);
148 }
149 catch (Exception e) {
150 _log.error(e, e);
151 throw new RemoteException(e.getMessage());
152 }
153 }
154
155 public static void lockFileEntry(long folderId, java.lang.String name)
156 throws RemoteException {
157 try {
158 DLFileEntryServiceUtil.lockFileEntry(folderId, name);
159 }
160 catch (Exception e) {
161 _log.error(e, e);
162 throw new RemoteException(e.getMessage());
163 }
164 }
165
166 public static void unlockFileEntry(long folderId, java.lang.String name)
167 throws RemoteException {
168 try {
169 DLFileEntryServiceUtil.unlockFileEntry(folderId, name);
170 }
171 catch (Exception e) {
172 _log.error(e, e);
173 throw new RemoteException(e.getMessage());
174 }
175 }
176
177 public static com.liferay.portlet.documentlibrary.model.DLFileEntrySoap updateFileEntry(
178 long folderId, long newFolderId, java.lang.String name,
179 java.lang.String sourceFileName, java.lang.String title,
180 java.lang.String description, java.lang.String[] tagsEntries,
181 java.lang.String extraSettings, byte[] byteArray)
182 throws RemoteException {
183 try {
184 com.liferay.portlet.documentlibrary.model.DLFileEntry returnValue = DLFileEntryServiceUtil.updateFileEntry(folderId,
185 newFolderId, name, sourceFileName, title, description,
186 tagsEntries, extraSettings, byteArray);
187
188 return com.liferay.portlet.documentlibrary.model.DLFileEntrySoap.toSoapModel(returnValue);
189 }
190 catch (Exception e) {
191 _log.error(e, e);
192 throw new RemoteException(e.getMessage());
193 }
194 }
195
196 private static Log _log = LogFactoryUtil.getLog(DLFileEntryServiceSoap.class);
197 }