001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.transaction.Isolation;
020 import com.liferay.portal.kernel.transaction.Propagation;
021 import com.liferay.portal.kernel.transaction.Transactional;
022
023
036 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
037 PortalException.class, SystemException.class})
038 public interface RepositoryLocalService extends BaseLocalService,
039 PersistedModelLocalService {
040
045
046
053 public com.liferay.portal.model.Repository addRepository(
054 com.liferay.portal.model.Repository repository)
055 throws com.liferay.portal.kernel.exception.SystemException;
056
057
063 public com.liferay.portal.model.Repository createRepository(
064 long repositoryId);
065
066
074 public com.liferay.portal.model.Repository deleteRepository(
075 long repositoryId)
076 throws com.liferay.portal.kernel.exception.PortalException,
077 com.liferay.portal.kernel.exception.SystemException;
078
079
086 public com.liferay.portal.model.Repository deleteRepository(
087 com.liferay.portal.model.Repository repository)
088 throws com.liferay.portal.kernel.exception.SystemException;
089
090 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
091
092
099 @SuppressWarnings("rawtypes")
100 public java.util.List dynamicQuery(
101 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
102 throws com.liferay.portal.kernel.exception.SystemException;
103
104
117 @SuppressWarnings("rawtypes")
118 public java.util.List dynamicQuery(
119 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
120 int end) throws com.liferay.portal.kernel.exception.SystemException;
121
122
136 @SuppressWarnings("rawtypes")
137 public java.util.List dynamicQuery(
138 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
139 int end,
140 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
141 throws com.liferay.portal.kernel.exception.SystemException;
142
143
150 public long dynamicQueryCount(
151 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
152 throws com.liferay.portal.kernel.exception.SystemException;
153
154 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
155 public com.liferay.portal.model.Repository fetchRepository(
156 long repositoryId)
157 throws com.liferay.portal.kernel.exception.SystemException;
158
159
167 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
168 public com.liferay.portal.model.Repository getRepository(long repositoryId)
169 throws com.liferay.portal.kernel.exception.PortalException,
170 com.liferay.portal.kernel.exception.SystemException;
171
172 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
173 public com.liferay.portal.model.PersistedModel getPersistedModel(
174 java.io.Serializable primaryKeyObj)
175 throws com.liferay.portal.kernel.exception.PortalException,
176 com.liferay.portal.kernel.exception.SystemException;
177
178
187 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
188 public com.liferay.portal.model.Repository getRepositoryByUuidAndGroupId(
189 java.lang.String uuid, long groupId)
190 throws com.liferay.portal.kernel.exception.PortalException,
191 com.liferay.portal.kernel.exception.SystemException;
192
193
205 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
206 public java.util.List<com.liferay.portal.model.Repository> getRepositories(
207 int start, int end)
208 throws com.liferay.portal.kernel.exception.SystemException;
209
210
216 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
217 public int getRepositoriesCount()
218 throws com.liferay.portal.kernel.exception.SystemException;
219
220
227 public com.liferay.portal.model.Repository updateRepository(
228 com.liferay.portal.model.Repository repository)
229 throws com.liferay.portal.kernel.exception.SystemException;
230
231
236 public java.lang.String getBeanIdentifier();
237
238
243 public void setBeanIdentifier(java.lang.String beanIdentifier);
244
245 public long addRepository(long userId, long groupId, long classNameId,
246 long parentFolderId, java.lang.String name,
247 java.lang.String description, java.lang.String portletId,
248 com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
249 boolean hidden, com.liferay.portal.service.ServiceContext serviceContext)
250 throws com.liferay.portal.kernel.exception.PortalException,
251 com.liferay.portal.kernel.exception.SystemException;
252
253
257 public long addRepository(long userId, long groupId, long classNameId,
258 long parentFolderId, java.lang.String name,
259 java.lang.String description, java.lang.String portletId,
260 com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
261 com.liferay.portal.service.ServiceContext serviceContext)
262 throws com.liferay.portal.kernel.exception.PortalException,
263 com.liferay.portal.kernel.exception.SystemException;
264
265 public void checkRepository(long repositoryId)
266 throws com.liferay.portal.kernel.exception.SystemException;
267
268 public void deleteRepositories(long groupId)
269 throws com.liferay.portal.kernel.exception.PortalException,
270 com.liferay.portal.kernel.exception.SystemException;
271
272 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
273 public com.liferay.portal.model.Repository fetchRepository(long groupId,
274 java.lang.String portletId)
275 throws com.liferay.portal.kernel.exception.SystemException;
276
277 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
278 public com.liferay.portal.model.Repository fetchRepository(long groupId,
279 java.lang.String name, java.lang.String portletId)
280 throws com.liferay.portal.kernel.exception.SystemException;
281
282 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
283 public com.liferay.portal.kernel.repository.LocalRepository getLocalRepositoryImpl(
284 long repositoryId)
285 throws com.liferay.portal.kernel.exception.PortalException,
286 com.liferay.portal.kernel.exception.SystemException;
287
288 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
289 public com.liferay.portal.kernel.repository.LocalRepository getLocalRepositoryImpl(
290 long folderId, long fileEntryId, long fileVersionId)
291 throws com.liferay.portal.kernel.exception.PortalException,
292 com.liferay.portal.kernel.exception.SystemException;
293
294 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
295 public com.liferay.portal.kernel.repository.Repository getRepositoryImpl(
296 long repositoryId)
297 throws com.liferay.portal.kernel.exception.PortalException,
298 com.liferay.portal.kernel.exception.SystemException;
299
300 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
301 public com.liferay.portal.kernel.repository.Repository getRepositoryImpl(
302 long folderId, long fileEntryId, long fileVersionId)
303 throws com.liferay.portal.kernel.exception.PortalException,
304 com.liferay.portal.kernel.exception.SystemException;
305
306 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
307 public com.liferay.portal.kernel.util.UnicodeProperties getTypeSettingsProperties(
308 long repositoryId)
309 throws com.liferay.portal.kernel.exception.PortalException,
310 com.liferay.portal.kernel.exception.SystemException;
311
312 public void updateRepository(long repositoryId, java.lang.String name,
313 java.lang.String description)
314 throws com.liferay.portal.kernel.exception.PortalException,
315 com.liferay.portal.kernel.exception.SystemException;
316 }