Constructor and Description |
---|
TagDAO() |
Modifier and Type | Method and Description |
---|---|
void |
delete(int idTag,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the tag whose identifier is specified in parameter
|
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
|
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
|
void |
insert(int nIdTag,
int nIdDoc,
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 idTag,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of a tag whose identifier is specified in parameter
|
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
|
List<Tag> |
loadByDoc(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 list
|
Tag |
loadByName(String strName,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of a tag whose name is specified in parameter
|
List<Tag> |
loadListTagByIdDoc(int idDoc,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the Tags associated with the document whose identifier is specified in parameter
|
int |
newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key
|
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
|
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- The Pluginpublic void insert(Tag tag, fr.paris.lutece.portal.service.plugin.Plugin plugin)
public Tag load(int idTag, fr.paris.lutece.portal.service.plugin.Plugin plugin)
public List<Tag> loadAllTag(fr.paris.lutece.portal.service.plugin.Plugin plugin)
loadAllTag
in interface ITagDAO
plugin
- the pluginpublic void delete(int idTag, fr.paris.lutece.portal.service.plugin.Plugin plugin)
public void store(Tag tag, fr.paris.lutece.portal.service.plugin.Plugin plugin)
public void insert(int nIdTag, int nIdDoc, int nPriority, fr.paris.lutece.portal.service.plugin.Plugin plugin)
public void deleteByTAG(int idTag, int idDoc, fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteByTAG
in interface ITagDAO
idTag
- Id TagidDoc
- Id Documentplugin
- the pluginpublic void deleteByDoc(int idDoc, fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteByDoc
in interface ITagDAO
plugin
- the pluginpublic List<Tag> loadByDoc(int idDoc, fr.paris.lutece.portal.service.plugin.Plugin plugin)
public fr.paris.lutece.util.ReferenceList selectTagsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectTagsReferenceList
in interface ITagDAO
plugin
- the pluginpublic List<Tag> loadListTagByIdDoc(int idDoc, fr.paris.lutece.portal.service.plugin.Plugin plugin)
loadListTagByIdDoc
in interface ITagDAO
idDoc
- Id Documentplugin
- the pluginpublic Tag loadByName(String strName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
loadByName
in interface ITagDAO
strName
- The tag nameplugin
- the pluginCopyright © 2020 City of Paris. All rights reserved.