• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java RoleChecker类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.jenkinsci.remoting.RoleChecker的典型用法代码示例。如果您正苦于以下问题:Java RoleChecker类的具体用法?Java RoleChecker怎么用?Java RoleChecker使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



RoleChecker类属于org.jenkinsci.remoting包,在下文中一共展示了RoleChecker类的18个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: initiateDownloadsAtWorkspace

import org.jenkinsci.remoting.RoleChecker; //导入依赖的package包/类
private void initiateDownloadsAtWorkspace(
    final GoogleRobotCredentials credentials,
    final Run run, final List<StorageObjectId> objects,
    final FilePath localDir, final TaskListener listener,
    final String version, final String resolvedPrefix)
    throws IOException, InterruptedException {
  try {
    // Use remotable credential to access the storage service from the
    // remote machine.
    final GoogleRobotCredentials remoteCredentials =
        checkNotNull(credentials).forRemote(module.getRequirement());

    localDir.act(
        new Callable<Void, IOException>() {
          @Override
          public Void call() throws IOException {
            performDownloads(remoteCredentials, localDir, objects, listener,
                version, resolvedPrefix);
            return (Void) null;
          }

          @Override
          public void checkRoles(RoleChecker checker)
              throws SecurityException {
            // We know by definition that this is the correct role;
            // the callable exists only in this method context.
          }
        });
  } catch (GeneralSecurityException e) {
    throw new IOException(
        Messages.AbstractUpload_RemoteCredentialError(), e);
  }
}
 
开发者ID:jenkinsci,项目名称:google-storage-plugin,代码行数:34,代码来源:DownloadStep.java


示例2: checkRoles

import org.jenkinsci.remoting.RoleChecker; //导入依赖的package包/类
@Override
public void checkRoles(RoleChecker roleChecker) throws SecurityException {
    // normally parameters will be executed on the master, but in the
    // future we may start evaluating on slaves as well, with a custom
    // classpath as in dynamic-parameter-plugin
    roleChecker.check((RoleSensitive) this, Role.UNKNOWN);
}
 
开发者ID:imoutsatsos,项目名称:uno-choice-plugin,代码行数:8,代码来源:ScriptCallback.java


示例3: checkRoles

import org.jenkinsci.remoting.RoleChecker; //导入依赖的package包/类
@Override
public void checkRoles(RoleChecker checker)
{
	// Implementation required by interface, but not using
}
 
开发者ID:Compuware-Corp,项目名称:CPWR-CodeCoverage,代码行数:6,代码来源:RemoteSystemProperties.java


示例4: checkRoles

import org.jenkinsci.remoting.RoleChecker; //导入依赖的package包/类
@Override
public void checkRoles(RoleChecker arg0) throws SecurityException {}
 
开发者ID:warriorframework,项目名称:warrior-jenkins-plugin,代码行数:3,代码来源:WarriorPluginBuilder.java


示例5: checkRoles

import org.jenkinsci.remoting.RoleChecker; //导入依赖的package包/类
@Override
public void checkRoles(RoleChecker checker) throws SecurityException {
}
 
开发者ID:DonutReport,项目名称:donut-jenkins-plugin,代码行数:4,代码来源:DonutReportGenerator.java


示例6: checkRoles

import org.jenkinsci.remoting.RoleChecker; //导入依赖的package包/类
@Override
public void checkRoles(RoleChecker checker) throws SecurityException {
    // OK to execute it anywhere
    checker.check(this, Arrays.asList(Roles.MASTER, Roles.SLAVE));
}
 
开发者ID:biouno,项目名称:figshare-plugin,代码行数:6,代码来源:FigShareNotifier.java


示例7: doFillFilenameLoadSessionItems

import org.jenkinsci.remoting.RoleChecker; //导入依赖的package包/类
/**
 * List model to choose the ZAP session to use. It's called on the remote machine (if present)
 * to load all session files in the build's workspace.
 * 
 * @return a {@link ListBoxModel}. It can be empty if the workspace doesn't contain any ZAP sessions.
 * @throws InterruptedException 
 * @throws IOException 
 */
public ListBoxModel doFillFilenameLoadSessionItems() throws IOException, InterruptedException {
	ListBoxModel items = new ListBoxModel();
	
	// No workspace before the first build, so workspace is null
	if(workspace != null) {
		Collection<String> sessionsInString = workspace.act(new FileCallable<Collection<String>>() {
			private static final long serialVersionUID = 1328740269013881941L;
	
			public Collection<String> invoke(File f, VirtualChannel channel) {
				
				// List all files with FILE_SESSION_EXTENSION on the machine where the workspace is located
				Collection<File> colFiles = FileUtils.listFiles(f,
						FileFilterUtils.suffixFileFilter(FILE_SESSION_EXTENSION),
						TrueFileFilter.INSTANCE);
				
				Collection<String> colString = new ArrayList<String>();
				
				// "Transform" File into String
				for (File file : colFiles) {
					colString.add(file.getAbsolutePath());
					// The following line is to remove the full path to the workspace,
					// keep just the relative path to the session
					//colString.add(file.getAbsolutePath().replace(workspace.getRemote() + File.separatorChar, ""));
				}
				return colString;
			}
	
			@Override
			public void checkRoles(RoleChecker checker) throws SecurityException {
				// Nothing to do
			}
		});
	
		items.add(""); // To not load a session, add a blank choice
		
		for (String s : sessionsInString) {
			items.add(s);
		}
	}
	
	return items;
}
 
