pro.taskana.workbasket.rest.models.WorkbasketDefinitionRepresentationModel Maven / Gradle / Ivy
package pro.taskana.workbasket.rest.models;
import java.util.List;
import java.util.Set;
import org.springframework.hateoas.RepresentationModel;
import pro.taskana.common.api.LoggerUtils;
import pro.taskana.workbasket.internal.models.WorkbasketAccessItemImpl;
/** this class represents a workbasket including its distro targets and authorisations. */
public class WorkbasketDefinitionRepresentationModel
extends RepresentationModel {
private Set distributionTargets;
private List authorizations;
private WorkbasketRepresentationModelWithoutLinks workbasket;
public WorkbasketDefinitionRepresentationModel() {
// necessary for de-serializing
}
public WorkbasketDefinitionRepresentationModel(
WorkbasketRepresentationModelWithoutLinks workbasket,
Set distributionTargets,
List authorizations) {
super();
this.workbasket = workbasket;
this.distributionTargets = distributionTargets;
this.authorizations = authorizations;
}
public Set getDistributionTargets() {
return distributionTargets;
}
public void setDistributionTargets(Set distributionTargets) {
this.distributionTargets = distributionTargets;
}
public List getAuthorizations() {
return authorizations;
}
public void setAuthorizations(List authorizations) {
this.authorizations = authorizations;
}
public WorkbasketRepresentationModelWithoutLinks getWorkbasket() {
return workbasket;
}
public void setWorkbasket(WorkbasketRepresentationModelWithoutLinks workbasket) {
this.workbasket = workbasket;
}
@Override
public String toString() {
return "WorkbasketDefinitionResource ["
+ "distributionTargets= "
+ LoggerUtils.setToString(this.distributionTargets)
+ "authorizations= "
+ LoggerUtils.listToString(this.authorizations)
+ "workbasket= "
+ this.workbasket
+ "]";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy