001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.sharepoint;
016    
017    import com.liferay.portal.kernel.xml.Element;
018    
019    import java.io.InputStream;
020    
021    import java.util.List;
022    
023    /**
024     * @author Bruno Farache
025     */
026    public interface SharepointStorage {
027    
028            public void addDocumentElements(
029                            SharepointRequest sharepointRequest, Element element)
030                    throws Exception;
031    
032            public void createFolder(SharepointRequest sharepointRequest)
033                    throws Exception;
034    
035            public InputStream getDocumentInputStream(
036                            SharepointRequest sharepointRequest)
037                    throws Exception;
038    
039            public Tree getDocumentsTree(SharepointRequest sharepointRequest)
040                    throws Exception;
041    
042            public Tree getDocumentTree(SharepointRequest sharepointRequest)
043                    throws Exception;
044    
045            public Tree getFoldersTree(SharepointRequest sharepointRequest)
046                    throws Exception;
047    
048            public Tree getFolderTree(SharepointRequest sharepointRequest)
049                    throws Exception;
050    
051            public void getParentFolderIds(
052                            long groupId, String path, List<Long> folderIds)
053                    throws Exception;
054    
055            public Tree[] moveDocument(SharepointRequest sharepointRequest)
056                    throws Exception;
057    
058            public void putDocument(SharepointRequest sharepointRequest)
059                    throws Exception;
060    
061            public Tree[] removeDocument(SharepointRequest sharepointRequest)
062                    throws Exception;
063    
064    }