本文整理汇总了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();