本文整理了Java中net.nemerosa.ontrack.model.support.Action
类的一些代码示例,展示了Action
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Action
类的具体详情如下:
包路径:net.nemerosa.ontrack.model.support.Action
类名称:Action
暂无
代码示例来源:origin: net.nemerosa.ontrack/ontrack-extension-stash
@Override
public Action getAction() {
return Action.of("stash-configurations", "BitBucket configurations", "configurations");
}
}
代码示例来源:origin: net.nemerosa.ontrack/ontrack-ui-support
/**
* Given an action with a relative URI, gets a new Action with a fully resolved URI
*/
default Action resolveActionWithExtension(Extension extension, Action action) {
return action.withUri(
String.format("extension/%s/%s",
extension.getFeature().getId(),
action.getUri())
);
}
}
代码示例来源:origin: net.nemerosa.ontrack/ontrack-model
public static Action form(String id, String name, URI formUri) {
return new Action(id, name, ActionType.FORM, formUri.toString());
}
代码示例来源:origin: net.nemerosa.ontrack/ontrack-model
public static Action of(String id, String name, String uri, Object... parameters) {
return new Action(id, name, ActionType.LINK, String.format(uri, parameters));
}
代码示例来源:origin: net.nemerosa.ontrack/ontrack-extension-combined
@Override
public Action getAction() {
return Action.of("combined-issue-service-configurations", "Combined issue services configurations", "configurations");
}
}
代码示例来源:origin: net.nemerosa.ontrack/ontrack-extension-github
@Override
public Action getAction() {
return Action.of("github-configurations", "GitHub configurations", "configurations");
}
}
代码示例来源:origin: net.nemerosa.ontrack/ontrack-extension-jira
@Override
public Action getAction() {
return Action.of("jira-configurations", "JIRA configurations", "configurations");
}
}
代码示例来源:origin: net.nemerosa.ontrack/ontrack-extension-svn
@Override
public Action getAction() {
return Action.of("svn-configurations", "SVN configurations", "configurations");
}
}
代码示例来源:origin: net.nemerosa.ontrack/ontrack-extension-jenkins
@Override
public Action getAction() {
return Action.of("jenkins-configurations", "Jenkins configurations", "configurations");
}
}
代码示例来源:origin: net.nemerosa.ontrack/ontrack-extension-gitlab
@Override
public Action getAction() {
return Action.of("gitlab-configurations", "GitLab configurations", "configurations");
}
}
代码示例来源:origin: net.nemerosa.ontrack/ontrack-extension-artifactory
@Override
public Action getAction() {
return Action.of("artifactory-configurations", "Artifactory configurations", "configurations");
}
}
代码示例来源:origin: net.nemerosa.ontrack/ontrack-extension-svn
@Override
public Action getAction() {
return Action.of("svn-changelog", "Change log", "changelog");
}
代码示例来源:origin: net.nemerosa.ontrack/ontrack-model
public Action withUri(String uri) {
return Action.of(id, name, uri);
}
代码示例来源:origin: net.nemerosa.ontrack/ontrack-extension-svn
@Override
public Optional<Action> getAction(ProjectEntity entity) {
if (entity instanceof Branch
&& propertyService.hasProperty(entity, SVNBranchConfigurationPropertyType.class)
&& securityService.isProjectFunctionGranted(entity, BuildCreate.class)) {
return Optional.of(Action.of(
"svn-sync",
"SVN <-> Build sync",
String.format("sync/%d", entity.id())
));
} else {
return Optional.empty();
}
}
代码示例来源:origin: net.nemerosa.ontrack/ontrack-extension-ldap
@Override
public Action getAction() {
LDAPSettings settings = cachedSettingsService.getCachedSettings(LDAPSettings.class);
if (settings.isEnabled()) {
return Action.of("ldap-mapping", "LDAP Mapping", "ldap-mapping");
} else {
return null;
}
}
内容来源于网络,如有侵权,请联系作者删除!