1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
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  }