开发者ID:jenkinsci,项目名称:zaproxy-plugin,代码行数:51,代码来源:ZAProxy.java


示例8: checkRoles

import org.jenkinsci.remoting.RoleChecker; //导入依赖的package包/类
@Override
public void checkRoles(RoleChecker checker) throws SecurityException {
	// Nothing to do
}
 
开发者ID:jenkinsci,项目名称:zaproxy-plugin,代码行数:5,代码来源:ZAProxy.java


示例9: checkRoles

import org.jenkinsci.remoting.RoleChecker; //导入依赖的package包/类
@Override
public void checkRoles(RoleChecker roleChecker) throws SecurityException {
}
 
开发者ID:KostyaSha,项目名称:yet-another-docker-plugin,代码行数:4,代码来源:DockerImageComboStepTest.java


示例10: checkRoles

import org.jenkinsci.remoting.RoleChecker; //导入依赖的package包/类
public void checkRoles(RoleChecker arg0) throws SecurityException {
}
 
开发者ID:rmalchow,项目名称:changelog-appender,代码行数:3,代码来源:ChangelogAppenderCallable.java


示例11: checkRoles

import org.jenkinsci.remoting.RoleChecker; //导入依赖的package包/类
@Override
public void checkRoles(RoleChecker roleChecker) throws SecurityException {
    //ignore for now
}
 
开发者ID:XT-i,项目名称:aws-lambda-jenkins-plugin,代码行数:5,代码来源:DeployCallable.java


示例12: checkRoles

import org.jenkinsci.remoting.RoleChecker; //导入依赖的package包/类
@Override
public void checkRoles(RoleChecker roleChecker) throws SecurityException {
    //We don't require any roles to be checked?
}
 
开发者ID:shanbin,项目名称:scoverage-plugin,代码行数:5,代码来源:ScoveragePublisher.java


示例13: checkRoles

import org.jenkinsci.remoting.RoleChecker; //导入依赖的package包/类
@Override
public void checkRoles(RoleChecker checker) throws SecurityException {
    // TODO Auto-generated method stub

}
 
开发者ID:jenkinsci,项目名称:lucene-search-plugin,代码行数:6,代码来源:ArtifactIndexer.java


示例14: checkRoles

import org.jenkinsci.remoting.RoleChecker; //导入依赖的package包/类
public void checkRoles(RoleChecker checker) throws SecurityException {
	checker.check((RoleSensitive) this, Roles.SLAVE);
}
 
开发者ID:p4paul,项目名称:p4-jenkins,代码行数:4,代码来源:CheckoutTask.java


示例15: checkRoles

import org.jenkinsci.remoting.RoleChecker; //导入依赖的package包/类
@Override
public void checkRoles(RoleChecker checker) throws SecurityException {
	checker.check((RoleSensitive) this, Roles.SLAVE);
}
 
开发者ID:p4paul,项目名称:p4-jenkins,代码行数:5,代码来源:UnshelveTask.java


示例16: checkRoles

import org.jenkinsci.remoting.RoleChecker; //导入依赖的package包/类
@Override
public void checkRoles(RoleChecker checker) throws SecurityException {
	// TODO Auto-generated method stub
	
}
 
开发者ID:p4paul,项目名称:p4-jenkins,代码行数:6,代码来源:TaggingTask.java


示例17: checkRoles

import org.jenkinsci.remoting.RoleChecker; //导入依赖的package包/类
@Override
public void checkRoles(RoleChecker arg0) throws SecurityException {
}
 
开发者ID:jenkinsci,项目名称:semantic-versioning-plugin,代码行数:4,代码来源:SemanticVersioningCallable.java


示例18: checkRoles

import org.jenkinsci.remoting.RoleChecker; //导入依赖的package包/类
@Override
public void checkRoles(RoleChecker arg0) throws SecurityException
{
  // TODO Auto-generated method stub
  
}
 
开发者ID:jenkinsci,项目名称:cloudtest-plugin,代码行数:7,代码来源:CommonInstaller.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java Application类代码示例发布时间:2022-05-21
下一篇:
Java ConsulClient类代码示例发布时间:2022-05-21
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap