public static <K, V> MapBuilder<K, V> of(K key, V value) { return MapBuilder.<K, V>create().with(key, value); }
@Override public JsonNode forStorage(StashProjectConfigurationProperty value) { return format( MapBuilder.params() .with("configuration", value.getConfiguration().getName()) .with("project", value.getProject()) .with("repository", value.getRepository()) .with("indexationInterval", value.getIndexationInterval()) .with("issueServiceConfigurationIdentifier", value.getIssueServiceConfigurationIdentifier()) .get() ); }
/** * As a list of validation stamp IDs */ @Override public JsonNode forStorage(AutoPromotionProperty value) { return format( MapBuilder.create() .with("validationStamps", value.getValidationStamps().stream() .map(Entity::id) .collect(Collectors.toList())) .with("include", value.getInclude()) .with("exclude", value.getExclude()) .get() ); }
@Override public JsonNode forStorage(GitHubProjectConfigurationProperty value) { return format( MapBuilder.params() .with("configuration", value.getConfiguration().getName()) .with("repository", value.getRepository()) .with("indexationInterval", value.getIndexationInterval()) .with("issueServiceConfigurationIdentifier", value.getIssueServiceConfigurationIdentifier()) .get() ); }
@Override public JsonNode forStorage(GitLabProjectConfigurationProperty value) { return format( MapBuilder.params() .with("configuration", value.getConfiguration().getName()) .with("repository", value.getRepository()) .with("indexationInterval", value.getIndexationInterval()) .with("issueServiceConfigurationIdentifier", value.getIssueServiceConfigurationIdentifier()) .get() ); }
@Override public JsonNode forStorage(ArtifactoryPromotionSyncProperty value) { return format( MapBuilder.params() .with("configuration", value.getConfiguration().getName()) .with("buildName", value.getBuildName()) .with("buildNameFilter", value.getBuildNameFilter()) .with("interval", value.getInterval()) .get() ); }