|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.it.rpc.LabelsRpc
public class LabelsRpc
Makes CRUD RPC calls for Labels and Labelled content.
Constructor Summary | |
---|---|
LabelsRpc(ConfluenceRpc rpc)
|
Method Summary | |
---|---|
boolean |
addLabel(long labelId,
long contentId)
Adds a label to the content specified by the supplied contentId |
boolean |
addLabel(java.lang.String label,
AbstractContentEntity target)
|
boolean |
addLabelByObject(java.lang.Object remoteLabel,
Page page)
Adds a label to the specified page |
void |
addLabelToLabelable(long labelableId,
LabelableType type,
java.lang.String label)
|
java.util.Hashtable<java.lang.String,java.lang.Object> |
getAllContentForAllLabels(int offset,
int maxResults,
java.lang.String labelsString)
|
java.util.Hashtable<java.lang.String,java.lang.Object> |
getContentForAllLabels(int offset,
int maxResults,
java.lang.String labelsString)
|
java.util.Hashtable<java.lang.String,java.lang.Object> |
getContentInSpacesForAllLabels(int offset,
int maxResults,
java.lang.String spaceKeys,
java.lang.String labelsString)
|
java.util.Hashtable<java.lang.String,java.lang.Object> |
getForLabels(LabelableType labelableType,
int offset,
int maxResults,
java.lang.String labelsString)
|
java.util.List<SearchResult> |
getLabelContentById(long labelId)
|
java.util.List<SearchResult> |
getLabelContentByName(java.lang.String labelName)
|
java.util.List<SearchResult> |
getLabelContentByObject(java.lang.Object remoteLabel)
Returns the content for a given label object |
java.util.List<Label> |
getLabels(long pageId)
Retrieves the labels for the page matching the specified pageId |
java.util.List<Label> |
getLabels(java.lang.String labelName,
java.lang.String namespace,
java.lang.String spaceKey,
java.lang.String owner)
Retrieves the labels matching the given labelName, namespace or owner. |
java.util.List<Label> |
getMostPopularLabels(int maxCount)
Returns the most popular labels |
java.util.List<Label> |
getMostPopularLabelsInSpace(java.lang.String spaceKey,
int maxCount)
Returns the most popular labels in the space with the specified key |
java.util.List<Label> |
getRecentlyUsedLabels(int maxCount)
Returns the recently used labels for the Confluence instance, with a specified maximum number of results. |
java.util.List<Label> |
getRecentlyUsedLabelsInSpace(java.lang.String spaceKey,
int maxCount)
Returns the recently used labels in the space with the specified key |
java.util.List<Label> |
getRelatedLabels(java.lang.String labelName,
int maxCount)
Returns the labels related to the given label name |
java.util.List<Label> |
getRelatedLabelsInSpace(java.lang.String labelName,
java.lang.String spaceKey,
int maxCount)
Returns the labels related to the given label name in the given space |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LabelsRpc(ConfluenceRpc rpc)
Method Detail |
---|
public void addLabelToLabelable(long labelableId, LabelableType type, java.lang.String label)
public boolean addLabel(java.lang.String label, AbstractContentEntity target)
public boolean addLabel(long labelId, long contentId)
labelId
- id of the label to addcontentId
- id of a page or blogpost to add the label to
public boolean addLabelByObject(java.lang.Object remoteLabel, Page page)
remoteLabel
- the object retrieved from a direct call to an rpc method that returns a label, i.e. this parameter
should be the return value of ConfluenceRpc.execute(String, Object...)
and not any of wrapper methods that return a Label objectpage
- page to add the label to
public java.util.Hashtable<java.lang.String,java.lang.Object> getForLabels(LabelableType labelableType, int offset, int maxResults, java.lang.String labelsString)
public java.util.Hashtable<java.lang.String,java.lang.Object> getContentForAllLabels(int offset, int maxResults, java.lang.String labelsString)
public java.util.Hashtable<java.lang.String,java.lang.Object> getAllContentForAllLabels(int offset, int maxResults, java.lang.String labelsString)
public java.util.Hashtable<java.lang.String,java.lang.Object> getContentInSpacesForAllLabels(int offset, int maxResults, java.lang.String spaceKeys, java.lang.String labelsString)
public java.util.List<Label> getLabels(long pageId)
public java.util.List<Label> getLabels(java.lang.String labelName, java.lang.String namespace, java.lang.String spaceKey, java.lang.String owner)
labelName
- the name of the label to search for (not parsed for prefixes)namespace
- the namespace to restrict byspaceKey
- the key of the space to restrict byowner
- the owner of the labels
public java.util.List<Label> getMostPopularLabels(int maxCount)
maxCount
- the maximum number of labels to return, or no limit if this is 0
public java.util.List<Label> getMostPopularLabelsInSpace(java.lang.String spaceKey, int maxCount)
spaceKey
- key for the spacemaxCount
- the maximum number of labels to return, or no limit if this is 0
public java.util.List<Label> getRecentlyUsedLabels(int maxCount)
maxCount
- the maximum number of labels to return, or the default if this is 0
public java.util.List<Label> getRecentlyUsedLabelsInSpace(java.lang.String spaceKey, int maxCount)
spaceKey
- key for the spacemaxCount
- the maximum number of labels to return, or the default if this is 0
public java.util.List<Label> getRelatedLabels(java.lang.String labelName, int maxCount)
labelName
- name of the label to find related labels withmaxCount
- the maximum number of labels to return, or the default if this is 0public java.util.List<Label> getRelatedLabelsInSpace(java.lang.String labelName, java.lang.String spaceKey, int maxCount)
labelName
- name of the label to find related labels withspaceKey
- the key of the space to search inmaxCount
- the maximum number of labels to return, or the default if this is 0public java.util.List<SearchResult> getLabelContentById(long labelId)
public java.util.List<SearchResult> getLabelContentByName(java.lang.String labelName)
public java.util.List<SearchResult> getLabelContentByObject(java.lang.Object remoteLabel)
remoteLabel
- the object retrieved from a direct call to an rpc method that returns a label, i.e. this parameter
should be the return value of ConfluenceRpc.execute(String, Object...)
and not any of wrapper methods that return a Label object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |