Interface ITagDAO
- All Known Implementing Classes:
TagDAO
public interface ITagDAO
-
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nIdTag, fr.paris.lutece.portal.service.plugin.Plugin plugin) Remove the tag whose identifier is specified in parametervoiddeleteByDoc(int nIdDocument, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete Association a tag with a document whose identifier is specified in parametervoiddeleteByTAG(int nIdTag, int nIdDocument, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete Association a tag with a document whose identifier is specified in parametervoidinsert(int nIdTag, int nIdDocument, int nPriority, fr.paris.lutece.portal.service.plugin.Plugin plugin) Associating a tag with a documentvoidCreate an instance of the tag classload(int nIdTag, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns an instance of a tag whose identifier is specified in parameterloadAllTag(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the tag objects and returns them as a listloadByDoc(int nIdDocument, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of the tag objects whose identifier is specified in parameter and returns them as a listloadByName(String strName, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns an instance of a tag whose name is specified in parameterloadListTagByIdDoc(int nIdDocument, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the Tags associated with the document whose identifier is specified in parameterfr.paris.lutece.util.ReferenceListselectTagsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the tag objects and returns them as a listvoidUpdate of the tag which is specified in parameter
-
Method Details
-
insert
Create an instance of the tag class- Parameters:
tag- The instance of the tag which contains the informations to storeplugin- the plugin
-
load
Returns an instance of a tag whose identifier is specified in parameter- Parameters:
nIdTag- The tag primary keyplugin- the plugin- Returns:
- an instance of Tag
-
loadByName
Returns an instance of a tag whose name is specified in parameter- Parameters:
strName- The tag nameplugin- the plugin- Returns:
- an instance of Tag
-
loadAllTag
Load the data of all the tag objects and returns them as a list- Parameters:
plugin- the plugin- Returns:
- the list which contains the data of all the tag objects
-
delete
void delete(int nIdTag, fr.paris.lutece.portal.service.plugin.Plugin plugin) Remove the tag whose identifier is specified in parameter- Parameters:
nIdTag- The tag Idplugin- the plugin
-
store
Update of the tag which is specified in parameter- Parameters:
tag- The instance of the tag which contains the data to storeplugin- the plugin
-
insert
void insert(int nIdTag, int nIdDocument, int nPriority, fr.paris.lutece.portal.service.plugin.Plugin plugin) Associating a tag with a document- Parameters:
nIdTag- the Tag idnIdDocument- The document identifiantplugin- the pluginnPriority- The priority of the document
-
deleteByTAG
void deleteByTAG(int nIdTag, int nIdDocument, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete Association a tag with a document whose identifier is specified in parameter- Parameters:
nIdTag- Id TagnIdDocument- Id Documentplugin- the plugin
-
deleteByDoc
void deleteByDoc(int nIdDocument, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete Association a tag with a document whose identifier is specified in parameter- Parameters:
nIdDocument- The Id Documentplugin- the plugin
-
loadByDoc
Load the data of the tag objects whose identifier is specified in parameter and returns them as a list- Parameters:
nIdDocument- The document identifiantplugin- the plugin- Returns:
- returns them as a list of the tag objects
-
loadListTagByIdDoc
Load the Tags associated with the document whose identifier is specified in parameter- Parameters:
nIdDocument- Id Documentplugin- the plugin- Returns:
- list of Tag
-
selectTagsReferenceList
fr.paris.lutece.util.ReferenceList selectTagsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the tag objects and returns them as a list- Parameters:
plugin- the plugin- Returns:
- the list which contains the data of all the tag objects
-