public class XmlRpcLabelsClient extends Object
Constructor and Description |
---|
XmlRpcLabelsClient(ConfluenceRpc rpc) |
Modifier and Type | Method and Description |
---|---|
boolean |
addLabel(long labelId,
long contentId)
Adds a label to the content specified by the supplied contentId
|
boolean |
addLabel(String label,
AbstractContentEntity target) |
boolean |
addLabelByObject(Object remoteLabel,
Page page)
Adds a label to the specified page
|
void |
addLabelToLabelable(long labelableId,
LabelableType type,
String label) |
Hashtable<String,Object> |
getAllContentForAllLabels(int offset,
int maxResults,
String labelsString) |
Hashtable<String,Object> |
getContentForAllLabels(int offset,
int maxResults,
String labelsString) |
Hashtable<String,Object> |
getContentInSpacesForAllLabels(int offset,
int maxResults,
String spaceKeys,
String labelsString) |
Hashtable<String,Object> |
getForLabels(LabelableType labelableType,
int offset,
int maxResults,
String labelsString) |
List<SearchResult> |
getLabelContentById(long labelId) |
List<SearchResult> |
getLabelContentByName(String labelName) |
List<SearchResult> |
getLabelContentByObject(Object remoteLabel)
Returns the content for a given label object
|
List<Label> |
getLabels(long pageId)
Retrieves the labels for the page matching the specified pageId
|
List<Label> |
getLabels(String labelName,
String namespace,
String spaceKey,
String owner)
Retrieves the labels matching the given labelName, namespace or owner.
|
List<Label> |
getMostPopularLabels(int maxCount)
Returns the most popular labels
|
List<Label> |
getMostPopularLabelsInSpace(String spaceKey,
int maxCount)
Returns the most popular labels in the space with the specified key
|
List<Label> |
getRecentlyUsedLabels(int maxCount)
Returns the recently used labels for the Confluence instance, with a specified maximum number
of results.
|
List<Label> |
getRecentlyUsedLabelsInSpace(String spaceKey,
int maxCount)
Returns the recently used labels in the space with the specified key
|
List<Label> |
getRelatedLabels(String labelName,
int maxCount)
Returns the labels related to the given label name
|
List<Label> |
getRelatedLabelsInSpace(String labelName,
String spaceKey,
int maxCount)
Returns the labels related to the given label name in the given space
|
public XmlRpcLabelsClient(ConfluenceRpc rpc)
public void addLabelToLabelable(long labelableId, LabelableType type, String label)
public boolean addLabel(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 topublic boolean addLabelByObject(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 topublic Hashtable<String,Object> getForLabels(LabelableType labelableType, int offset, int maxResults, String labelsString)
public Hashtable<String,Object> getContentForAllLabels(int offset, int maxResults, String labelsString)
public Hashtable<String,Object> getAllContentForAllLabels(int offset, int maxResults, String labelsString)
public Hashtable<String,Object> getContentInSpacesForAllLabels(int offset, int maxResults, String spaceKeys, String labelsString)
public List<Label> getLabels(long pageId)
public List<Label> getLabels(String labelName, String namespace, String spaceKey, 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 labelspublic List<Label> getMostPopularLabels(int maxCount)
maxCount
- the maximum number of labels to return, or no limit if this is 0public List<Label> getMostPopularLabelsInSpace(String spaceKey, int maxCount)
spaceKey
- key for the spacemaxCount
- the maximum number of labels to return, or no limit if this is 0public List<Label> getRecentlyUsedLabels(int maxCount)
maxCount
- the maximum number of labels to return, or the default if this is 0public List<Label> getRecentlyUsedLabelsInSpace(String spaceKey, int maxCount)
spaceKey
- key for the spacemaxCount
- the maximum number of labels to return, or the default if this is 0public List<Label> getRelatedLabels(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 List<Label> getRelatedLabelsInSpace(String labelName, 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 List<SearchResult> getLabelContentById(long labelId)
public List<SearchResult> getLabelContentByName(String labelName)
public List<SearchResult> getLabelContentByObject(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 objectCopyright © 2003–2015 Atlassian. All rights reserved.