Search in sources :

Example 1 with Property

use of jetbrains.buildServer.server.rest.model.Property in project teamcity-rest by JetBrains.

the class DataUpdater method addProperties.

private void addProperties(final SUser user, @NotNull final Properties properties) {
    if (properties.properties == null)
        return;
    Map<PropertyKey, String> convertedProperties = new HashMap<PropertyKey, String>(properties.properties.size());
    for (Property listItem : properties.properties) {
        convertedProperties.put(new SimplePropertyKey(listItem.name), listItem.value);
    }
    user.setUserProperties(convertedProperties);
}
Also used : Property(jetbrains.buildServer.server.rest.model.Property)

Aggregations

Property (jetbrains.buildServer.server.rest.model.Property)1