001
014
015 package com.liferay.portal.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.exception.PortalException;
020 import com.liferay.portal.kernel.exception.SystemException;
021 import com.liferay.portal.kernel.search.IndexableType;
022 import com.liferay.portal.kernel.transaction.Isolation;
023 import com.liferay.portal.kernel.transaction.Propagation;
024 import com.liferay.portal.kernel.transaction.Transactional;
025 import com.liferay.portal.model.SystemEventConstants;
026
027
039 @ProviderType
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface RepositoryLocalService extends BaseLocalService,
043 PersistedModelLocalService {
044
049
050
056 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
057 public com.liferay.portal.model.Repository addRepository(
058 com.liferay.portal.model.Repository repository);
059
060 public com.liferay.portal.model.Repository addRepository(long userId,
061 long groupId, long classNameId, long parentFolderId,
062 java.lang.String name, java.lang.String description,
063 java.lang.String portletId,
064 com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
065 boolean hidden, com.liferay.portal.service.ServiceContext serviceContext)
066 throws com.liferay.portal.kernel.exception.PortalException;
067
068
073 @java.lang.Deprecated
074 public com.liferay.portal.model.Repository addRepository(long userId,
075 long groupId, long classNameId, long parentFolderId,
076 java.lang.String name, java.lang.String description,
077 java.lang.String portletId,
078 com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
079 com.liferay.portal.service.ServiceContext serviceContext)
080 throws com.liferay.portal.kernel.exception.PortalException;
081
082 public void checkRepository(long repositoryId);
083
084
090 public com.liferay.portal.model.Repository createRepository(
091 long repositoryId);
092
093
096 @Override
097 public com.liferay.portal.model.PersistedModel deletePersistedModel(
098 com.liferay.portal.model.PersistedModel persistedModel)
099 throws com.liferay.portal.kernel.exception.PortalException;
100
101 public void deleteRepositories(long groupId);
102
103
109 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
110 @com.liferay.portal.kernel.systemevent.SystemEvent(action = SystemEventConstants.ACTION_SKIP, type = SystemEventConstants.TYPE_DELETE)
111 public com.liferay.portal.model.Repository deleteRepository(
112 com.liferay.portal.model.Repository repository);
113
114
121 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
122 public com.liferay.portal.model.Repository deleteRepository(
123 long repositoryId)
124 throws com.liferay.portal.kernel.exception.PortalException;
125
126 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
127
128
134 public <T> java.util.List<T> dynamicQuery(
135 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
136
137
149 public <T> java.util.List<T> dynamicQuery(
150 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
151 int end);
152
153
166 public <T> java.util.List<T> dynamicQuery(
167 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
168 int end,
169 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator);
170
171
177 public long dynamicQueryCount(
178 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
179
180
187 public long dynamicQueryCount(
188 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
189 com.liferay.portal.kernel.dao.orm.Projection projection);
190
191 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
192 public com.liferay.portal.model.Repository fetchRepository(long groupId,
193 java.lang.String name, java.lang.String portletId);
194
195 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
196 public com.liferay.portal.model.Repository fetchRepository(long groupId,
197 java.lang.String portletId);
198
199 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
200 public com.liferay.portal.model.Repository fetchRepository(
201 long repositoryId);
202
203
210 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
211 public com.liferay.portal.model.Repository fetchRepositoryByUuidAndGroupId(
212 java.lang.String uuid, long groupId);
213
214 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
215 public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery();
216
217
222 public java.lang.String getBeanIdentifier();
223
224 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
225 public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
226 com.liferay.portal.kernel.lar.PortletDataContext portletDataContext);
227
228 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
229 public java.util.List<com.liferay.portal.kernel.repository.LocalRepository> getGroupLocalRepositoryImpl(
230 long groupId)
231 throws com.liferay.portal.kernel.exception.PortalException;
232
233 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
234 public com.liferay.portal.kernel.repository.LocalRepository getLocalRepositoryImpl(
235 long folderId, long fileEntryId, long fileVersionId)
236 throws com.liferay.portal.kernel.exception.PortalException;
237
238 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
239 public com.liferay.portal.kernel.repository.LocalRepository getLocalRepositoryImpl(
240 long repositoryId)
241 throws com.liferay.portal.kernel.exception.PortalException;
242
243 @Override
244 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
245 public com.liferay.portal.model.PersistedModel getPersistedModel(
246 java.io.Serializable primaryKeyObj)
247 throws com.liferay.portal.kernel.exception.PortalException;
248
249 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
250 public java.lang.String getRegistryName();
251
252
263 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
264 public java.util.List<com.liferay.portal.model.Repository> getRepositories(
265 int start, int end);
266
267 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
268 public java.util.List<com.liferay.portal.model.Repository> getRepositoriesByUuidAndCompanyId(
269 java.lang.String uuid, long companyId);
270
271 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
272 public java.util.List<com.liferay.portal.model.Repository> getRepositoriesByUuidAndCompanyId(
273 java.lang.String uuid, long companyId, int start, int end,
274 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Repository> orderByComparator);
275
276
281 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
282 public int getRepositoriesCount();
283
284 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
285 public com.liferay.portal.model.Repository getRepository(long groupId,
286 java.lang.String name, java.lang.String portletId)
287 throws com.liferay.portal.kernel.exception.PortalException;
288
289 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
290 public com.liferay.portal.model.Repository getRepository(long groupId,
291 java.lang.String portletId)
292 throws com.liferay.portal.kernel.exception.PortalException;
293
294
301 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
302 public com.liferay.portal.model.Repository getRepository(long repositoryId)
303 throws com.liferay.portal.kernel.exception.PortalException;
304
305
313 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
314 public com.liferay.portal.model.Repository getRepositoryByUuidAndGroupId(
315 java.lang.String uuid, long groupId)
316 throws com.liferay.portal.kernel.exception.PortalException;
317
318 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
319 public com.liferay.portal.kernel.repository.Repository getRepositoryImpl(
320 long folderId, long fileEntryId, long fileVersionId)
321 throws com.liferay.portal.kernel.exception.PortalException;
322
323 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
324 public com.liferay.portal.kernel.repository.Repository getRepositoryImpl(
325 long repositoryId)
326 throws com.liferay.portal.kernel.exception.PortalException;
327
328 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
329 public com.liferay.portal.kernel.util.UnicodeProperties getTypeSettingsProperties(
330 long repositoryId)
331 throws com.liferay.portal.kernel.exception.PortalException;
332
333 public void invalidate();
334
335
340 public void setBeanIdentifier(java.lang.String beanIdentifier);
341
342
348 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
349 public com.liferay.portal.model.Repository updateRepository(
350 com.liferay.portal.model.Repository repository);
351
352 public void updateRepository(long repositoryId, java.lang.String name,
353 java.lang.String description)
354 throws com.liferay.portal.kernel.exception.PortalException;
355 }