Class TagHome
java.lang.Object
fr.paris.lutece.plugins.blog.business.TagHome
This class provides instances management methods (create, find, ...) for Tag objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidcreate(int nIdTag, int nIdocument, int nPriority) Associating a tag with a documentstatic TagCreate an instance of the tag classstatic TagfindByName(String strName) Returns an instance of a tag whose name is specified in parameterstatic TagfindByPrimaryKey(int nKey) Returns an instance of a tag whose identifier is specified in parameterLoad the data of all the tag objects and returns them as a listgetTagListByDoc(int idDoc) Load the Tags associated with the document whose identifier is specified in parameterstatic fr.paris.lutece.util.ReferenceListLoad the data of all the tag objects and returns them as a listloadByDoc(int nIdDco) Load the data of the tag objects whose identifier is specified in parameter and returns them as a liststatic voidremove(int nKey) Remove the tag whose identifier is specified in parameterstatic voidremoveTagDoc(int nIdDoc) Delete Association a tag with a document whose identifier is specified in parameterstatic TagUpdate of the tag which is specified in parameter
-
Method Details
-
create
Create an instance of the tag class- Parameters:
tag- The instance of the tag which contains the informations to store- Returns:
- The instance of tag which has been created with its primary key.
-
update
Update of the tag which is specified in parameter- Parameters:
tag- The instance of the tag which contains the data to store- Returns:
- The instance of the tag which has been updated
-
remove
public static void remove(int nKey) Remove the tag whose identifier is specified in parameter- Parameters:
nKey- The tag Id
-
findByPrimaryKey
Returns an instance of a tag whose identifier is specified in parameter- Parameters:
nKey- The tag primary key- Returns:
- an instance of Tag
-
findByName
Returns an instance of a tag whose name is specified in parameter- Parameters:
strName- The tag name- Returns:
- an instance of Tag
-
getTagList
Load the data of all the tag objects and returns them as a list- Returns:
- the list which contains the data of all the tag objects
-
getTagsReferenceList
public static fr.paris.lutece.util.ReferenceList getTagsReferenceList()Load the data of all the tag objects and returns them as a list- Returns:
- the list which contains the data of all the tag objects
-
loadByDoc
Load the data of the tag objects whose identifier is specified in parameter and returns them as a list- Parameters:
nIdDco- The document identifiant- Returns:
- returns them as a list of the tag objects
-
create
public static void create(int nIdTag, int nIdocument, int nPriority) Associating a tag with a document- Parameters:
nIdTag- the Tag idnIdocument- The document identifiantnPriority- The priority of the document
-
removeTagDoc
public static void removeTagDoc(int nIdDoc) Delete Association a tag with a document whose identifier is specified in parameter- Parameters:
nIdDoc- The Id Document
-
getTagListByDoc
Load the Tags associated with the document whose identifier is specified in parameter- Parameters:
idDoc- Id Document- Returns:
- list of Tag
-