Introduction

Esup-SGC propose des applications NFC supplémentaires en plus de l'encodage des cartes. L'application d'encodage est déclarée dans esup-nfc-tag-server mais nécessite une application client spécifique, esup-sgc-client. Les applications optionnelles fonctionnent à l'aide des clients "standards" esup-nfc-tag-desktop ou esup-nfc-tag-droid.

Les applications (on parle de salles de badgeage portées par une application) disponibles sont :

Livraison SGC

Permet de badger une carte pour la déclarer livrée

Configuration dans esup-nfc-tag-server - applicationContext-custom.xml

Ajouter le bean suivant dans applicationContext-custom.xml

    <bean id="esupSgcLivraisonExtApi" class="org.esupportail.nfctag.service.api.impl.AppliExtRestWs">
    	<property name="isTagableUrl" value="https://esup-sgc.univ-ville.fr/wsrest/nfc/isTagable"/>
    	<property name="validateTagUrl" value="https://esup-sgc.univ-ville.fr/wsrest/nfc/validateTag"/>
    	<property name="getLocationsUrl" value="https://esup-sgc.univ-ville.fr/wsrest/nfc/locationsLivreur"/>
    	<property name="description" value="Web Service livraison SGC"/>
    </bean>

Configuration dans l'IHM esup-nfc-tag-server

Dans la section « Application » → « +Ajouter une application »

On retrouve les éléments configurés dans applicationContext-custom.xml. Pour activer la salle de livraison des cartes par le SGC, nous allons créer une application nommée "Livraison SGC" avec les paramètres suivants:

Recherche SGC

Permet d'afficher la carte badgé dans ESUP-SGC. Pour cela l'application doit être par le même utilisateur que celui qui est connecté a ESUP-SGC

Configuration dans esup-nfc-tag-server - applicationContext-custom.xml

Ajouter le bean suivant dans applicationContext-custom.xml

    <bean id="esupSgcSearchExtApi" class="org.esupportail.nfctag.service.api.impl.AppliExtRestWs">
    	<property name="isTagableUrl" value="https://esup-sgc.univ-ville.fr/wsrest/nfc/isTagable"/>
    	<property name="validateTagUrl" value="https://esup-sgc.univ-ville.fr/wsrest/nfc/validateTag"/>
    	<property name="getLocationsUrl" value="https://esup-sgc.univ-ville.fr/wsrest/nfc/locationsSearch"/>
    	<property name="description" value="Web Service Search SGC"/>
    </bean>

Configuration dans l'IHM esup-nfc-tag-server

Dans la section « Application » → « +Ajouter une application »

On retrouve les éléments configurés dans applicationContext-custom.xml. Pour activer la salle de recherche des cartes par le SGC, nous allons créer une application nommée "Recherche SGC" avec les paramètres suivants:

Verso carte

Affiche dans l'application le verso ("verso dématérialisé") de la carte badgée.

Configuration dans esup-nfc-tag-server -  applicationContext-custom.xml

Ajouter le bean suivant dans applicationContext-custom.xml. Dans ce cas on ajoute la propriété displayUrl qui spécifie la vue qui sera affichée après le badgeage

	<bean id="esupSgcVersoExtApi" class="org.esupportail.nfctag.service.api.impl.AppliExtRestWs">
    	<property name="isTagableUrl" value="https://esup-sgc.univ-ville.fr/wsrest/nfc/isTagable"/>
    	<property name="validateTagUrl" value="https://esup-sgc.univ-ville.fr/wsrest/nfc/validateTag"/>
    	<property name="getLocationsUrl" value="https://esup-sgc.univ-ville.fr/wsrest/nfc/locationsVerso"/>
    	<property name="displayUrl" value="https://esup-sgc.univ-ville.fr/wsrest/nfc/verso"/>
    	<property name="description" value="Web Service Verso"/>
	</bean>

Configuration dans l'IHM esup-nfc-tag-server

Dans la section « Application » → « +Ajouter une application »

On retrouve les éléments configurés dans applicationContext-custom.xml. Pour activer la salle de 'verso' des cartes par le SGC, nous allons créer une application nommée "Verso carte' avec les paramètres suivants: