本文整理匯總了Java中com.microsoft.fileservices.odata.SharePointClient類的典型用法代碼示例。如果您正苦於以下問題:Java SharePointClient類的具體用法?Java SharePointClient怎麽用?Java SharePointClient使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
SharePointClient類屬於com.microsoft.fileservices.odata包,在下文中一共展示了SharePointClient類的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getFileFolderServiceResource
import com.microsoft.fileservices.odata.SharePointClient; //導入依賴的package包/類
private void getFileFolderServiceResource() {
final SettableFuture<ServiceInfo> serviceDiscovered;
serviceDiscovered = DiscoveryController
.getInstance()
.getServiceInfo(Constants.MYFILES_CAPABILITY);
Futures.addCallback(
serviceDiscovered,
new FutureCallback<ServiceInfo>() {
@Override
public void onSuccess(ServiceInfo serviceInfo) {
Log.i(TAG, "onConnect - My files service discovered");
showDiscoverSuccessUI();
mMyFilesServiceResourceId =
serviceInfo.getserviceResourceId();
mMyFilesServiceEndpointUri =
serviceInfo.getserviceEndpointUri();
AuthenticationController.getInstance()
.setResourceId(mMyFilesServiceResourceId);
ADALDependencyResolver dependencyResolver = (ADALDependencyResolver) AuthenticationController
.getInstance()
.getDependencyResolver();
mMyFilesClient = new SharePointClient(
mMyFilesServiceEndpointUri,
dependencyResolver
);
//User is connected, SharePoint client endpoint is found
// Enable list item selection on main activity
enableListClick();
runOnUiThread(
new Runnable() {
@Override
public void run() {
mSignIn.setEnabled(false);
mSignOut.setEnabled(true);
}
}
);
}
@Override
public void onFailure(final Throwable t) {
Log.e(TAG, "onConnect - " + t.getMessage());
showDiscoverErrorUI();
}
}
);
}
示例2: postNewFileToServer
import com.microsoft.fileservices.odata.SharePointClient; //導入依賴的package包/類
public void postNewFileToServer(
final O365APIsStart_Application application,
final Activity currentActivity, String fileName,
final String fileContents, final SharePointClient fileClient) {
//Convert string to byte array and call the other overload of
//postNewFileToServer
postNewFileToServer(
application
, currentActivity
, fileName
, fileContents.getBytes()
, fileClient);
}
示例3: getO365MyFilesClient
import com.microsoft.fileservices.odata.SharePointClient; //導入依賴的package包/類
public SharePointClient getO365MyFilesClient() {
return mO365MyFilesClient;
}
示例4: setO365MyFilesClient
import com.microsoft.fileservices.odata.SharePointClient; //導入依賴的package包/類
public void setO365MyFilesClient(SharePointClient client) {
mO365MyFilesClient = client;
}
示例5: getO365MyFilesClient
import com.microsoft.fileservices.odata.SharePointClient; //導入依賴的package包/類
@Override
public SharePointClient getO365MyFilesClient() {
return mMyFilesClient;
}
示例6: FileFolderSnippets
import com.microsoft.fileservices.odata.SharePointClient; //導入依賴的package包/類
public FileFolderSnippets(SharePointClient sharePointClient) {
mSharePointClient = sharePointClient;
}
示例7: getO365MyFilesClient
import com.microsoft.fileservices.odata.SharePointClient; //導入依賴的package包/類
public SharePointClient getO365MyFilesClient();