Class AiFeatureHome
java.lang.Object
fr.paris.lutece.plugins.wiki.modules.ai.business.AiFeatureHome
AiFeatureHome factory class for AI feature business operations
-
Method Summary
Modifier and TypeMethodDescriptionstatic AiFeatureCreates a new AI featurefindByPrimaryKey(int nId) Finds an AI feature by primary keyRetrieves all active AI featuresRetrieves all AI featuresgetFeaturesByType(String strType) Retrieves active AI features by typestatic voidremove(int nId) Removes an AI featurestatic voidUpdates an existing AI feature
-
Method Details
-
create
Creates a new AI feature- Parameters:
aiFeature- the AI feature to create- Returns:
- the created AI feature
-
findByPrimaryKey
Finds an AI feature by primary key- Parameters:
nId- the feature identifier- Returns:
- an Optional containing the AI feature if found, empty otherwise
-
update
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
Retrieves all AI features- Returns:
- a list of all AI features
-
getActiveFeatures
Retrieves all active AI features- Returns:
- a list of active AI features
-
getFeaturesByType
Retrieves active AI features by type- Parameters:
strType- the feature type- Returns:
- a list of active AI features matching the specified type
-