public interface SharepointService extends Closeable
String getWebId() throws SharepointException
SharepointException
String getFormDigestValue() throws SharepointException
SharepointException
SharepointList getList(String id, String query) throws SharepointException
SharepointException
SharepointListItemResults getListItems(String id, String query) throws SharepointException
SharepointException
Map<String,Object> getListItemById(String listId, Integer id) throws SharepointException
SharepointException
SharepointListItemResults getListItems(String id, String query, Boolean queryEncoded) throws SharepointException
SharepointException
List<SharepointList> getLists(String query) throws SharepointException
SharepointException
List<SharepointListField> getListFields(String id, String query) throws SharepointException
SharepointException
void deleteList(String id) throws SharepointException
SharepointException
SharepointList createList(SharepointList list) throws SharepointException
SharepointException
void updateList(String listId, SharepointList list) throws SharepointException
SharepointException
Map<String,Object> createListItem(String id, SharepointListItem item) throws SharepointException
SharepointException
void deleteListItem(String listId, String itemId) throws SharepointException
SharepointException
SharePointAttachResult attachFile(String filename, String listTitle, String itemId, org.apache.http.HttpEntity entity) throws SharepointException
SharepointException
void updateListItem(String listId, String itemId, Map<String,Object> updatedFields) throws SharepointException
SharepointException
SharepointFolder createFolder(SharepointFolder folder) throws SharepointException
SharepointException
SharepointFolder getFolder(String serverRelativeUrl) throws SharepointException
SharepointException
SharepointListItem listItemAllFields(String fileRelativeUrl) throws SharepointException
SharepointException
void deleteFolder(String serverRelativeUrl) throws SharepointException
SharepointException
void updateFolder(String serverRelativeUrl, Map<String,Object> updatedFields) throws SharepointException
SharepointException
List<Map<String,Object>> queryFolders(String query, String folderPath, Boolean recursive) throws SharepointException
SharepointException
<T> T addBlob(String url, org.apache.http.HttpEntity entity, Class<T> clazz, boolean unwrapConfig) throws SharepointException
SharepointException
SharepointMapResult resolveMapResult(String url, org.apache.http.HttpEntity entity, boolean unwrapConfig) throws SharepointException
SharepointException
SharepointListItemResults getPage(String pageUrl) throws SharepointException
SharepointException
SharepointFile addFile(String filename, String folderPath, org.apache.http.HttpEntity entity, Boolean overwrite) throws SharepointException
SharepointException
SharepointFile getFileMetadata(String filename, String folderPath) throws SharepointException
SharepointException
SharepointFile getFileMetadata(String filename, String folderPath, String query) throws SharepointException
SharepointException
void deleteFile(String filename, String folderPath) throws SharepointException
SharepointException
byte[] getFileContent(String filename, String folderPath) throws SharepointException
SharepointException
void checkoutFile(String filename, String folderPath) throws SharepointException
SharepointException
void checkInFile(String filename, String folderPath, String checkInType, String comment) throws SharepointException
SharepointException
void undoCheckOut(String filename, String folderPath) throws SharepointException
SharepointException
void publishFile(String filename, String folderPath, String comment) throws SharepointException
SharepointException
void unpublishFile(String filename, String folderPath, String comment) throws SharepointException
SharepointException
void approveFile(String filename, String folderPath, String comment) throws SharepointException
SharepointException
void denyFile(String filename, String folderPath, String comment) throws SharepointException
SharepointException
List<Map<String,Object>> queryFile(String query, String parsedFolderPath, Boolean recursive) throws SharepointException
SharepointException
void copyFileTo(String filename, String folderPath, String newFilePath, Boolean overwrite) throws SharepointException
SharepointException
String recycleFile(String filename, String folderPath) throws SharepointException
SharepointException
Map<String,Object> resolveObject(String url) throws SharepointException
SharepointException
List<Map<String,Object>> resolveCollection(String url) throws SharepointException
SharepointException
Map<String,Object> resolveCreate(String url, Object body) throws SharepointException
SharepointException
void resolveUpdate(String url, Object body) throws SharepointException
SharepointException
void resolveDelete(String url) throws SharepointException
SharepointException
<T> T resolvePost(String url, Object body, Class<T> clazz) throws SharepointException
SharepointException
SharepointListItem getAllItemFields(String fileServerRelativeUrl, Map<String,Object> updatedProperties) throws SharepointException
SharepointException
void updateFileMetadata(SharepointListItem file, Map<String,Object> updatedProperties) throws SharepointException
SharepointException
void init(org.apache.http.impl.client.CloseableHttpClient client, org.apache.http.protocol.HttpContext context, URL siteUrl)
<T> T getForObject(String path, Class<T> clazz) throws SharepointException
SharepointException
Copyright © 2010–2020. All rights reserved.