public abstract class BaseSharepointStorageImpl extends Object implements SharepointStorage
Constructor and Description |
---|
BaseSharepointStorageImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
addDocumentElement(com.liferay.portal.kernel.xml.Element element,
String documentName,
Date createDate,
Date modifiedDate,
String userName) |
void |
addDocumentElements(SharepointRequest sharepointRequest,
com.liferay.portal.kernel.xml.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) |
public void addDocumentElements(SharepointRequest sharepointRequest, com.liferay.portal.kernel.xml.Element element) throws Exception
addDocumentElements
in interface SharepointStorage
Exception
public void createFolder(SharepointRequest sharepointRequest) throws Exception
createFolder
in interface SharepointStorage
Exception
public InputStream getDocumentInputStream(SharepointRequest sharepointRequest) throws Exception
getDocumentInputStream
in interface SharepointStorage
Exception
public Tree getDocumentsTree(SharepointRequest sharepointRequest) throws Exception
getDocumentsTree
in interface SharepointStorage
Exception
public Tree getDocumentTree(SharepointRequest sharepointRequest) throws Exception
getDocumentTree
in interface SharepointStorage
Exception
public Tree getFoldersTree(SharepointRequest sharepointRequest) throws Exception
getFoldersTree
in interface SharepointStorage
Exception
public Tree getFolderTree(SharepointRequest sharepointRequest) throws Exception
getFolderTree
in interface SharepointStorage
Exception
public void getParentFolderIds(long groupId, String path, List<Long> folderIds) throws Exception
getParentFolderIds
in interface SharepointStorage
Exception
public Tree[] moveDocument(SharepointRequest sharepointRequest) throws Exception
moveDocument
in interface SharepointStorage
Exception
public void putDocument(SharepointRequest sharepointRequest) throws Exception
putDocument
in interface SharepointStorage
Exception
public Tree[] removeDocument(SharepointRequest sharepointRequest) throws Exception
removeDocument
in interface SharepointStorage
Exception
protected void addDocumentElement(com.liferay.portal.kernel.xml.Element element, String documentName, Date createDate, Date modifiedDate, String userName) throws Exception
Exception
protected String getDate(Date date, boolean xml)
protected Tree getDocumentTree(String documentName, Date createDate, Date modifiedDate, long size, String userName, String version)
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) throws Exception
Exception
protected String getParentFolderPath(String path)
protected String getResourceName(String path)
protected String removeFoldersFromPath(String path, int index)