...
Dans esup-nfc-tag-server, il faut rajouter au fichier applicationContext-custom.xml les lignes personnalisée suivantes :
| Bloc de code | ||
|---|---|---|
| ||
<bean id="emargementJavaExtApi" class="org.esupportail.nfctag.service.api.impl.AppliExtRestWs"> |
...
<property name="isTagableUrl" value="https://esup-emargement.univ-ville.fr/wsrest/nfc/isTagable"/> |
...
<property name="validateTagUrl" value="https://esup-emargement.univ-ville.fr/wsrest/nfc/validateTag"/> |
...
<property name="getLocationsUrl" value="https://esup-emargement.univ-ville.fr/wsrest/nfc/locations"/> |
...
<property name="displayUrl" value="https://esup-emargement.univ-ville.fr/wsrest/nfc/display"/> <property name="description" value="Web Service Emargement-java test"/> |
...
<!--property name="backgroundColor" value="rgb(121, 119, 0)"/--> |
...
<property name="header" value="https://esup-emargement.univ-ville.fr/resources/images/logo.png"/> |
...
</bean> |
Voilà à quoi correspond chaque appel au WS Rest :
...
Pour le contrôle du tagId, on peut choir esup-sgc par example :
| Bloc de code | ||
|---|---|---|
| ||
<bean id="tagIdCheckApiEsupSgc" class="org.esupportail.nfctag.service.api.impl.TagIdCheckRestWs"> |
...
<property name="tagIdCheckUrl" value="https://esup-sgc.univ-ville.fr/wsrest/nfc/tagIdCheck"/> |
...
<property name="idFromEppnInitUrl" value="https://esup-sgc.univ-ville.fr/wsrest/nfc/idFromEppnInit"/> |
...
<property name="description" value="via Esup SGC"/> |
...
</bean> |
displayUrl :
Permet d'afficher lors du badgeage la photo dans esup-nfc-tag. On l'active via les configurations du contexte