public class ListClient extends SharePointClient
| Constructor and Description |
|---|
ListClient(java.lang.String serverUrl,
java.lang.String siteRelativeUrl,
Credentials credentials)
Instantiates a new sharepoint lists client.
|
ListClient(java.lang.String serverUrl,
java.lang.String siteRelativeUrl,
Credentials credentials,
Logger logger)
Instantiates a new sharepoint lists client.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.common.util.concurrent.ListenableFuture<java.lang.Void> |
deleteListItem(SPListItem listItem,
java.lang.String listName)
Delete list item.
|
com.google.common.util.concurrent.ListenableFuture<java.util.List<java.lang.String>> |
getColumnsFromDefaultView(java.lang.String listName)
Gets columns from default view.
|
com.google.common.util.concurrent.ListenableFuture<SPList> |
getList(java.lang.String listName)
Gets the list.
|
com.google.common.util.concurrent.ListenableFuture<java.util.List<SPListField>> |
getListFields(java.lang.String listName,
Query query)
Gets the list fields.
|
com.google.common.util.concurrent.ListenableFuture<java.util.List<SPListItem>> |
getListItems(java.lang.String listName,
Query query)
Gets the list items.
|
com.google.common.util.concurrent.ListenableFuture<java.util.List<SPList>> |
getLists(Query query)
Gets lists.
|
com.google.common.util.concurrent.ListenableFuture<java.lang.String> |
getUserProperties()
Gets user properties.
|
com.google.common.util.concurrent.ListenableFuture<java.lang.Void> |
insertListItem(SPListItem listItem,
SPList list)
Insert list item.
|
com.google.common.util.concurrent.ListenableFuture<java.lang.Void> |
updateListItem(SPListItem listItem,
SPList list)
Update list item.
|
executeRequestJsonWithDigest, getFormDigest, getServerUrl, getSiteRelativeUrl, getSiteUrl, getUserByID, getWebTitleexecuteRequest, executeRequest, executeRequestJson, executeRequestJson, generateODataQueryString, getCredentials, getDiscoveryInfo, getDiscoveryInfo, getLogger, isValidStatus, log, log, prepareRequest, queryEncode, urlEncode, UUIDtoStringpublic ListClient(java.lang.String serverUrl,
java.lang.String siteRelativeUrl,
Credentials credentials)
serverUrl - the server urlsiteRelativeUrl - the site relative urlcredentials - the credentialspublic ListClient(java.lang.String serverUrl,
java.lang.String siteRelativeUrl,
Credentials credentials,
Logger logger)
serverUrl - the server urlsiteRelativeUrl - the site relative urlcredentials - the credentialslogger - the loggerpublic com.google.common.util.concurrent.ListenableFuture<java.util.List<SPList>> getLists(Query query)
query - the querypublic com.google.common.util.concurrent.ListenableFuture<SPList> getList(java.lang.String listName)
listName - the list namepublic com.google.common.util.concurrent.ListenableFuture<java.util.List<SPListItem>> getListItems(java.lang.String listName, Query query)
listName - the list namequery - the querypublic com.google.common.util.concurrent.ListenableFuture<java.util.List<SPListField>> getListFields(java.lang.String listName, Query query)
listName - the list namequery - the querypublic com.google.common.util.concurrent.ListenableFuture<java.lang.Void> insertListItem(SPListItem listItem, SPList list)
listItem - the list itemlist - the listpublic com.google.common.util.concurrent.ListenableFuture<java.lang.Void> updateListItem(SPListItem listItem, SPList list)
listItem - the list itemlist - the listpublic com.google.common.util.concurrent.ListenableFuture<java.lang.Void> deleteListItem(SPListItem listItem, java.lang.String listName)
listItem - the list itemlistName - the list namepublic com.google.common.util.concurrent.ListenableFuture<java.util.List<java.lang.String>> getColumnsFromDefaultView(java.lang.String listName)
listName - the list namepublic com.google.common.util.concurrent.ListenableFuture<java.lang.String> getUserProperties()