|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LabelDao
Field Summary | |
---|---|
static int |
UNLIMITED
Specify no limit on the number of results returned by the dao. |
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. |
List<Label> |
findByDetailsInSpaces(String name,
String namespace,
String owner,
Collection<Space> spaces)
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. |
int |
findContentCountForLabel(Label label)
|
List<ContentEntityObject> |
findContentForAllLabels(Collection<Label> labels,
int maxResults,
int offset)
Retrieve all ContentEntityObjects which are labelled with ALL provided labels. |
List<ContentEntityObject> |
findContentForLabel(Label label,
int maxResults)
|
List |
findCurrentContentForLabel(Label label)
|
List |
findCurrentContentForLabelAndSpace(Label label,
String spaceKey)
Returns current content with the specified label and 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 key,
int maxResults)
Find the most popular labels in the specified space. |
List |
findRecentlyUsed(int maxResults)
|
List |
findRecentlyUsedBySpace(String key,
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)
|
Methods inherited from interface bucket.core.persistence.ObjectDao |
---|
findAll, findAllSorted, getPersistentClass, refresh, remove, replicate, save, saveRaw |
Field Detail |
---|
static final int UNLIMITED
Method Detail |
---|
Label findById(long id)
id
- ID of the label
Label findByLabel(Label label)
List findByDetails(String name, String namespace, String owner)
The list of labels returned will be ordered by name.
name
- Label name (can be null)namespace
- Namespace of the label (can be null)owner
- Owner of the label (can be null)
List findByDetailsInSpace(String name, String namespace, String owner, String spaceKey)
The list of labels returned will be ordered by name.
name
- Label name (can be null)namespace
- Namespace of the label (can be null)owner
- Owner of the label (can be null)spaceKey
- Key of the space whose content must have the returned labels (can be null)
List<Label> findByDetailsInSpaces(String name, String namespace, String owner, Collection<Space> spaces)
The list of labels returned will be ordered by name.
name
- Label name (can be null)namespace
- Namespace of the label (can be null)owner
- Owner of the label (can be null)spaces
- Collection of spaces whose content must have the returned labels (can be null)
List findBySpace(String spaceKey, String namespace)
spaceKey
- Key of the space whose content must have the returned labels (can be null)namespace
- Namespace of the label (can be null)
List findMostPopular(String namespace, int maxResults)
maxResults
- Maximum size of list to return
List findMostPopularBySpace(String namespace, String key, int maxResults)
key
- of the space whose content must have the returned labelsmaxResults
- allows you to specify the maximum number of results returned by this method. Leaving max results
at zero will return all of the results.
List findRecentlyUsedBySpace(String key, int maxResults)
List findRecentlyUsedLabellingsBySpace(String spaceKey, int maxResults)
List findRecentlyUsed(int maxResults)
List findRecentlyUsedLabelling(int maxResults)
List findRecentlyUsedUserLabels(String username, int maxResults)
List findRecentlyUsedUserLabellings(String username, int maxResults)
List findBySingleDegreeSeparation(ContentEntityObject content, int maxResults)
content
- the content object used to search for related labelsmaxResults
- specifies the number of labels to be returned.
List findBySingleDegreeSeparation(ContentEntityObject content, String spaceKey, int maxResults)
List findBySingleDegreeSeparation(Label label, int maxResults)
label
- the label to look for on pagesmaxResults
- the maximum number of results to return
List findBySingleDegreeSeparation(Label label, String spaceKey, int maxResults)
List findCurrentContentForLabel(Label label)
List findCurrentContentForLabelAndSpace(Label label, String spaceKey)
label
- search for content with this labelspaceKey
- (optional) search for content belonging to the space with this spaceKey
int findContentCountForLabel(Label label)
List findSpacesContainingContentWithLabel(Label label)
List findSpacesWithLabel(Label label)
Labelling findLabellingByContentAndLabel(ContentEntityObject content, Label label)
Labelling findLabellingById(long id)
void deleteLabellingBySpace(String key)
List findUnusedLabels()
List getFavouriteSpaces(String username)
username
- username of label ownerList findAllUserLabelledContent(String username)
List<ContentEntityObject> findContentForLabel(Label label, int maxResults)
List<ContentEntityObject> findContentForAllLabels(Collection<Label> labels, int maxResults, int offset)
labels
- labels which must appear on ContentEntityObjectsmaxResults
- the maximum number of results to returnoffset
- the offset into the results
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |