本文整理汇总了Java中org.eclipse.che.api.git.shared.ProviderInfo类的典型用法代码示例。如果您正苦于以下问题:Java ProviderInfo类的具体用法?Java ProviderInfo怎么用?Java ProviderInfo使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ProviderInfo类属于org.eclipse.che.api.git.shared包,在下文中一共展示了ProviderInfo类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getProviderInfo
import org.eclipse.che.api.git.shared.ProviderInfo; //导入依赖的package包/类
@Override
public ProviderInfo getProviderInfo() {
return new ProviderInfo(
OAUTH_PROVIDER_NAME,
UriBuilder.fromUri("/oauth/authenticate")
.queryParam("oauth_provider", OAUTH_PROVIDER_NAME)
.queryParam("userId", EnvironmentContext.getCurrent().getSubject().getUserId())
.build()
.toString());
}
示例2: getProviderInfo
import org.eclipse.che.api.git.shared.ProviderInfo; //导入依赖的package包/类
@Override
public ProviderInfo getProviderInfo() {
return new ProviderInfo(
OAUTH_PROVIDER_NAME,
UriBuilder.fromUri(authorizationServiceUrl)
.queryParam("oauth_provider", OAUTH_PROVIDER_NAME)
.queryParam("userId", EnvironmentContext.getCurrent().getSubject().getUserId())
.queryParam("scope", "vso.code_manage", "vso.code_status")
.build()
.toString());
}
示例3: getProviderInfo
import org.eclipse.che.api.git.shared.ProviderInfo; //导入依赖的package包/类
/**
* Searches for CredentialsProvider instances by url and if needed instance exists, it asks for
* info, or return null otherwise.
*
* @param url given URL
* @return credentials from provider
*/
public ProviderInfo getProviderInfo(String url) {
for (CredentialsProvider cp : credentialsProviders.values()) {
if (url != null && cp.canProvideCredentials(url)) {
return cp.getProviderInfo();
}
}
return null;
}
示例4: getProviderInfo
import org.eclipse.che.api.git.shared.ProviderInfo; //导入依赖的package包/类
@Override
public ProviderInfo getProviderInfo() {
return new ProviderInfo(
OAUTH_PROVIDER_NAME,
UriBuilder.fromPath(authorizationServicePath)
.queryParam("oauth_provider", OAUTH_PROVIDER_NAME)
.queryParam("userId", EnvironmentContext.getCurrent().getSubject().getUserId())
.queryParam("scope", "repo,write:public_key")
.build()
.toString());
}
示例5: getProviderInfo
import org.eclipse.che.api.git.shared.ProviderInfo; //导入依赖的package包/类
@Override
public ProviderInfo getProviderInfo() {
return null;
}
示例6: getProviderInfo
import org.eclipse.che.api.git.shared.ProviderInfo; //导入依赖的package包/类
@Override
public ProviderInfo getProviderInfo() {
return new ProviderInfo(BASIC_PROVIDER_NAME);
}
示例7: getProviderInfo
import org.eclipse.che.api.git.shared.ProviderInfo; //导入依赖的package包/类
/** @return additional information about given provider */
ProviderInfo getProviderInfo();