Fork me on GitHub

Plugin gru

Introduction

This plugin enables to see all the demands of a customer in the same view and to manage them.

Encryption of customers

The plugin can use customers with encrypted ids. This mechanism permits to have a specific id for each service provider. Thus, the id is not shared.

To use encryption, the site has to contain a class implementing the interface fr.paris.lutece.plugins.grubusiness.service.encryption.ICustomerEncryptionService from the library gru-library-grubusiness. For example, add the plugin gru-plugin-grukeydiversification in the pom.xml of the site. The encryption is then enabled.

Authorization on customers

To prevent the logged in user to access some customers, implements the interface fr.paris.lutece.plugins.gru.service.customer.ICustomerAuthorizationFilter and declare the implementation as a bean in the Spring context.

Configuration

The Customer DAO

By default, the plugin uses a mock to search the customers. The search always returns a message saying that no customer is found. To use a correct search mechanism, the bean gru.customerService defined in the Spring context must use a concrete implementation of fr.paris.lutece.plugins.grubusiness.business.customer.ICustomerDAO from the library gru-library-grubusiness.

The known implementations are the following:

  • fr.paris.lutece.plugins.gruindexing.business.lucene.LuceneCustomerDAO from the plugin gru-plugin-gru-indexing. The customers are retrieved from a Lucene index.
  • fr.paris.lutece.plugins.gruindexing.business.elasticsearch.ElasticSearchCustomerDAO from the plugin gru-plugin-gru-indexing. The customers are retrieved from a ElasticSearch server.

The Demand DAO

By default, the plugin uses a mock to retrieve the demands. The customers have no demand. To use a correct retrieval mechanism, the bean gru.demandService defined in the Spring context must use a concrete implementation of fr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO from the library gru-library-grubusiness.

The known implementations are the following:

  • fr.paris.lutece.plugins.grustoragedb.business.DemandDAO from the plugin gru-plugin-grustoragedb. The demands are retrieved from the database.

The Notification DAO

By default, the plugin uses a mock to retrieve the notifications. The customers have no notification. To use a correct retrieval mechanism, the bean gru.demandService defined in the Spring context must use a concrete implementation of fr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO from the library gru-library-grubusiness.

The known implementations are the following:

  • fr.paris.lutece.plugins.grustoragedb.business.NotificationDAO from the plugin gru-plugin-grustoragedb. The notifications are retrieved from the database.

Display properties

Demands creation date display mode ( "in progress" customer demands tab ):

Modify the value of gru.demands.creationDateDisplay property in the /WEB-INF/conf/plugins/gru.properties file in order to change the date display mode. Set to true to display creation date, false to display a counter. Default is false.

Usage