001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
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    /**
025     * The interface for the repository remote service.
026     *
027     * <p>
028     * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
029     * </p>
030     *
031     * @author Brian Wing Shun Chan
032     * @see RepositoryServiceUtil
033     * @see com.liferay.portal.service.base.RepositoryServiceBaseImpl
034     * @see com.liferay.portal.service.impl.RepositoryServiceImpl
035     * @generated
036     */
037    @JSONWebService
038    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
039            PortalException.class, SystemException.class})
040    public interface RepositoryService {
041            /*
042             * NOTE FOR DEVELOPERS:
043             *
044             * Never modify or reference this interface directly. Always use {@link RepositoryServiceUtil} to access the repository remote service. Add custom service methods to {@link com.liferay.portal.service.impl.RepositoryServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
045             */
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    }