package com.megatim.fdxconsultation.model.referentiel.dtos;
|
|
import com.megatim.fdxcommons.model.referentiel.Routage;
|
import java.io.Serializable;
|
import java.time.LocalDateTime;
|
|
/**
|
*
|
* @author Gabuntu
|
*/
|
public class RoutageSlimResponse implements Serializable {
|
|
protected final Routage routage;
|
|
public RoutageSlimResponse(Routage routage) {
|
this.routage = routage;
|
}
|
|
public String getCode() {
|
return routage.getTypeFichier().getCode() + "-" + routage.getReferentiel().getVersion();
|
}
|
|
public ReferentielSlimResponse getReferentiel() {
|
return new ReferentielSlimResponse(routage.getReferentiel());
|
}
|
|
public TypeFichierSlimResponse getTypeFichier() {
|
return new TypeFichierSlimResponse(routage.getTypeFichier());
|
}
|
|
public String getCreateBy() {
|
return routage.getCreateBy();
|
}
|
|
public String getLastModifiedBy() {
|
return routage.getLastModifiedBy();
|
}
|
|
public LocalDateTime getDateCreation() {
|
return routage.getDateCreation();
|
}
|
|
public LocalDateTime getDateMiseAjour() {
|
return routage.getDateMiseAjour();
|
}
|
|
}
|