java.lang.Object
fr.paris.lutece.plugins.wiki.modules.ai.business.AiFeatureHome

public final class AiFeatureHome extends Object
AiFeatureHome factory class for AI feature business operations
  • Method Details

    • create

      public static AiFeature create(AiFeature aiFeature)
      Creates a new AI feature
      Parameters:
      aiFeature - the AI feature to create
      Returns:
      the created AI feature
    • findByPrimaryKey

      public static Optional<AiFeature> findByPrimaryKey(int nId)
      Finds an AI feature by primary key
      Parameters:
      nId - the feature identifier
      Returns:
      an Optional containing the AI feature if found, empty otherwise
    • update

      public static void update(AiFeature aiFeature)
      Updates an existing AI feature
      Parameters:
      aiFeature - the AI feature to update
    • remove

      public static void remove(int nId)
      Removes an AI feature
      Parameters:
      nId - the feature identifier
    • getAiFeaturesList

      public static List<AiFeature> getAiFeaturesList()
      Retrieves all AI features
      Returns:
      a list of all AI features
    • getActiveFeatures

      public static List<AiFeature> getActiveFeatures()
      Retrieves all active AI features
      Returns:
      a list of active AI features
    • getFeaturesByType

      public static List<AiFeature> getFeaturesByType(String strType)
      Retrieves active AI features by type
      Parameters:
      strType - the feature type
      Returns:
      a list of active AI features matching the specified type