...
A l'aide de l'outil mvn de maven
Dans de répertoire des sources lancer la commande : mvn clean package
le jar esupsgckeybemu-1.0-SNAPSHOT-jar-with-dependencies.jar va etre générer dans le dossier target
Parametrage esup-nfc-tag
Voici un exemple de configuration pour une utilisation en Bibliothèque universitaire
Il faut tout d'abord ajouter une configuration dans applicationContext-custom.xml. (exemple se basant sur ESUP-SGC)
Bloc de code | ||
---|---|---|
| ||
<bean id="esupSecondaryIdExtApi" class="org.esupportail.nfctag.service.api.impl.AppliExtRestWs">
<property name="isTagableUrl" value="https://esup-sgc-test.univ-ville.fr/wsrest/nfc/isTagable"/>
<property name="validateTagUrl" value="https://esup-sgc-test.univ-ville.fr/wsrest/nfc/validateTag"/>
<property name="getLocationsUrl" value="https://esup-sgc-test.univ-ville.fr/wsrest/nfc/locationsSecondaryId"/>
<property name="displayUrl" value="https://esup-sgc-test.univ-ville.fr/wsrest/nfc/secondaryId"/>
<property name="description" value="Web Service SecondaryId"/>
</bean> |
Créer une application dans esup-nfc-tag-server #TODOavec les paramètres suivants :
- Nom : Biblio
- Configuration NFC : Authentification CSN
- Application externe : Web Service SecondaryId
- Controle du tagId : via Esup SGC
Créer un périphérique dans esup-nfc-tag-server #TODOavec les paramètres suivants:
- Numero Id : esup-nfc-tag-keyboard-01
- Eppn init : un eppn ex : esup@univ-ville.fr
- Adresse MAC : 0
- IMEI : esup-nfc-tag-keyboard
- User Agent : esup-nfc-tag-keyboard
- Application : Biblio
- Salle : retourné par le ws https://esup-sgc-test.univ-ville.fr/wsrest/nfc/locationsSecondaryId
- Validation sans confirmation : true
Lancement de l'application
Déclarer les propriétés système suivant (si différentes des propriétés par défaut) :
...