package com.cgi.eoss.ftep.model.projections;

import com.cgi.eoss.ftep.security.FtepAccess;
import com.cgi.eoss.ftep.model.FtepService;
import com.cgi.eoss.ftep.model.FtepServiceDescriptor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.data.rest.core.config.Projection;
import org.springframework.hateoas.Identifiable;

/**
 * <p>Comprehensive representation of an FtepService entity, including the full description of input and output fields, for embedding in REST
 * responses.</p>
 */
@Projection(name = "detailedFtepService", types = FtepService.class)
public interface DetailedFtepService extends Identifiable<Long> {

    String getName();
    String getDescription();
    ShortUser getOwner();
    FtepService.Type getType();
    String getDockerTag();
    FtepService.Licence getLicence();
    FtepService.Status getStatus();
    FtepServiceDescriptor getServiceDescriptor();
    @Value("#{@ftepSecurityService.getCurrentAccess(T(com.cgi.eoss.ftep.model.FtepService), target.id)}")
    FtepAccess getAccess();

}

@@ -863,24 +863,57 @@
 etStatus();%0A
+    String getApplicationPort();%0A
     FtepServ

Add applicationPort to detailed FtepService projection