public final class TagHome extends Object
Modifier and Type | Method and Description |
---|---|
static void |
create(int nIdTag,
int nIdocument,
int nPriority)
Associating a tag with a document
|
static Tag |
create(Tag tag)
Create an instance of the tag class
|
static Tag |
findByName(String strName)
Returns an instance of a tag whose name is specified in parameter
|
static Tag |
findByPrimaryKey(int nKey)
Returns an instance of a tag whose identifier is specified in parameter
|
static List<Tag> |
getTagList()
Load the data of all the tag objects and returns them as a list
|
static List<Tag> |
getTagListByDoc(int idDoc)
Load the Tags associated with the document whose identifier is specified in parameter
|
static fr.paris.lutece.util.ReferenceList |
getTagsReferenceList()
Load the data of all the tag objects and returns them as a list
|
static List<Tag> |
loadByDoc(int nIdDco)
Load the data of the tag objects whose identifier is specified in parameter and returns them as a list
|
static void |
remove(int nKey)
Remove the tag whose identifier is specified in parameter
|
static void |
removeTagDoc(int nIdDoc)
Delete Association a tag with a document whose identifier is specified in parameter
|
static Tag |
update(Tag tag)
Update of the tag which is specified in parameter
|
public static Tag create(Tag tag)
tag
- The instance of the tag which contains the informations to storepublic static Tag update(Tag tag)
tag
- The instance of the tag which contains the data to storepublic static void remove(int nKey)
nKey
- The tag Idpublic static Tag findByPrimaryKey(int nKey)
nKey
- The tag primary keypublic static Tag findByName(String strName)
strName
- The tag namepublic static List<Tag> getTagList()
public static fr.paris.lutece.util.ReferenceList getTagsReferenceList()
public static List<Tag> loadByDoc(int nIdDco)
nIdDco
- The document identifiantpublic static void create(int nIdTag, int nIdocument, int nPriority)
nIdTag
- the Tag idnIdocument
- The document identifiantnPriority
- The priority of the documentpublic static void removeTagDoc(int nIdDoc)
nIdDoc
- The Id DocumentCopyright © 2020 City of Paris. All rights reserved.