Class IndexerActionHome

java.lang.Object
fr.paris.lutece.plugins.elasticdata.business.IndexerActionHome

public final class IndexerActionHome extends Object
This class provides instances management methods (create, find, ...) for IndexerAction objects
  • Method Details

    • create

      public static IndexerAction create(IndexerAction indexerAction)
      Create an instance of the indexerAction class
      Parameters:
      indexerAction - The instance of the IndexerAction which contains the informations to store
      Returns:
      The instance of indexerAction which has been created with its primary key.
    • createIfAbsent

      public static boolean createIfAbsent(IndexerAction indexerAction)
      Create an instance of the indexerAction class unless an action is already queued for the same resource and data source
      Parameters:
      indexerAction - The instance of the IndexerAction which contains the informations to store
      Returns:
      true if the action was created, false if an action was already queued for the resource and data source
    • update

      public static IndexerAction update(IndexerAction indexerAction)
      Update of the indexerAction which is specified in parameter
      Parameters:
      indexerAction - The instance of the IndexerAction which contains the data to store
      Returns:
      The instance of the indexerAction which has been updated
    • remove

      public static void remove(int nKey)
      Remove the indexerAction whose identifier is specified in parameter
      Parameters:
      nKey - The indexerAction Id
    • removeByIdResourceList

      public static void removeByIdResourceList(List<String> listIdResource, String strIdDataSource)
      Remove the indexerActions of resource identifiers
      Parameters:
      listIdResource - The list of resource identifiers
      strIdDataSource - The id of the dataSource
    • findByPrimaryKey

      public static Optional<IndexerAction> findByPrimaryKey(int nKey)
      Returns an instance of a indexerAction whose identifier is specified in parameter
      Parameters:
      nKey - The indexerAction primary key
      Returns:
      an instance of IndexerAction
    • findByIdResource

      public static IndexerAction findByIdResource(String strIdResource, String strIdDataSource)
      Returns an instance of a indexerAction whose resource identifier is specified in parameter
      Parameters:
      nKey - The indexerAction primary key
      Returns:
      an instance of IndexerAction
    • getIndexerActionsList

      public static List<IndexerAction> getIndexerActionsList()
      Load the data of all the indexerAction objects and returns them as a list
      Returns:
      the list which contains the data of all the indexerAction objects
    • getIndexerActionsList

      public static List<IndexerAction> getIndexerActionsList(String strIdDataSource, int nIdTask)
      Load the data of all the indexerAction objects and returns them as a list
      Returns:
      the list which contains the data of all the indexerAction objects
    • getIndexerActionsList

      public static List<IndexerAction> getIndexerActionsList(String strIdDataSource)
      Load the data of all the datasource indexerAction objects and returns them as a list
      Returns:
      the list which contains the data of all the indexerAction objects
    • getIdIndexerActionsList

      public static List<Integer> getIdIndexerActionsList()
      Load the id of all the indexerAction objects and returns them as a list
      Returns:
      the list which contains the id of all the indexerAction objects
    • getIdResourceIndexerActionsList

      public static List<String> getIdResourceIndexerActionsList(String strIdDataSource, int nIdTask)
      Load the id of all the indexerAction objects and returns them as a list
      Returns:
      the list which contains the id of all the indexerAction objects
    • getIndexerActionsReferenceList

      public static fr.paris.lutece.util.ReferenceList getIndexerActionsReferenceList()
      Load the data of all the indexerAction objects and returns them as a referenceList
      Returns:
      the referenceList which contains the data of all the indexerAction objects
    • getIndexerActionsListByIds

      public static List<IndexerAction> getIndexerActionsListByIds(List<Integer> listIds)
      Load the data of all the avant objects and returns them as a list
      Parameters:
      listIds - liste of ids
      Returns:
      the list which contains the data of all the avant objects