fr.paris.lutece.plugins.ods.business.indexer.action
Class IndexerActionDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.ods.business.indexer.action.IndexerActionDAO
All Implemented Interfaces:
IIndexerActionDAO

public class IndexerActionDAO
extends java.lang.Object
implements IIndexerActionDAO

IndexerActionDAO


Constructor Summary
IndexerActionDAO()
           
 
Method Summary
 void delete(IndexerAction action, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Supprime une action d'indexation
 void deleteForIndexer(Indexer indexer, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Supprime toutes les actions d'indexation pour cet indexer;
 void insert(IndexerAction action, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Créé une nouvelle action d'indexation pour tous les serveurs
 IndexerAction selectActionOnObject(int nIdIndexer, int nAction, java.lang.Object object, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Retourne l'action d'indexation voulue sur le fichier, si elle existe
 java.util.List<IndexerAction> selectIndexerActions(int nIdIndexer, int nAction, boolean bDelete, boolean bArchive, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Retourne la liste des actions pour un indexer, selon le type d'action voulu: IndexAction.ACTION_CREATE,IndexAction.ACTION_DELETE, IndexAction.ACTION_MODIFY
 void store(IndexerAction action, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Met à jour une action d'indexation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexerActionDAO

public IndexerActionDAO()
Method Detail

insert

public void insert(IndexerAction action,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Créé une nouvelle action d'indexation pour tous les serveurs

Specified by:
insert in interface IIndexerActionDAO
Parameters:
action - l'action à ajouter
plugin - plugin

delete

public void delete(IndexerAction action,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Supprime une action d'indexation

Specified by:
delete in interface IIndexerActionDAO
Parameters:
action - l'action à supprimer
plugin - plugin

store

public void store(IndexerAction action,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Met à jour une action d'indexation

Specified by:
store in interface IIndexerActionDAO
Parameters:
action - l'action à modifier
plugin - plugin

selectIndexerActions

public java.util.List<IndexerAction> selectIndexerActions(int nIdIndexer,
                                                          int nAction,
                                                          boolean bDelete,
                                                          boolean bArchive,
                                                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Retourne la liste des actions pour un indexer, selon le type d'action voulu: IndexAction.ACTION_CREATE,IndexAction.ACTION_DELETE, IndexAction.ACTION_MODIFY

Specified by:
selectIndexerActions in interface IIndexerActionDAO
Parameters:
nIdIndexer - l'identifiant de l'indexer
nAction - le type d'action voulu
bDelete - indique si on supprime les actions chargées ou non
bArchive - true si la recherche concerne les archives
plugin - plugin
Returns:
la liste des actions

selectActionOnObject

public IndexerAction selectActionOnObject(int nIdIndexer,
                                          int nAction,
                                          java.lang.Object object,
                                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Retourne l'action d'indexation voulue sur le fichier, si elle existe

Specified by:
selectActionOnObject in interface IIndexerActionDAO
Parameters:
nIdIndexer - l'indexer sélectionné
nAction - l'action sur le fichier
object - l'objet recherché
plugin - plugin
Returns:
une action d'indexation si elle existe, null sinon

deleteForIndexer

public void deleteForIndexer(Indexer indexer,
                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
Supprime toutes les actions d'indexation pour cet indexer;

Specified by:
deleteForIndexer in interface IIndexerActionDAO
Parameters:
indexer - l'indexer
plugin - le plugin


Copyright © 2010 Mairie de Paris. All Rights Reserved.