public static <K, V> MapBuilder<K, V> create() { return new MapBuilder<K, V>(); }
/** * 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() ); }
public static MapBuilder<String, Object> params() { return create(); }
@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(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() ); }
@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() ); }