Class TagDAO
java.lang.Object
fr.paris.lutece.plugins.blog.business.TagDAO
- All Implemented Interfaces:
ITagDAO
This class provides Data Access methods for TagDAO objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int idTag, fr.paris.lutece.portal.service.plugin.Plugin plugin) Remove the tag whose identifier is specified in parametervoiddeleteByDoc(int idDoc, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete Association a tag with a document whose identifier is specified in parametervoiddeleteByTAG(int idTag, int idDoc, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete Association a tag with a document whose identifier is specified in parametervoidinsert(int nIdTag, int nIdDoc, int nPriority, fr.paris.lutece.portal.service.plugin.Plugin plugin) Associating a tag with a documentvoidCreate an instance of the tag classload(int idTag, 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 idDoc, 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 idDoc, 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
-
Constructor Details
-
TagDAO
public TagDAO()
-
-
Method Details
-
insert
Create an instance of the tag class -
load
Returns an instance of a tag whose identifier is specified in parameter -
loadAllTag
Load the data of all the tag objects and returns them as a list- Specified by:
loadAllTagin interfaceITagDAO- Parameters:
plugin- the plugin- Returns:
- the list which contains the data of all the tag objects
-
delete
public void delete(int idTag, fr.paris.lutece.portal.service.plugin.Plugin plugin) Remove the tag whose identifier is specified in parameter -
store
Update of the tag which is specified in parameter -
insert
public void insert(int nIdTag, int nIdDoc, int nPriority, fr.paris.lutece.portal.service.plugin.Plugin plugin) Associating a tag with a document -
deleteByTAG
public void deleteByTAG(int idTag, int idDoc, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete Association a tag with a document whose identifier is specified in parameter- Specified by:
deleteByTAGin interfaceITagDAO- Parameters:
idTag- Id TagidDoc- Id Documentplugin- the plugin
-
deleteByDoc
public void deleteByDoc(int idDoc, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete Association a tag with a document whose identifier is specified in parameter- Specified by:
deleteByDocin interfaceITagDAO- Parameters:
idDoc- 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 -
selectTagsReferenceList
public 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- Specified by:
selectTagsReferenceListin interfaceITagDAO- Parameters:
plugin- the plugin- Returns:
- the list which contains the data of all the tag objects
-
loadListTagByIdDoc
Load the Tags associated with the document whose identifier is specified in parameter- Specified by:
loadListTagByIdDocin interfaceITagDAO- Parameters:
idDoc- Id Documentplugin- the plugin- Returns:
- list of Tag
-
loadByName
Returns an instance of a tag whose name is specified in parameter- Specified by:
loadByNamein interfaceITagDAO- Parameters:
strName- The tag nameplugin- the plugin- Returns:
- an instance of Tag
-