public class XWiki extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
sendRawData |
protected static String |
SERVICE_PREFIX_1 |
| Constructor and Description |
|---|
XWiki(String endpoint,
ConfluenceProxy proxyInfo) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAnonymousPermissionsToSpace(List permissions,
String spaceKey)
Give anonymous users the permissions {{permissions}} on the space with the key {{spaceKey}}.
|
boolean |
addAnonymousPermissionToSpace(String permission,
String spaceKey)
Give anonymous users the permission {{permission}} on the space with the key {{spaceKey}}.
|
org.codehaus.swizzle.confluence.Attachment |
addAttachment(long contentId,
org.codehaus.swizzle.confluence.Attachment attachment,
byte[] attachmentData)
add a new attachment to a content entity object.
|
Comment |
addComment(Comment comment)
adds a comment to the page.
|
void |
addGroup(String group)
add a new group
|
boolean |
addLabelById(long labelId,
long objectId)
Adds a label with the given ID to the object with the given ContentEntityObject ID.
|
boolean |
addLabelByName(String labelName,
long objectId)
Adds a label to the object with the given ContentEntityObject ID.
|
boolean |
addLabelByNameToSpace(String labelName,
String spaceKey)
Adds a label to the object with the given ContentEntityObject ID.
|
boolean |
addLabelByObject(Label labelObject,
long objectId)
Adds the given label object to the object with the given ContentEntityObject ID.
|
boolean |
addPermissionsToSpace(List permissions,
String remoteEntityName,
String spaceKey)
Give the entity named {{remoteEntityName}} (either a group or a user) the permissions {{permissions}} on the space with the key {{spaceKey}}.
|
boolean |
addPermissionToSpace(String permission,
String remoteEntityName,
String spaceKey)
Give the entity named {{remoteEntityName}} (either a group or a user) the permission {{permission}} on the space with the key {{spaceKey}}.
|
Space |
addSpace(Space space)
create a new space, passing in name, key and description.
|
void |
addUser(User user,
String password)
add a new user with the given password
|
void |
addUserToGroup(String username,
String groupname)
add a user to a particular group
|
boolean |
changeMyPassword(String oldPass,
String newPass)
changes the current user's password
|
boolean |
changeUserPassword(String username,
String newPass)
changes the specified user's password
|
boolean |
deactivateUser(String username)
deactivates the specified user
|
boolean |
editUser(User remoteUser)
edits the details of a user
|
String |
exportSite(boolean exportAttachments)
exports a Confluence instance and returns a String holding the URL for the download.
|
String |
exportSpace(String spaceKey,
String exportType)
exports a space and returns a String holding the URL for the download.
|
List |
getActiveUsers(boolean viewAll)
returns all registered users as Strings
|
List |
getAncestors(String pageId)
returns all the ancestors (as
PageSummary instances) of this page (parent, parent's parent etc). |
org.codehaus.swizzle.confluence.Attachment |
getAttachment(String pageId,
String fileName,
String versionNumber)
get information about an attachment.
|
byte[] |
getAttachmentData(String pageId,
String fileName,
String versionNumber)
get the contents of an attachment.
|
List |
getAttachments(String pageId)
returns all the
Attachments for this page (useful to point users to download them with the full file download URL returned). |
List |
getBlogEntries(String spaceKey)
returns all the
BlogEntrySummary instances in the space. |
BlogEntry |
getBlogEntry(String pageId)
returns a single BlogEntry.
|
BlogEntry |
getBlogEntryByDayAndTitle(String spaceKey,
int dayOfMonth,
String postTitle)
Retrieves a blog post in the Space with the given spaceKey, with the title 'postTitle' and posted on the day 'dayOfMonth'.
|
List |
getChildren(String pageId)
returns all the direct children (as
PageSummary instances) of this page. |
Comment |
getComment(String commentId)
returns an individual comment.
|
List |
getComments(String pageId)
returns all the
Comments for this page. |
List |
getDescendents(String pageId)
returns all the descendents (as
PageSummary instances) of this page (children, children's children etc). |
List |
getGroups()
gets all groups as a list of
Strings |
List |
getLabelContentById(long labelId)
Returns the content for a given label ID
|
List |
getLabelContentByName(String labelName)
Returns the content for a given label name.
|
List |
getLabelContentByObject(Label labelObject)
Returns the content for a given Label object.
|
List |
getLabelsByDetail(String labelName,
String namespace,
String spaceKey,
String owner)
Retrieves the
Labels matching the given {{labelName}}, {{namespace}}, {{spaceKey}} or {{owner}}. |
List |
getLabelsById(long objectId)
Returns all
Labels for the given ContentEntityObject ID |
List |
getMostPopularLabels(int maxCount)
Returns the most popular
Labels for the Confluence instance, with a specified maximum number. |
List |
getMostPopularLabelsInSpace(String spaceKey,
int maxCount)
Returns the most popular
Labels for the given {{spaceKey}}, with a specified maximum number of results. |
org.codehaus.swizzle.confluence.Page |
getPage(org.codehaus.swizzle.confluence.PageSummary summary)
returns a single Page
|
org.codehaus.swizzle.confluence.Page |
getPage(String pageId) |
org.codehaus.swizzle.confluence.Page |
getPage(String spaceKey,
String pageTitle)
returns a single Page
|
List |
getPageHistory(String pageId)
returns all the
PageHistorySummary instances - useful for looking up the previous versions of a page, and who changed them. |
List |
getPagePermissions(String pageId)
Returns a List of
Permissions representing the permissions set on the given page. |
List |
getPages(String spaceKey)
returns all the
PageSummary instances in the space. |
List |
getPermissions(String spaceKey)
Returns a List of
Permissions representing the permissions the current user has for this space (a list of "view", "modify", "comment" and / or "admin"). |
List |
getPermissionsForUser(String spaceKey,
String userName)
Returns a List of
Permissions representing the permissions the given user has for this space. |
List |
getRecentlyUsedLabels(int maxResults)
Returns the recently used
Labels for the Confluence instance, with a specified maximum number of results. |
List |
getRecentlyUsedLabelsInSpace(String spaceKey,
int maxResults)
Returns the recently used
Labels for the given {{spaceKey}}, with a specified maximum number of results. |
List |
getRelatedLabels(String labelName,
int maxResults)
Returns the
Labels related to the given label name, with a specified maximum number of results. |
List |
getRelatedLabelsInSpace(String labelName,
String spaceKey,
int maxResults)
Returns the
Labels related to the given label name for the given {{spaceKey}}, with a specified maximum number of results. |
ServerInfo |
getServerInfo()
retrieve some basic information about the server being connected to.
|
protected String |
getServicePrefix() |
Space |
getSpace(String spaceKey)
returns a single Space.
|
List |
getSpaceLevelPermissions()
returns List of the space level
Permissions which may be granted. |
List |
getSpaces()
returns all the
SpaceSummary instances that the current user can see. |
List |
getSpacesContainingContentWithLabel(String labelName)
Returns all Spaces that have content labelled with {{labelName}}.
|
List |
getSpacesWithLabel(String labelName)
Returns an array of
Spaces that have been labelled with {{labelName}}. |
User |
getUser(String username)
get a single user
|
List |
getUserGroups(String username)
get a user's current groups as a list of
Strings |
UserInformation |
getUserInformation(String username)
Retrieves user information
|
boolean |
hasGroup(String groupname)
checks if a group exists
|
boolean |
hasUser(String username)
checks if a user exists
|
void |
login(String username,
String password) |
boolean |
logout()
remove this token from the list of logged in tokens.
|
boolean |
moveAttachment(String originalContentId,
String originalName,
String newContentEntityId,
String newName)
move an attachment to a different content entity object and/or give it a new name.
|
boolean |
reactivateUser(String username)
reactivates the specified user
|
boolean |
removeAllPermissionsForGroup(String groupname)
Remove all the global and space level permissions for {{groupname}}.
|
boolean |
removeAnonymousPermissionFromSpace(String permission,
String spaceKey)
Remove the permission {{permission} from anonymous users on the space with the key {{spaceKey}}.
|
boolean |
removeAttachment(String contentId,
String fileName)
remove an attachment from a content entity object.
|
boolean |
removeComment(String commentId)
removes a comment from the page.
|
boolean |
removeGroup(String groupname,
String defaultGroupName)
remove a group.
|
boolean |
removeLabelById(long labelId,
long objectId)
Removes the label with the given ID from the object with the given ContentEntityObject ID.
|
boolean |
removeLabelByName(String labelName,
long objectId)
Removes the given label from the object with the given ContentEntityObject ID.
|
boolean |
removeLabelByNameFromSpace(String labelName,
String spaceKey)
Removes the given label from the given {{spaceKey}}.
|
boolean |
removeLabelByObject(Label labelObject,
long objectId)
Removes the given label object from the object with the given ContentEntityObject ID.
|
void |
removePage(String pageId)
remove a page
|
boolean |
removePermissionFromSpace(String permission,
String remoteEntityName,
String spaceKey)
Remove the permission {{permission} from the entity named {{remoteEntityName}} (either a group or a user) on the space with the key {{spaceKey}}.
|
Boolean |
removeSpace(String spaceKey)
remove a space completely.
|
boolean |
removeUser(String username)
delete a user.
|
boolean |
removeUserFromGroup(String username,
String groupname)
remove a user from a group.
|
String |
renderContent(org.codehaus.swizzle.confluence.PageSummary page) |
String |
renderContent(String spaceKey,
String pageId) |
String |
renderContent(String spaceKey,
String pageId,
String content)
returns the HTML rendered content for this page.
|
String |
renderContent(String spaceKey,
String pageId,
String content,
Map parameters)
Like the above renderContent(), but you can supply an optional hash (map, dictionary, etc) containing additional instructions for the renderer.
|
List |
search(String query,
int maxResults)
return a list of
SearchResults which match a given search query (including pages and other content types). |
List |
search(String query,
Map parameters,
int maxResults)
Returns a list of
SearchResults like the previous search, but you can optionally limit your search by adding parameters to the parameter map. |
void |
sendRawData(boolean sendRawData) |
boolean |
setUserInformation(UserInformation userInfo)
updates user information
|
BlogEntry |
storeBlogEntry(BlogEntry entry)
add or update a blog entry.
|
org.codehaus.swizzle.confluence.Page |
storePage(org.codehaus.swizzle.confluence.Page page)
add or update a page.
|
boolean |
willSendRawData() |
protected static final String SERVICE_PREFIX_1
protected boolean sendRawData
public XWiki(String endpoint, ConfluenceProxy proxyInfo) throws MalformedURLException, URISyntaxException
protected String getServicePrefix()
public boolean willSendRawData()
public void sendRawData(boolean sendRawData)
public void login(String username, String password) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic boolean logout()
throws org.codehaus.swizzle.confluence.SwizzleException,
ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic String exportSite(boolean exportAttachments) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic ServerInfo getServerInfo() throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic List getSpaces() throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
SpaceSummary instances that the current user can see.org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic Space getSpace(String spaceKey) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic String exportSpace(String spaceKey, String exportType) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic Space addSpace(Space space) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic Boolean removeSpace(String spaceKey) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic List getPages(String spaceKey) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
PageSummary instances in the space. Doesn't include pages which are in the Trash. Equivalent to calling {{Space.getCurrentPages()}}.org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic org.codehaus.swizzle.confluence.Page getPage(org.codehaus.swizzle.confluence.PageSummary summary)
throws org.codehaus.swizzle.confluence.SwizzleException,
ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic org.codehaus.swizzle.confluence.Page getPage(String pageId) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic org.codehaus.swizzle.confluence.Page getPage(String spaceKey, String pageTitle) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic List getPageHistory(String pageId) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
PageHistorySummary instances - useful for looking up the previous versions of a page, and who changed them.org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic List getAttachments(String pageId) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
Attachments for this page (useful to point users to download them with the full file download URL returned).org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic List getAncestors(String pageId) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
PageSummary instances) of this page (parent, parent's parent etc).org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic List getChildren(String pageId) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
PageSummary instances) of this page.org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic List getDescendents(String pageId) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
PageSummary instances) of this page (children, children's children etc).org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic List getComments(String pageId) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
Comments for this page.org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic Comment getComment(String commentId) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic Comment addComment(Comment comment) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic boolean removeComment(String commentId) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic org.codehaus.swizzle.confluence.Page storePage(org.codehaus.swizzle.confluence.Page page)
throws org.codehaus.swizzle.confluence.SwizzleException,
ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic String renderContent(String spaceKey, String pageId, String content) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic String renderContent(String spaceKey, String pageId) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic String renderContent(org.codehaus.swizzle.confluence.PageSummary page) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic String renderContent(String spaceKey, String pageId, String content, Map parameters) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic void removePage(String pageId) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic org.codehaus.swizzle.confluence.Attachment getAttachment(String pageId, String fileName, String versionNumber) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic byte[] getAttachmentData(String pageId, String fileName, String versionNumber) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic org.codehaus.swizzle.confluence.Attachment addAttachment(long contentId,
org.codehaus.swizzle.confluence.Attachment attachment,
byte[] attachmentData)
throws org.codehaus.swizzle.confluence.SwizzleException,
ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic boolean removeAttachment(String contentId, String fileName) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic boolean moveAttachment(String originalContentId, String originalName, String newContentEntityId, String newName) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic List getBlogEntries(String spaceKey) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
BlogEntrySummary instances in the space.org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic BlogEntry getBlogEntry(String pageId) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic BlogEntry storeBlogEntry(BlogEntry entry) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic BlogEntry getBlogEntryByDayAndTitle(String spaceKey, int dayOfMonth, String postTitle) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic List search(String query, int maxResults) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
SearchResults which match a given search query (including pages and other content types). This is the same as a performing a parameterised search (see below) with an
empty parameter map.org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic List search(String query, Map parameters, int maxResults) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
SearchResults like the previous search, but you can optionally limit your search by adding parameters to the parameter map. If you do not include a parameter, the
default is used instead.org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic List getPermissions(String spaceKey) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
Permissions representing the permissions the current user has for this space (a list of "view", "modify", "comment" and / or "admin").org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic List getPermissionsForUser(String spaceKey, String userName) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
Permissions representing the permissions the given user has for this space. (since 2.1.4)org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic List getPagePermissions(String pageId) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
Permissions representing the permissions set on the given page.org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic List getSpaceLevelPermissions() throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
Permissions which may be granted. This is a list of possible permissions to use with {{addPermissionToSpace}}, below, not a list of current permissions
on a Space.org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic boolean addPermissionToSpace(String permission, String remoteEntityName, String spaceKey) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic boolean addPermissionsToSpace(List permissions, String remoteEntityName, String spaceKey) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic boolean removePermissionFromSpace(String permission, String remoteEntityName, String spaceKey) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic boolean addAnonymousPermissionToSpace(String permission, String spaceKey) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic boolean addAnonymousPermissionsToSpace(List permissions, String spaceKey) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic boolean removeAnonymousPermissionFromSpace(String permission, String spaceKey) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic boolean removeAllPermissionsForGroup(String groupname) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic User getUser(String username) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic void addUser(User user, String password) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic void addGroup(String group) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic List getUserGroups(String username) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
Stringsorg.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic void addUserToGroup(String username, String groupname) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic boolean removeUserFromGroup(String username, String groupname) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic boolean removeUser(String username) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic boolean removeGroup(String groupname, String defaultGroupName) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic List getGroups() throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
Stringsorg.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic boolean hasUser(String username) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic boolean hasGroup(String groupname) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic boolean editUser(User remoteUser) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic boolean deactivateUser(String username) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic boolean reactivateUser(String username) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic List getActiveUsers(boolean viewAll) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic boolean setUserInformation(UserInformation userInfo) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic UserInformation getUserInformation(String username) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic boolean changeMyPassword(String oldPass, String newPass) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic boolean changeUserPassword(String username, String newPass) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic List getLabelsById(long objectId) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
Labels for the given ContentEntityObject IDorg.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic List getMostPopularLabels(int maxCount) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
Labels for the Confluence instance, with a specified maximum number.org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic List getMostPopularLabelsInSpace(String spaceKey, int maxCount) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
Labels for the given {{spaceKey}}, with a specified maximum number of results.org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic List getRecentlyUsedLabels(int maxResults) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
Labels for the Confluence instance, with a specified maximum number of results.org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic List getRecentlyUsedLabelsInSpace(String spaceKey, int maxResults) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
Labels for the given {{spaceKey}}, with a specified maximum number of results.org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic List getSpacesWithLabel(String labelName) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
Spaces that have been labelled with {{labelName}}.org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic List getRelatedLabels(String labelName, int maxResults) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
Labels related to the given label name, with a specified maximum number of results.org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic List getRelatedLabelsInSpace(String labelName, String spaceKey, int maxResults) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
Labels related to the given label name for the given {{spaceKey}}, with a specified maximum number of results.org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic List getLabelsByDetail(String labelName, String namespace, String spaceKey, String owner) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
Labels matching the given {{labelName}}, {{namespace}}, {{spaceKey}} or {{owner}}.org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic List getLabelContentById(long labelId) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic List getLabelContentByName(String labelName) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic List getLabelContentByObject(Label labelObject) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic List getSpacesContainingContentWithLabel(String labelName) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic boolean addLabelByName(String labelName, long objectId) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic boolean addLabelById(long labelId,
long objectId)
throws org.codehaus.swizzle.confluence.SwizzleException,
ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic boolean addLabelByObject(Label labelObject, long objectId) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic boolean addLabelByNameToSpace(String labelName, String spaceKey) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic boolean removeLabelByName(String labelName, long objectId) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic boolean removeLabelById(long labelId,
long objectId)
throws org.codehaus.swizzle.confluence.SwizzleException,
ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic boolean removeLabelByObject(Label labelObject, long objectId) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionpublic boolean removeLabelByNameFromSpace(String labelName, String spaceKey) throws org.codehaus.swizzle.confluence.SwizzleException, ConfluenceException
org.codehaus.swizzle.confluence.SwizzleExceptionConfluenceExceptionCopyright © 2018. All rights reserved.