Interface IAiFeatureDAO
- All Known Implementing Classes:
AiFeatureDAO
public interface IAiFeatureDAO
IAiFeatureDAO interface for AI feature data access operations
-
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Deletes an AI featurevoidInserts a new AI featureload(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Loads an AI feature by identifierselectActiveFeatures(fr.paris.lutece.portal.service.plugin.Plugin plugin) Retrieves all active AI featuresselectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin) Retrieves all AI featuresselectFeaturesByType(String strType, fr.paris.lutece.portal.service.plugin.Plugin plugin) Retrieves active AI features by typevoidshiftOrdersDown(int nOrder, int nExcludeId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Shifts order numbers down after removing a feature from specified positionvoidshiftOrdersUp(int nOrder, int nExcludeId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Shifts order numbers up to make room for insertion at specified positionvoidUpdates an existing AI feature
-
Method Details
-
insert
Inserts a new AI feature- Parameters:
aiFeature- the AI feature to insertplugin- the plugin
-
load
Loads an AI feature by identifier- Parameters:
nId- the feature identifierplugin- the plugin- Returns:
- an Optional containing the AI feature if found, empty otherwise
-
store
Updates an existing AI feature- Parameters:
aiFeature- the AI feature to updateplugin- the plugin
-
delete
void delete(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Deletes an AI feature- Parameters:
nId- the feature identifierplugin- the plugin
-
selectAll
Retrieves all AI features- Parameters:
plugin- the plugin- Returns:
- a list of all AI features
-
selectActiveFeatures
Retrieves all active AI features- Parameters:
plugin- the plugin- Returns:
- a list of active AI features
-
selectFeaturesByType
List<AiFeature> selectFeaturesByType(String strType, fr.paris.lutece.portal.service.plugin.Plugin plugin) Retrieves active AI features by type- Parameters:
strType- the feature typeplugin- the plugin- Returns:
- a list of active AI features matching the specified type
-
shiftOrdersUp
void shiftOrdersUp(int nOrder, int nExcludeId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Shifts order numbers up to make room for insertion at specified position- Parameters:
nOrder- the order position where the feature will be insertednExcludeId- the feature id to exclude from shifting (-1 for new features)plugin- the plugin
-
shiftOrdersDown
void shiftOrdersDown(int nOrder, int nExcludeId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Shifts order numbers down after removing a feature from specified position- Parameters:
nOrder- the order position being vacatednExcludeId- the feature id to exclude from shiftingplugin- the plugin
-