|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.orm.hibernate.support.HibernateDaoSupport
com.atlassian.hibernate.HibernateObjectDao
bucket.core.persistence.hibernate.CachableHibernateObjectDao
com.atlassian.confluence.labels.persistence.dao.hibernate.HibernateLabelDao
Field Summary |
Fields inherited from class bucket.core.persistence.hibernate.CachableHibernateObjectDao |
cacheManager |
Fields inherited from class com.atlassian.hibernate.HibernateObjectDao |
log |
Fields inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport |
logger |
Fields inherited from interface com.atlassian.confluence.labels.persistence.dao.LabelDao |
UNLIMITED |
Constructor Summary | |
HibernateLabelDao()
|
Method Summary | |
void |
deleteLabellingBySpace(String key)
|
List |
findAllUserLabelledContent(String username)
|
List |
findByDetails(String name,
String namespace,
String owner)
Find all labels based on the details passed in. |
List |
findByDetailsInSpace(String name,
String namespace,
String owner,
String spaceKey)
Find all labels for a specific space, based on the details passed in. |
Label |
findById(long id)
Find the label by its id. |
Label |
findByLabel(Label label)
|
List |
findBySingleDegreeSeparation(ContentEntityObject content,
int maxResults)
Find the labels that are a single degree of separation away from the specified content. |
List |
findBySingleDegreeSeparation(ContentEntityObject content,
String spaceKey,
int maxResults)
|
List |
findBySingleDegreeSeparation(Label label,
int maxResults)
Find the labels that are a single degree of separation away from the specified label. |
List |
findBySingleDegreeSeparation(Label label,
String spaceKey,
int maxResults)
|
List |
findBySpace(String spaceKey,
String namespace)
Find the labels used to label the content with the specified space. |
List |
findContentByLabel(Label label)
|
int |
findContentCountForLabel(Label label)
|
List |
findContentForLabel(Label label)
|
List |
findCurrentContentForLabel(Label label)
|
List |
findCurrentContentForLabelAndSpace(Label label,
String spaceKey)
|
Labelling |
findLabellingByContentAndLabel(ContentEntityObject content,
Label label)
|
Labelling |
findLabellingById(long id)
|
List |
findMostPopular(String namespace,
int maxResults)
Find the most popular labels. |
List |
findMostPopularBySpace(String namespace,
String spaceKey,
int maxResults)
Find the most popular labels in the specified space. |
List |
findRecentlyUsed(int maxResults)
|
List |
findRecentlyUsedBySpace(String spaceKey,
int maxResults)
|
List |
findRecentlyUsedLabelling(int maxResults)
|
List |
findRecentlyUsedLabellingsBySpace(String spaceKey,
int maxResults)
|
List |
findRecentlyUsedUserLabellings(String username,
int maxResults)
|
List |
findRecentlyUsedUserLabels(String username,
int maxResults)
|
List |
findSpacesContainingContentWithLabel(Label label)
|
List |
findSpacesWithLabel(Label label)
|
List |
findUnusedLabels()
|
List |
getFavouriteSpaces(String username)
|
Class |
getPersistentClass()
|
boolean |
isDB2()
|
Methods inherited from class bucket.core.persistence.hibernate.CachableHibernateObjectDao |
setCacheManager |
Methods inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport |
afterPropertiesSet, closeSessionIfNecessary, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, initDao, setHibernateTemplate, setSessionFactory |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface bucket.core.persistence.ObjectDao |
findAll, findAllSorted, refresh, remove, replicate, save, saveRaw |
Constructor Detail |
public HibernateLabelDao()
Method Detail |
public boolean isDB2()
public Class getPersistentClass()
getPersistentClass
in interface ObjectDao
public Label findById(long id)
LabelDao
findById
in interface LabelDao
id
-
public Label findByLabel(Label label)
findByLabel
in interface LabelDao
public List findByDetails(String name, String namespace, String owner)
LabelDao
The list of labels returned will be ordered by name.
findByDetails
in interface LabelDao
name
- namespace
- owner
-
public List findByDetailsInSpace(String name, String namespace, String owner, String spaceKey)
LabelDao
The list of labels returned will be ordered by name.
findByDetailsInSpace
in interface LabelDao
name
- namespace
- owner
-
public List findBySpace(String spaceKey, String namespace)
LabelDao
findBySpace
in interface LabelDao
spaceKey
- namespace
-
public List findRecentlyUsedBySpace(String spaceKey, int maxResults)
findRecentlyUsedBySpace
in interface LabelDao
public List findRecentlyUsed(int maxResults)
findRecentlyUsed
in interface LabelDao
public List findRecentlyUsedLabelling(int maxResults)
findRecentlyUsedLabelling
in interface LabelDao
public List findRecentlyUsedLabellingsBySpace(String spaceKey, int maxResults)
findRecentlyUsedLabellingsBySpace
in interface LabelDao
public List findRecentlyUsedUserLabels(String username, int maxResults)
findRecentlyUsedUserLabels
in interface LabelDao
public List findRecentlyUsedUserLabellings(String username, int maxResults)
findRecentlyUsedUserLabellings
in interface LabelDao
public List findMostPopular(String namespace, int maxResults)
LabelDao
findMostPopular
in interface LabelDao
maxResults
-
public List findMostPopularBySpace(String namespace, String spaceKey, int maxResults)
LabelDao
findMostPopularBySpace
in interface LabelDao
spaceKey
- maxResults
- allows you to specify the maximum number of results returned by this method. Leaving max results
at zero will return all of the results.
public List findBySingleDegreeSeparation(ContentEntityObject content, int maxResults)
LabelDao
findBySingleDegreeSeparation
in interface LabelDao
content
- the content object used to search for related labelsmaxResults
- specifies the number of labels to be returned.
public List findBySingleDegreeSeparation(ContentEntityObject content, String spaceKey, int maxResults)
findBySingleDegreeSeparation
in interface LabelDao
public List findBySingleDegreeSeparation(Label label, int maxResults)
LabelDao
findBySingleDegreeSeparation
in interface LabelDao
label
- the label to look for on pagesmaxResults
- the maximum number of results to return
public List findBySingleDegreeSeparation(Label label, String spaceKey, int maxResults)
findBySingleDegreeSeparation
in interface LabelDao
public List findContentForLabel(Label label)
public List findAllUserLabelledContent(String username)
findAllUserLabelledContent
in interface LabelDao
public List findCurrentContentForLabel(Label label)
findCurrentContentForLabel
in interface LabelDao
public int findContentCountForLabel(Label label)
findContentCountForLabel
in interface LabelDao
public List findCurrentContentForLabelAndSpace(Label label, String spaceKey)
findCurrentContentForLabelAndSpace
in interface LabelDao
public List findSpacesContainingContentWithLabel(Label label)
findSpacesContainingContentWithLabel
in interface LabelDao
public List findSpacesWithLabel(Label label)
findSpacesWithLabel
in interface LabelDao
public Labelling findLabellingByContentAndLabel(ContentEntityObject content, Label label)
findLabellingByContentAndLabel
in interface LabelDao
public Labelling findLabellingById(long id)
findLabellingById
in interface LabelDao
public void deleteLabellingBySpace(String key)
deleteLabellingBySpace
in interface LabelDao
public List getFavouriteSpaces(String username)
getFavouriteSpaces
in interface LabelDao
username
- username of label ownerpublic List findUnusedLabels()
findUnusedLabels
in interface LabelDao
public List findContentByLabel(Label label)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |