本文整理了Java中hudson.model.Job.getACL()
方法的一些代码示例,展示了Job.getACL()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Job.getACL()
方法的具体详情如下:
包路径:hudson.model.Job
类名称:Job
方法名:getACL
[英]Returns the ACL for this object. We need to override the identical method in AbstractItem because we won't call getACL(Job) otherwise (single dispatch)
[中]返回此对象的ACL。我们需要重写AbstractItem中相同的方法,因为我们不会调用getACL(作业),否则(单次分派)
代码示例来源:origin: jenkinsci/jenkins
@Override
public ACL getACL() {
// for now, don't maintain ACL per run, and do it at project level
return getParent().getACL();
}
代码示例来源:origin: org.jenkins-ci.plugins/python-wrapper
public ACL superGetACL() {
return super.getACL();
}
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
@Override
public ACL getACL() {
// for now, don't maintain ACL per run, and do it at project level
return getParent().getACL();
}
代码示例来源:origin: org.jenkins-ci.plugins.workflow/workflow-job
@Override public ACL getACL() {
ACL acl = super.getACL();
for (JobProperty<?> property : properties) {
if (property instanceof WorkflowJobProperty) {
acl = ((WorkflowJobProperty) property).decorateACL(acl);
}
}
return acl;
}
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
public ACL getACL() {
// for now, don't maintain ACL per run, and do it at project level
return getParent().getACL();
}
代码示例来源:origin: org.eclipse.hudson/hudson-core
public ACL getACL() {
// for now, don't maintain ACL per run, and do it at project level
return getParent().getACL();
}
代码示例来源:origin: hudson/hudson-2.x
public ACL getACL() {
// for now, don't maintain ACL per run, and do it at project level
return getParent().getACL();
}
代码示例来源:origin: org.eclipse.hudson.main/hudson-core
public ACL getACL() {
// for now, don't maintain ACL per run, and do it at project level
return getParent().getACL();
}
代码示例来源:origin: org.jvnet.hudson.plugins/cvs
public String getIconFileName() {
if(tagName == null && !build.getParent().getACL().hasPermission(SCM.TAG)) {
return null;
}
return "save.gif";
}
代码示例来源:origin: org.hudsonci.plugins/cvs
public String getIconFileName() {
if(tagName == null && !build.getParent().getACL().hasPermission(SCM.TAG)) {
return null;
}
return "save.gif";
}
代码示例来源:origin: org.jenkins-ci.plugins/python-wrapper
@Override
public ACL getACL() {
initPython();
if (pexec.isImplemented(73)) {
return (ACL) pexec.execPython("get_acl");
} else {
return super.getACL();
}
}
代码示例来源:origin: jenkinsci/copyartifact-plugin
boolean b = job.getACL().hasPermission(Item.READ);
if (!b)
LOGGER.fine(String.format("Refusing to copy artifact from %s to %s because %s lacks Item.READ access",job,build, a));
boolean b = job.getACL().hasPermission(
new UsernamePasswordAuthenticationToken("authenticated", "",
new GrantedAuthority[]{ SecurityRealm.AUTHENTICATED_AUTHORITY }),
代码示例来源:origin: org.jenkins-ci.plugins/credentials
public <C extends IdCredentials> C lookupCredentials(@NonNull Class<C> type, @NonNull Run run,
List<DomainRequirement> domainRequirements) {
Authentication authentication = Jenkins.getAuthentication();
final Executor executor = run.getExecutor();
if (executor != null) {
final WorkUnit workUnit = executor.getCurrentWorkUnit();
if (workUnit != null) {
authentication = workUnit.context.item.authenticate();
}
}
List<C> candidates = new ArrayList<C>();
final boolean isSystem = ACL.SYSTEM.equals(authentication);
if (!isSystem && run.getParent().getACL()
.hasPermission(CredentialsProvider.USE_OWN)) {
candidates.addAll(CredentialsProvider
.lookupCredentials(type, run.getParent(), authentication, domainRequirements));
}
if (run.getParent().getACL().hasPermission(CredentialsProvider.USE_ITEM) || isSystem
|| isDefaultValue) {
candidates.addAll(
CredentialsProvider.lookupCredentials(type, run.getParent(), ACL.SYSTEM, domainRequirements));
}
return CredentialsMatchers.firstOrNull(candidates, CredentialsMatchers.withId(value));
}
代码示例来源:origin: jenkinsci/credentials-plugin
public <C extends IdCredentials> C lookupCredentials(@NonNull Class<C> type, @NonNull Run run,
List<DomainRequirement> domainRequirements) {
Authentication authentication = Jenkins.getAuthentication();
final Executor executor = run.getExecutor();
if (executor != null) {
final WorkUnit workUnit = executor.getCurrentWorkUnit();
if (workUnit != null) {
authentication = workUnit.context.item.authenticate();
}
}
List<C> candidates = new ArrayList<C>();
final boolean isSystem = ACL.SYSTEM.equals(authentication);
if (!isSystem && run.getParent().getACL()
.hasPermission(CredentialsProvider.USE_OWN)) {
candidates.addAll(CredentialsProvider
.lookupCredentials(type, run.getParent(), authentication, domainRequirements));
}
if (run.getParent().getACL().hasPermission(CredentialsProvider.USE_ITEM) || isSystem
|| isDefaultValue) {
candidates.addAll(
CredentialsProvider.lookupCredentials(type, run.getParent(), ACL.SYSTEM, domainRequirements));
}
return CredentialsMatchers.firstOrNull(candidates, CredentialsMatchers.withId(value));
}
代码示例来源:origin: org.jenkins-ci.plugins/s3
&& !job.job.getACL().hasPermission(
new UsernamePasswordAuthenticationToken("authenticated", "",
new GrantedAuthority[]{ SecurityRealm.AUTHENTICATED_AUTHORITY }),
内容来源于网络,如有侵权,请联系作者删除!