当前位置: 首页>>代码示例>>Java>>正文


Java SharePointClient类代码示例

本文整理汇总了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();
                }
            }
    );
}
 
开发者ID:OfficeDev,项目名称:O365-Android-Snippets,代码行数:57,代码来源:OperationListActivity.java

示例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);
}
 
开发者ID:mirontoli,项目名称:andpoint,代码行数:15,代码来源:O365FileListModel.java

示例3: getO365MyFilesClient

import com.microsoft.fileservices.odata.SharePointClient; //导入依赖的package包/类
public SharePointClient getO365MyFilesClient() {
    return mO365MyFilesClient;
}
 
开发者ID:OfficeDev,项目名称:O365-Android-Snippets,代码行数:4,代码来源:BaseUserStory.java

示例4: setO365MyFilesClient

import com.microsoft.fileservices.odata.SharePointClient; //导入依赖的package包/类
public void setO365MyFilesClient(SharePointClient client) {
    mO365MyFilesClient = client;
}
 
开发者ID:OfficeDev,项目名称:O365-Android-Snippets,代码行数:4,代码来源:BaseUserStory.java

示例5: getO365MyFilesClient

import com.microsoft.fileservices.odata.SharePointClient; //导入依赖的package包/类
@Override
public SharePointClient getO365MyFilesClient() {
    return mMyFilesClient;
}
 
开发者ID:OfficeDev,项目名称:O365-Android-Snippets,代码行数:5,代码来源:OperationListActivity.java

示例6: FileFolderSnippets

import com.microsoft.fileservices.odata.SharePointClient; //导入依赖的package包/类
public FileFolderSnippets(SharePointClient sharePointClient) {
    mSharePointClient = sharePointClient;
}
 
开发者ID:OfficeDev,项目名称:O365-Android-Snippets,代码行数:4,代码来源:FileFolderSnippets.java

示例7: getO365MyFilesClient

import com.microsoft.fileservices.odata.SharePointClient; //导入依赖的package包/类
public SharePointClient getO365MyFilesClient(); 
开发者ID:OfficeDev,项目名称:O365-Android-Snippets,代码行数:2,代码来源:O365Operations.java


注:本文中的com.microsoft.fileservices.odata.SharePointClient类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。