Interface ITagDAO
-
- All Known Implementing Classes:
TagDAO
public interface ITagDAO
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddelete(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 documentvoidinsert(Tag tag, fr.paris.lutece.portal.service.plugin.Plugin plugin)Create an instance of the tag classTagload(int nIdTag, fr.paris.lutece.portal.service.plugin.Plugin plugin)Returns an instance of a tag whose identifier is specified in parameterjava.util.List<Tag>loadAllTag(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the tag objects and returns them as a listjava.util.List<Tag>loadByDoc(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 listTagloadByName(java.lang.String strName, fr.paris.lutece.portal.service.plugin.Plugin plugin)Returns an instance of a tag whose name is specified in parameterjava.util.List<Tag>loadListTagByIdDoc(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 listvoidstore(Tag tag, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update of the tag which is specified in parameter
-
-
-
Method Detail
-
insert
void insert(Tag tag, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Create an instance of the tag class- Parameters:
tag- The instance of the tag which contains the informations to storeplugin- the plugin
-
load
Tag load(int nIdTag, fr.paris.lutece.portal.service.plugin.Plugin plugin)
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
Tag loadByName(java.lang.String strName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
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
java.util.List<Tag> loadAllTag(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
-
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
void store(Tag tag, fr.paris.lutece.portal.service.plugin.Plugin plugin)
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
java.util.List<Tag> loadByDoc(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 list- Parameters:
nIdDocument- The document identifiantplugin- the plugin- Returns:
- returns them as a list of the tag objects
-
loadListTagByIdDoc
java.util.List<Tag> loadListTagByIdDoc(int nIdDocument, fr.paris.lutece.portal.service.plugin.Plugin plugin)
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
-
-