Interface ITagDAO

  • All Known Implementing Classes:
    TagDAO

    public interface ITagDAO
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void delete​(int nIdTag, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Remove the tag whose identifier is specified in parameter
      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
      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
      void insert​(int nIdTag, int nIdDocument, int nPriority, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Associating a tag with a document
      void insert​(Tag tag, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Create an instance of the tag class
      Tag load​(int nIdTag, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Returns an instance of a tag whose identifier is specified in parameter
      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
      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
      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
      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
      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
      void store​(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 store
        plugin - 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 key
        plugin - 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 name
        plugin - 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 Id
        plugin - 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 store
        plugin - 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 id
        nIdDocument - The document identifiant
        plugin - the plugin
        nPriority - 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 Tag
        nIdDocument - Id Document
        plugin - 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 Document
        plugin - 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 identifiant
        plugin - 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 Document
        plugin - 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