com.hpe.caf.util.boilerplate.creation.CreationResult Maven / Gradle / Ivy
/*
* Copyright 2015-2017 Hewlett Packard Enterprise Development LP.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.hpe.caf.util.boilerplate.creation;
import com.hpe.caf.boilerplate.webcaller.model.Tag;
import java.util.Collection;
import java.util.stream.Collectors;
/**
* Created by Michael.McAlynn on 18/01/2016.
*/
public class CreationResult {
private String projectId;
private Collection expressions;
private Collection tags;
public CreationResult(String projectId, Collection expressions, Collection tags){
this.projectId = projectId;
this.expressions = expressions.stream().map(e -> new CreationResultOutput(e.getId(), e.getName())).collect(Collectors.toList());;
this.tags = tags.stream().map(t -> new CreationResultOutput(t.getId(), t.getName())).collect(Collectors.toList());
}
public Collection getTags(){
return tags;
}
public void setTags(Collection tags){
this.tags = tags;
}
public Collection getExpressions(){
return expressions;
}
public void setExpressions(Collection boilerplateExpressions){
this.expressions = boilerplateExpressions;
}
public String getProjectId() {
return projectId;
}
public void setProjectId(String projectId) {
this.projectId = projectId;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy