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.jsonwebservice.JSONWebService;
020 import com.liferay.portal.kernel.transaction.Isolation;
021 import com.liferay.portal.kernel.transaction.Propagation;
022 import com.liferay.portal.kernel.transaction.Transactional;
023
024
037 @JSONWebService
038 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
039 PortalException.class, SystemException.class})
040 public interface RepositoryService {
041
046 public long addRepository(long groupId, long classNameId,
047 long parentFolderId, java.lang.String name,
048 java.lang.String description, java.lang.String portletId,
049 com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
050 com.liferay.portal.service.ServiceContext serviceContext)
051 throws com.liferay.portal.kernel.exception.PortalException,
052 com.liferay.portal.kernel.exception.SystemException;
053
054 public void checkRepository(long repositoryId)
055 throws com.liferay.portal.kernel.exception.SystemException;
056
057 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
058 public com.liferay.portal.kernel.repository.LocalRepository getLocalRepositoryImpl(
059 long repositoryId)
060 throws com.liferay.portal.kernel.exception.PortalException,
061 com.liferay.portal.kernel.exception.SystemException;
062
063 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
064 public com.liferay.portal.kernel.repository.LocalRepository getLocalRepositoryImpl(
065 long folderId, long fileEntryId, long fileVersionId)
066 throws com.liferay.portal.kernel.exception.PortalException,
067 com.liferay.portal.kernel.exception.SystemException;
068
069 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
070 public com.liferay.portal.model.Repository getRepository(long repositoryId)
071 throws com.liferay.portal.kernel.exception.PortalException,
072 com.liferay.portal.kernel.exception.SystemException;
073
074 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
075 public com.liferay.portal.kernel.repository.Repository getRepositoryImpl(
076 long repositoryId)
077 throws com.liferay.portal.kernel.exception.PortalException,
078 com.liferay.portal.kernel.exception.SystemException;
079
080 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
081 public com.liferay.portal.kernel.repository.Repository getRepositoryImpl(
082 long folderId, long fileEntryId, long fileVersionId)
083 throws com.liferay.portal.kernel.exception.PortalException,
084 com.liferay.portal.kernel.exception.SystemException;
085
086 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
087 public java.lang.String[] getSupportedConfigurations(long classNameId)
088 throws com.liferay.portal.kernel.exception.SystemException;
089
090 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
091 public java.lang.String[] getSupportedParameters(long classNameId,
092 java.lang.String configuration)
093 throws com.liferay.portal.kernel.exception.SystemException;
094
095 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
096 public com.liferay.portal.kernel.util.UnicodeProperties getTypeSettingsProperties(
097 long repositoryId)
098 throws com.liferay.portal.kernel.exception.PortalException,
099 com.liferay.portal.kernel.exception.SystemException;
100
101 public void unmountRepositories(long groupId)
102 throws com.liferay.portal.kernel.exception.PortalException,
103 com.liferay.portal.kernel.exception.SystemException;
104
105 public void unmountRepository(long repositoryId)
106 throws com.liferay.portal.kernel.exception.PortalException,
107 com.liferay.portal.kernel.exception.SystemException;
108
109 public void updateRepository(long repositoryId, java.lang.String name,
110 java.lang.String description)
111 throws com.liferay.portal.kernel.exception.PortalException,
112 com.liferay.portal.kernel.exception.SystemException;
113 }