Added service logo htmlization.

This commit is contained in:
Christian P. MOMON 2020-09-20 03:35:42 +02:00
parent efc212317d
commit 62f35ee4f5
4 changed files with 21 additions and 5 deletions

View file

@ -108,8 +108,8 @@ public class Builder
/** /**
* Clear. * Clear.
* *
* @param configurationFile * @param configuration
* the input * the configuration
* @throws StatoolInfosException * @throws StatoolInfosException
* the statool infos exception * the statool infos exception
* @throws IOException * @throws IOException

View file

@ -72,6 +72,16 @@ public class Crawler
} }
} }
/**
* Crawl.
*
* @param configuration
* the configuration
* @throws StatoolInfosException
* the statool infos exception
* @throws IOException
* Signals that an I/O exception has occurred.
*/
public static void crawl(final Configuration configuration) throws StatoolInfosException, IOException public static void crawl(final Configuration configuration) throws StatoolInfosException, IOException
{ {
logger.info("Crawl input setting: {}", configuration.getCrawlInputPath()); logger.info("Crawl input setting: {}", configuration.getCrawlInputPath());

View file

@ -72,9 +72,10 @@ public class OrganizationPage
int index = 0; int index = 0;
for (Service service : organization.getServices()) for (Service service : organization.getServices())
{ {
data.setAttribute("serviceListLine", index, "serviceListLineLogo", "src", service.getTechnicalName() + "-logo.png");
data.setEscapedContent("serviceListLine", index, "serviceListLineNameLink", service.getName());
data.setAttribute("serviceListLine", index, "serviceListLineNameLink", "href", organization.getTechnicalName() + "-" + service.getTechnicalName() + ".xhtml"); data.setAttribute("serviceListLine", index, "serviceListLineNameLink", "href", organization.getTechnicalName() + "-" + service.getTechnicalName() + ".xhtml");
data.setAttribute("serviceListLine", index, "serviceListLineLogo", "src", organization.getTechnicalName() + "-" + service.getTechnicalName() + "-logo.png");
data.setEscapedContent("serviceListLine", index, "serviceListLineNameValue", service.getName());
data.setEscapedContent("serviceListLine", index, "serviceListLineUrlLink", service.getWebsite());
data.setEscapedContent("serviceListLine", index, "serviceListLineWebsiteLink", service.getWebsite()); data.setEscapedContent("serviceListLine", index, "serviceListLineWebsiteLink", service.getWebsite());
data.setAttribute("serviceListLine", index, "serviceListLineWebsiteLink", "href", service.getWebsite()); data.setAttribute("serviceListLine", index, "serviceListLineWebsiteLink", "href", service.getWebsite());
data.setEscapedContent("serviceListLine", index, "serviceListLineSoftware", service.getSoftware()); data.setEscapedContent("serviceListLine", index, "serviceListLineSoftware", service.getSoftware());

View file

@ -30,7 +30,12 @@
<th class="">Logiciel</th> <th class="">Logiciel</th>
</tr> </tr>
<tr id="serviceListLine"> <tr id="serviceListLine">
<td id="serviceListLineName"><a href="#" id="serviceListLineNameLink">n/a</a></td> <td id="serviceListLineName" style="padding-top: 0; padding-bottom: 0;">
<a href="#" id="serviceListLineNameLink">
<img id="serviceListLineLogo" src="" style="width: 26px; height: 26px; padding-top:0; padding-bottom: 0; vertical-align: middle;"/>
&#160;<span id="serviceListLineNameValue">n/a</span>
</a>
</td>
<td id="serviceListLineWebsite"><a href="#" id="serviceListLineWebsiteLink">n/a</a></td> <td id="serviceListLineWebsite"><a href="#" id="serviceListLineWebsiteLink">n/a</a></td>
<td id="serviceListLineSoftware">n/a</td> <td id="serviceListLineSoftware">n/a</td>
</tr> </tr>