Skip to content

Commit

Permalink
Label accepted configuration parameter values
Browse files Browse the repository at this point in the history
  • Loading branch information
malteo committed Jun 8, 2020
1 parent c4f4017 commit c95e3dd
Showing 1 changed file with 26 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.util.Map;
import java.util.Objects;

import static com.cloudesire.platform.apiclient.dto.model.constants.ErrorKeys.INVALID_SIZE;
Expand Down Expand Up @@ -41,10 +42,23 @@ public class ConfigurationParameterDTO extends NamedEntityDTO
@ApiModelProperty( "Whether to hide the parameter values" )
private boolean sensitive;

private Map<String, String> labeledValues;

public ConfigurationParameterDTO( String name, String code, String description )
{
super( name );
this( name, description );
this.code = code;
}

public ConfigurationParameterDTO( String name, Map<String, String> labeledValues, String description )
{
this( name, description );
this.labeledValues = labeledValues;
}

private ConfigurationParameterDTO( String name, String description )
{
super( name );
this.description = description;
}

Expand Down Expand Up @@ -129,6 +143,17 @@ public ConfigurationParameterDTO setSensitive( boolean sensitive )
return this;
}

public Map<String, String> getLabeledValues()
{
return labeledValues;
}

public ConfigurationParameterDTO setLabeledValues( Map<String, String> labeledValues )
{
this.labeledValues = labeledValues;
return this;
}

@Override
public boolean equals( Object o )
{
Expand Down

0 comments on commit c95e3dd

Please sign in to comment.