Liferay 6.2-ce-ga5

com.liferay.portal.sharepoint
Class BaseSharepointStorageImpl

java.lang.Object
  extended by com.liferay.portal.sharepoint.BaseSharepointStorageImpl
All Implemented Interfaces:
SharepointStorage
Direct Known Subclasses:
CompanySharepointStorageImpl, DLSharepointStorageImpl, GroupSharepointStorageImpl

public abstract class BaseSharepointStorageImpl
extends Object
implements SharepointStorage


Constructor Summary
BaseSharepointStorageImpl()
           
 
Method Summary
protected  void addDocumentElement(Element element, String documentName, Date createDate, Date modifiedDate, String userName)
           
 void addDocumentElements(SharepointRequest sharepointRequest, Element element)
           
 void createFolder(SharepointRequest sharepointRequest)
           
protected  String getDate(Date date, boolean xml)
           
 InputStream getDocumentInputStream(SharepointRequest sharepointRequest)
           
 Tree getDocumentsTree(SharepointRequest sharepointRequest)
           
 Tree getDocumentTree(SharepointRequest sharepointRequest)
           
protected  Tree getDocumentTree(String documentName, Date createDate, Date modifiedDate, long size, String userName, String version)
           
 Tree getFoldersTree(SharepointRequest sharepointRequest)
           
 Tree getFolderTree(SharepointRequest sharepointRequest)
           
protected  Tree getFolderTree(String name)
           
protected  Tree getFolderTree(String name, Date createDate, Date modifiedDate, Date lastPostDate)
           
protected  long getLastFolderId(long groupId, String path, long defaultParentFolderId)
           
 void getParentFolderIds(long groupId, String path, List<Long> folderIds)
           
protected  String getParentFolderPath(String path)
           
protected  String getResourceName(String path)
           
 Tree[] moveDocument(SharepointRequest sharepointRequest)
           
 void putDocument(SharepointRequest sharepointRequest)
           
 Tree[] removeDocument(SharepointRequest sharepointRequest)
           
protected  String removeFoldersFromPath(String path, int index)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseSharepointStorageImpl

public BaseSharepointStorageImpl()
Method Detail

addDocumentElements

public void addDocumentElements(SharepointRequest sharepointRequest,
                                Element element)
                         throws Exception
Specified by:
addDocumentElements in interface SharepointStorage
Throws:
Exception

createFolder

public void createFolder(SharepointRequest sharepointRequest)
                  throws Exception
Specified by:
createFolder in interface SharepointStorage
Throws:
Exception

getDocumentInputStream

public InputStream getDocumentInputStream(SharepointRequest sharepointRequest)
                                   throws Exception
Specified by:
getDocumentInputStream in interface SharepointStorage
Throws:
Exception

getDocumentsTree

public Tree getDocumentsTree(SharepointRequest sharepointRequest)
                      throws Exception
Specified by:
getDocumentsTree in interface SharepointStorage
Throws:
Exception

getDocumentTree

public Tree getDocumentTree(SharepointRequest sharepointRequest)
                     throws Exception
Specified by:
getDocumentTree in interface SharepointStorage
Throws:
Exception

getFoldersTree

public Tree getFoldersTree(SharepointRequest sharepointRequest)
                    throws Exception
Specified by:
getFoldersTree in interface SharepointStorage
Throws:
Exception

getFolderTree

public Tree getFolderTree(SharepointRequest sharepointRequest)
                   throws Exception
Specified by:
getFolderTree in interface SharepointStorage
Throws:
Exception

getParentFolderIds

public void getParentFolderIds(long groupId,
                               String path,
                               List<Long> folderIds)
                        throws Exception
Specified by:
getParentFolderIds in interface SharepointStorage
Throws:
Exception

moveDocument

public Tree[] moveDocument(SharepointRequest sharepointRequest)
                    throws Exception
Specified by:
moveDocument in interface SharepointStorage
Throws:
Exception

putDocument

public void putDocument(SharepointRequest sharepointRequest)
                 throws Exception
Specified by:
putDocument in interface SharepointStorage
Throws:
Exception

removeDocument

public Tree[] removeDocument(SharepointRequest sharepointRequest)
                      throws Exception
Specified by:
removeDocument in interface SharepointStorage
Throws:
Exception

addDocumentElement

protected void addDocumentElement(Element element,
                                  String documentName,
                                  Date createDate,
                                  Date modifiedDate,
                                  String userName)
                           throws Exception
Throws:
Exception

getDate

protected String getDate(Date date,
                         boolean xml)

getDocumentTree

protected Tree getDocumentTree(String documentName,
                               Date createDate,
                               Date modifiedDate,
                               long size,
                               String userName,
                               String version)

getFolderTree

protected Tree getFolderTree(String name)

getFolderTree

protected Tree getFolderTree(String name,
                             Date createDate,
                             Date modifiedDate,
                             Date lastPostDate)

getLastFolderId

protected long getLastFolderId(long groupId,
                               String path,
                               long defaultParentFolderId)
                        throws Exception
Throws:
Exception

getParentFolderPath

protected String getParentFolderPath(String path)

getResourceName

protected String getResourceName(String path)

removeFoldersFromPath

protected String removeFoldersFromPath(String path,
                                       int index)

Liferay 6.2-ce-ga5