1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.sharepoint;
16  
17  import com.liferay.portal.kernel.xml.Element;
18  
19  import java.io.InputStream;
20  
21  import java.util.List;
22  
23  /**
24   * <a href="SharepointStorage.java.html"><b><i>View Source</i></b></a>
25   *
26   * @author Bruno Farache
27   */
28  public interface SharepointStorage {
29  
30      public void addDocumentElements(
31              SharepointRequest sharepointRequest, Element element)
32          throws Exception;
33  
34      public void createFolder(SharepointRequest sharepointRequest)
35          throws Exception;
36  
37      public InputStream getDocumentInputStream(
38              SharepointRequest sharepointRequest)
39          throws Exception;
40  
41      public Tree getDocumentTree(SharepointRequest sharepointRequest)
42          throws Exception;
43  
44      public Tree getDocumentsTree(SharepointRequest sharepointRequest)
45          throws Exception;
46  
47      public Tree getFolderTree(SharepointRequest sharepointRequest)
48          throws Exception;
49  
50      public Tree getFoldersTree(SharepointRequest sharepointRequest)
51          throws Exception;
52  
53      public void getParentFolderIds(
54              long groupId, String path, List<Long> folderIds)
55          throws Exception;
56  
57      public Tree[] moveDocument(SharepointRequest sharepointRequest)
58          throws Exception;
59  
60      public void putDocument(SharepointRequest sharepointRequest)
61          throws Exception;
62  
63      public Tree[] removeDocument(SharepointRequest sharepointRequest)
64          throws Exception;
65  
66  }