Class GroovyTaggingDao
java.lang.Object
de.uplanet.lucy.server.tags.groovy.GroovyTaggingDao
Groovy tagging-DAO.
-
Method Summary
Modifier and TypeMethodDescriptionintcountPostsForTag(GroovyPostRetrievalParams p_config) Count posts with a specific tag.static final GroovyTaggingDaogetInstanceWithCustomDao(de.uplanet.lucy.server.tags.businesslogic.dao.ITaggingDao p_dao) Get a new instance based on a custom tagging DAO.static final GroovyTaggingDaogetInstanceWithJDBCConnection(de.uplanet.jdbc.JdbcConnection p_conn) Get a new instance based on the current JDBC-connection.Set<de.uplanet.lucy.server.tags.groovy.IGroovyTaggingRecord>getTagsInPost(String p_strDataGroupGuid, String p_strRecId) Get tags in a post.Set<de.uplanet.lucy.server.tags.groovy.IGroovyTaggingRecord>getTagsInPosts(String p_strDataGroupGuid) Get tags in a posts.insertTag(String p_strUserGuid, String p_strTagName, String p_strAppGuid, String p_strDgGuid, String p_strPostRecId, boolean p_bIsHashtag) Insert a tag.removePostsForTag(String p_strTagRecId) Remove all posts for a specific tag.removePostsForTag(String p_strDataGroupGuid, String p_strTagRecId, String p_strTagname) Remove all posts from a datagroup for a given tag.removePostsForTag(String p_strDataGroupGuid, String p_strTagRecId, String p_strTagName, String p_strPostRecId) Remove posts for tag with the specified post record ID regardless of the user.removePostsForTagWith(String p_strAppGuid) Remove all posts for a specific application.removePostsForTagWithProfileGuid(String p_strDgGuid, String p_strTagRecId, String p_strTagName, String p_strPostRecId, String p_strUserProfileGuid) Remove a post for a tag (only normal tags).Remove a tag by its record-ID.
-
Method Details
-
getInstanceWithJDBCConnection
public static final GroovyTaggingDao getInstanceWithJDBCConnection(de.uplanet.jdbc.JdbcConnection p_conn) Get a new instance based on the current JDBC-connection.- Parameters:
p_conn- The JDBC-connection.- Returns:
- This tagging DAO instance.
-
getInstanceWithCustomDao
public static final GroovyTaggingDao getInstanceWithCustomDao(de.uplanet.lucy.server.tags.businesslogic.dao.ITaggingDao p_dao) Get a new instance based on a custom tagging DAO.- Parameters:
p_dao- The tagging DAO delegate.- Returns:
- This tagging DAO instance.
-
insertTag
public String insertTag(String p_strUserGuid, String p_strTagName, String p_strAppGuid, String p_strDgGuid, String p_strPostRecId, boolean p_bIsHashtag) Insert a tag.- Parameters:
p_strUserGuid- The user GUID of the user which inserts the tag.p_strTagName- The tag name.p_strAppGuid- The application GUID.p_strDgGuid- The data group GUID.p_strPostRecId- The post record ID.p_bIsHashtag- Determines if it's a hash tag or not.- Returns:
- The record ID of the inserted tag.
-
removePostsForTag
Remove all posts for a specific tag.- Parameters:
p_strTagRecId- The tag record-ID.- Returns:
- This tagging DAO instance.
-
removePostsForTagWithProfileGuid
public GroovyTaggingDao removePostsForTagWithProfileGuid(String p_strDgGuid, String p_strTagRecId, String p_strTagName, String p_strPostRecId, String p_strUserProfileGuid) Remove a post for a tag (only normal tags).- Parameters:
p_strDgGuid- The datagroup-GUID.p_strTagRecId- The tag record-ID.p_strTagName- The tag name.p_strPostRecId- The post record-ID.p_strUserProfileGuid- The user profile GUID.- Returns:
- This tagging DAO instance.
-
removePostsForTag
public GroovyTaggingDao removePostsForTag(String p_strDataGroupGuid, String p_strTagRecId, String p_strTagName, String p_strPostRecId) Remove posts for tag with the specified post record ID regardless of the user.- Parameters:
p_strDataGroupGuid- The data group GUID.p_strTagRecId- The tag record-ID.p_strTagName- The tag name.p_strPostRecId- The posting record-ID.- Returns:
- This tagging DAO instance.
-
removePostsForTagWith
Remove all posts for a specific application.- Parameters:
p_strAppGuid- The application GUID.- Returns:
- This tagging DAO instance.
-
removeTag
Remove a tag by its record-ID.- Parameters:
p_strTagRecId- The record-ID of the tag.- Returns:
- The tagging DAO instance.
-
countPostsForTag
Count posts with a specific tag.- Parameters:
p_config- The retrieval configuration.- Returns:
- The number of posts found.
-
removePostsForTag
public GroovyTaggingDao removePostsForTag(String p_strDataGroupGuid, String p_strTagRecId, String p_strTagname) Remove all posts from a datagroup for a given tag.- Parameters:
p_strDataGroupGuid- The datagroup GUID.p_strTagRecId- The tagging record-ID.p_strTagname- The tag name.- Returns:
- This tagging DAO instance.
-
getTagsInPosts
public Set<de.uplanet.lucy.server.tags.groovy.IGroovyTaggingRecord> getTagsInPosts(String p_strDataGroupGuid) Get tags in a posts.- Parameters:
p_strDataGroupGuid- The data group GUID.- Returns:
- The tags in the posts.
-
getTagsInPost
public Set<de.uplanet.lucy.server.tags.groovy.IGroovyTaggingRecord> getTagsInPost(String p_strDataGroupGuid, String p_strRecId) Get tags in a post.- Parameters:
p_strDataGroupGuid- The datagroup GUID.p_strRecId- The record-ID.- Returns:
- The tags in the post.
-