Class ConfluenceXmlRpcHandlerImpl
- java.lang.Object
-
- com.atlassian.confluence.rpc.xmlrpc.ConfluenceXmlRpcHandlerImpl
-
- All Implemented Interfaces:
SecureRpc,ConfluenceXmlRpcHandler
public class ConfluenceXmlRpcHandlerImpl extends Object implements ConfluenceXmlRpcHandler
An implementation of XML RPC that effectively delegates to an underlying SOAP implementation.Responsible for converting inputs into a form that is suitable for the underyling SOAP API.
Also responsible for converting what is returned by the underlying SOAP API into a form that is appropriate to return to XML RPC clients.
-
-
Constructor Summary
Constructors Constructor Description ConfluenceXmlRpcHandlerImpl()
-
Method Summary
-
-
-
Method Detail
-
setSoapServiceDelegator
public void setSoapServiceDelegator(ConfluenceSoapService soapServiceDelegator)
-
login
public String login(String username, String password) throws RemoteException
- Specified by:
loginin interfaceConfluenceXmlRpcHandler- Specified by:
loginin interfaceSecureRpc- Throws:
RemoteException
-
logout
public boolean logout(String token) throws RemoteException
- Specified by:
logoutin interfaceConfluenceXmlRpcHandler- Specified by:
logoutin interfaceSecureRpc- Throws:
RemoteException
-
getSpaces
public Vector getSpaces(String token) throws RemoteException
- Specified by:
getSpacesin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
getSpacesInGroup
public Vector getSpacesInGroup(String token, String spaceGroupKey) throws RemoteException
- Specified by:
getSpacesInGroupin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
getBlogEntries
public Vector getBlogEntries(String token, String spaceKey) throws RemoteException
- Specified by:
getBlogEntriesin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
getBlogEntryByDayAndTitle
public Hashtable getBlogEntryByDayAndTitle(String token, String spaceKey, int dayOfMonth, String postTitle) throws RemoteException
- Specified by:
getBlogEntryByDayAndTitlein interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
getBlogEntryByDateAndTitle
public Hashtable getBlogEntryByDateAndTitle(String token, String spaceKey, int year, int month, int dayOfMonth, String postTitle) throws RemoteException
- Specified by:
getBlogEntryByDateAndTitlein interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
getComments
public Vector getComments(String token, String pageId) throws RemoteException
- Specified by:
getCommentsin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
getComment
public Hashtable getComment(String token, String commentId) throws InvalidSessionException, RemoteException
- Specified by:
getCommentin interfaceConfluenceXmlRpcHandler- Throws:
InvalidSessionExceptionRemoteException
-
addComment
public Hashtable addComment(String token, Hashtable comment) throws InvalidSessionException, NotPermittedException, RemoteException
- Specified by:
addCommentin interfaceConfluenceXmlRpcHandler- Throws:
InvalidSessionExceptionNotPermittedExceptionRemoteException
-
editComment
public Hashtable editComment(String token, Hashtable comment) throws InvalidSessionException, NotPermittedException, RemoteException
- Specified by:
editCommentin interfaceConfluenceXmlRpcHandler- Throws:
InvalidSessionExceptionNotPermittedExceptionRemoteException
-
removeComment
public boolean removeComment(String token, String commentId) throws InvalidSessionException, NotPermittedException, RemoteException
- Specified by:
removeCommentin interfaceConfluenceXmlRpcHandler- Throws:
InvalidSessionExceptionNotPermittedExceptionRemoteException
-
getTopLevelPages
public Vector getTopLevelPages(String token, String spaceKey) throws RemoteException
- Specified by:
getTopLevelPagesin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
getAncestors
public Vector getAncestors(String token, String pageId) throws RemoteException
- Specified by:
getAncestorsin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
getChildren
public Vector getChildren(String token, String pageId) throws RemoteException
- Specified by:
getChildrenin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
getDescendents
public Vector getDescendents(String token, String pageId) throws RemoteException
- Specified by:
getDescendentsin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
getAttachments
public Vector getAttachments(String token, String pageId) throws RemoteException
- Specified by:
getAttachmentsin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
convertWikiToStorageFormat
public String convertWikiToStorageFormat(String token, String wiki) throws RemoteException
- Specified by:
convertWikiToStorageFormatin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
watchPage
public boolean watchPage(String token, String pageId) throws RemoteException
- Specified by:
watchPagein interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
watchSpace
public boolean watchSpace(String token, String spaceKey) throws RemoteException
- Specified by:
watchSpacein interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
watchPageForUser
public boolean watchPageForUser(String token, String pageId, String username) throws RemoteException
- Specified by:
watchPageForUserin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
removePageWatch
public boolean removePageWatch(String token, String pageId) throws RemoteException
- Specified by:
removePageWatchin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
removeSpaceWatch
public boolean removeSpaceWatch(String token, String spaceKey) throws RemoteException
- Specified by:
removeSpaceWatchin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
removePageWatchForUser
public boolean removePageWatchForUser(String token, String pageId, String username) throws RemoteException
- Specified by:
removePageWatchForUserin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
isWatchingPage
public boolean isWatchingPage(String token, String pageId, String username) throws RemoteException
- Specified by:
isWatchingPagein interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
isWatchingSpace
public boolean isWatchingSpace(String token, String spaceKey, String username) throws RemoteException
- Specified by:
isWatchingSpacein interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
isWatchingSpaceForType
public boolean isWatchingSpaceForType(String token, String spaceKey, String contentType, String username) throws RemoteException
- Specified by:
isWatchingSpaceForTypein interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
getWatchersForPage
public Vector getWatchersForPage(String token, String pageId) throws RemoteException
- Specified by:
getWatchersForPagein interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
getWatchersForSpace
public Vector getWatchersForSpace(String token, String spaceKey) throws RemoteException
- Specified by:
getWatchersForSpacein interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
getBlogEntry
public Hashtable getBlogEntry(String token, String blogEntryId) throws RemoteException
- Specified by:
getBlogEntryin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
getPages
public Vector getPages(String token, String spaceKey) throws RemoteException
- Specified by:
getPagesin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
getPage
public Hashtable getPage(String token, String pageId) throws RemoteException
- Specified by:
getPagein interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
getPageSummary
public Hashtable getPageSummary(String token, String pageId) throws RemoteException
- Specified by:
getPageSummaryin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
getPage
public Hashtable getPage(String token, String spaceKey, String pageTitle) throws RemoteException
- Specified by:
getPagein interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
getPageSummary
public Hashtable getPageSummary(String token, String spaceKey, String pageTitle) throws RemoteException
- Specified by:
getPageSummaryin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
getContentPermissionSets
public Vector getContentPermissionSets(String token, String contentId) throws RemoteException
- Specified by:
getContentPermissionSetsin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
getContentPermissionSet
public Hashtable getContentPermissionSet(String token, String contentId, String permissionType) throws RemoteException
- Specified by:
getContentPermissionSetin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
getContentPermissions
public Vector getContentPermissions(String token, String contentId) throws RemoteException
- Specified by:
getContentPermissionsin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
setContentPermissions
public Boolean setContentPermissions(String token, String contentId, String permissionType, Vector permissions) throws RemoteException
- Specified by:
setContentPermissionsin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
getPageHistory
public Vector getPageHistory(String token, String pageId) throws RemoteException
- Specified by:
getPageHistoryin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
getSpace
public Hashtable getSpace(String token, String spaceKey) throws RemoteException
- Specified by:
getSpacein interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
getPermissions
public Vector getPermissions(String token, String spaceKey) throws RemoteException
- Specified by:
getPermissionsin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
getPermissionsForUser
public Vector getPermissionsForUser(String token, String spaceKey, String userName) throws RemoteException
- Specified by:
getPermissionsForUserin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
getSpacePermissionSets
public Vector getSpacePermissionSets(String token, String spaceKey) throws RemoteException
- Specified by:
getSpacePermissionSetsin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
getSpacePermissionSet
public Hashtable getSpacePermissionSet(String token, String spaceKey, String permissionType) throws RemoteException
- Specified by:
getSpacePermissionSetin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
getPagePermissions
public Vector getPagePermissions(String token, String pageId) throws RemoteException
- Specified by:
getPagePermissionsin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
renderContent
public String renderContent(String token, String spaceKey, String pageId, String newContent) throws RemoteException
- Specified by:
renderContentin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
renderContent
public String renderContent(String token, String spaceKey, String pageId, String newContent, Hashtable renderParameters) throws RemoteException
- Specified by:
renderContentin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
movePageToTopLevel
public Boolean movePageToTopLevel(String token, String pageId, String targetSpaceKey) throws RemoteException
- Specified by:
movePageToTopLevelin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
movePage
public Boolean movePage(String token, String sourcePageId, String targetPageId, String position) throws RemoteException
- Specified by:
movePagein interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
removePage
public Boolean removePage(String token, String pageId) throws RemoteException
- Specified by:
removePagein interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
removePageVersionById
public Boolean removePageVersionById(String token, String historicalPageId) throws RemoteException
- Specified by:
removePageVersionByIdin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
removePageVersionByVersion
public Boolean removePageVersionByVersion(String token, String pageId, int version) throws RemoteException
- Specified by:
removePageVersionByVersionin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
getTrashContents
public Hashtable getTrashContents(String token, String spaceKey, int offset, int maxResults) throws RemoteException
- Specified by:
getTrashContentsin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
purgeFromTrash
public Boolean purgeFromTrash(String token, String spaceKey, String pageId) throws RemoteException
- Specified by:
purgeFromTrashin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
emptyTrash
public Boolean emptyTrash(String token, String spaceKey) throws RemoteException
- Specified by:
emptyTrashin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
search
public Vector search(String token, String query, int maxResults) throws RemoteException
- Specified by:
searchin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
search
public Vector search(String token, String query, Hashtable params, int maxResults) throws RemoteException
- Specified by:
searchin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
storeBlogEntry
public Hashtable storeBlogEntry(String token, Hashtable blogEntryStruct) throws RemoteException
- Specified by:
storeBlogEntryin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
storePage
public Hashtable storePage(String token, Hashtable pageStruct) throws RemoteException
- Specified by:
storePagein interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
updatePage
public Hashtable updatePage(String token, Hashtable pageStruct, Hashtable editOptionsStruct) throws RemoteException
- Specified by:
updatePagein interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
addAttachment
public Hashtable addAttachment(String token, String contentId, Hashtable attachment, byte[] attachmentData) throws RemoteException
- Specified by:
addAttachmentin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
getAttachment
public Hashtable getAttachment(String token, String contentId, String fileName, String version) throws RemoteException
- Specified by:
getAttachmentin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
getAttachmentData
public byte[] getAttachmentData(String token, String contentId, String fileName, String version) throws RemoteException
- Specified by:
getAttachmentDatain interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
removeAttachment
public boolean removeAttachment(String token, String contentId, String fileName) throws RemoteException, NotPermittedException
- Specified by:
removeAttachmentin interfaceConfluenceXmlRpcHandler- Throws:
RemoteExceptionNotPermittedException
-
moveAttachment
public boolean moveAttachment(String token, String originalContentId, String originalFileName, String newContentId, String newFileName) throws RemoteException, NotPermittedException
- Specified by:
moveAttachmentin interfaceConfluenceXmlRpcHandler- Throws:
RemoteExceptionNotPermittedException
-
addSpaceGroup
public Hashtable addSpaceGroup(String token, Hashtable spaceGroup) throws RemoteException
- Specified by:
addSpaceGroupin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
getSpaceGroup
public Hashtable getSpaceGroup(String token, String spaceGroupKey) throws RemoteException
- Specified by:
getSpaceGroupin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
getSpaceGroups
public Vector getSpaceGroups(String token) throws RemoteException
- Specified by:
getSpaceGroupsin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
removeSpaceGroup
public boolean removeSpaceGroup(String token, String spaceGroupKey) throws RemoteException
- Specified by:
removeSpaceGroupin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
addSpace
public Hashtable addSpace(String token, Hashtable space) throws RemoteException
- Specified by:
addSpacein interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
storeSpace
public Hashtable storeSpace(String token, Hashtable remoteSpace) throws RemoteException
- Specified by:
storeSpacein interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
addPersonalSpace
public Hashtable addPersonalSpace(String token, Hashtable space, String username) throws RemoteException
- Specified by:
addPersonalSpacein interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
removeSpace
public Boolean removeSpace(String token, String spaceKey) throws RemoteException
- Specified by:
removeSpacein interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
setSpaceStatus
public Boolean setSpaceStatus(String token, String spaceKey, String statusString) throws RemoteException
- Specified by:
setSpaceStatusin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
getSpaceStatus
public String getSpaceStatus(String token, String spaceKey) throws RemoteException
- Specified by:
getSpaceStatusin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
exportSpace
public String exportSpace(String token, String spaceKey, String exportType) throws RemoteException
- Specified by:
exportSpacein interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
importSpace
public boolean importSpace(String token, byte[] importData) throws RemoteException
Description copied from interface:ConfluenceXmlRpcHandlerImport a space in a compressed XML format- Specified by:
importSpacein interfaceConfluenceXmlRpcHandler- Parameters:
token- The authentication tokenimportData- The contents of the Space export file- Returns:
- True if successful, otherwise false
- Throws:
RemoteException- If the space exists or the export file is invalid
-
addPermissionToSpace
public boolean addPermissionToSpace(String token, String permission, String remoteEntityName, String spaceKey) throws RemoteException
- Specified by:
addPermissionToSpacein interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
addPermissionsToSpace
public boolean addPermissionsToSpace(String token, Vector permissions, String remoteEntityName, String spaceKey) throws RemoteException
- Specified by:
addPermissionsToSpacein interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
addGlobalPermissions
public boolean addGlobalPermissions(String token, Vector permissions, String remoteEntityName) throws RemoteException
- Specified by:
addGlobalPermissionsin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
addGlobalPermission
public boolean addGlobalPermission(String token, String permission, String remoteEntityName) throws RemoteException
- Specified by:
addGlobalPermissionin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
removeGlobalPermission
public boolean removeGlobalPermission(String token, String permission, String remoteEntityName) throws RemoteException
- Specified by:
removeGlobalPermissionin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
addAnonymousUsePermission
public boolean addAnonymousUsePermission(String token) throws RemoteException
- Specified by:
addAnonymousUsePermissionin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
removeAnonymousUsePermission
public boolean removeAnonymousUsePermission(String token) throws RemoteException
- Specified by:
removeAnonymousUsePermissionin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
addAnonymousViewUserProfilePermission
public boolean addAnonymousViewUserProfilePermission(String token) throws RemoteException
- Specified by:
addAnonymousViewUserProfilePermissionin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
removeAnonymousViewUserProfilePermission
public boolean removeAnonymousViewUserProfilePermission(String token) throws RemoteException
- Specified by:
removeAnonymousViewUserProfilePermissionin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
removePermissionFromSpace
public boolean removePermissionFromSpace(String token, String permission, String remoteEntityName, String spaceKey) throws NotPermittedException, RemoteException
- Specified by:
removePermissionFromSpacein interfaceConfluenceXmlRpcHandler- Throws:
NotPermittedExceptionRemoteException
-
addAnonymousPermissionToSpace
public boolean addAnonymousPermissionToSpace(String token, String permission, String spaceKey) throws RemoteException
- Specified by:
addAnonymousPermissionToSpacein interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
addAnonymousPermissionsToSpace
public boolean addAnonymousPermissionsToSpace(String token, Vector permissions, String spaceKey) throws RemoteException
- Specified by:
addAnonymousPermissionsToSpacein interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
removeAnonymousPermissionFromSpace
public boolean removeAnonymousPermissionFromSpace(String token, String permission, String spaceKey) throws NotPermittedException, RemoteException
- Specified by:
removeAnonymousPermissionFromSpacein interfaceConfluenceXmlRpcHandler- Throws:
NotPermittedExceptionRemoteException
-
getSpaceLevelPermissions
public String[] getSpaceLevelPermissions(String token) throws RemoteException
- Specified by:
getSpaceLevelPermissionsin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
getServerInfo
public Hashtable getServerInfo(String token) throws RemoteException
- Specified by:
getServerInfoin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
exportSite
public String exportSite(String token, boolean exportAttachments) throws RemoteException
- Specified by:
exportSitein interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
performBackup
public String performBackup(String token, boolean exportAttachments) throws RemoteException
- Specified by:
performBackupin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
flushIndexQueue
public boolean flushIndexQueue(String token) throws RemoteException
- Specified by:
flushIndexQueuein interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
clearIndexQueue
public boolean clearIndexQueue(String token) throws RemoteException
- Specified by:
clearIndexQueuein interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
recoverMainIndex
public boolean recoverMainIndex(String token) throws RemoteException
- Specified by:
recoverMainIndexin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
getClusterInformation
public Hashtable getClusterInformation(String token) throws RemoteException
- Specified by:
getClusterInformationin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
getClusterNodeStatuses
public Vector getClusterNodeStatuses(String token) throws RemoteException
- Specified by:
getClusterNodeStatusesin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
getGroups
public Vector getGroups(String token) throws RemoteException
- Specified by:
getGroupsin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
hasGroup
public boolean hasGroup(String token, String groupname) throws InvalidSessionException, RemoteException
- Specified by:
hasGroupin interfaceConfluenceXmlRpcHandler- Throws:
InvalidSessionExceptionRemoteException
-
addGroup
public boolean addGroup(String token, String groupname) throws RemoteException
- Specified by:
addGroupin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
removeGroup
public boolean removeGroup(String token, String groupname, String defaultGroupName) throws RemoteException
- Specified by:
removeGroupin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
getUserGroups
public Vector getUserGroups(String token, String username) throws RemoteException
- Specified by:
getUserGroupsin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
addUserToGroup
public boolean addUserToGroup(String token, String username, String groupname) throws RemoteException
- Specified by:
addUserToGroupin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
removeAllPermissionsForGroup
public boolean removeAllPermissionsForGroup(String token, String groupname) throws RemoteException
- Specified by:
removeAllPermissionsForGroupin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
removeUserFromGroup
public boolean removeUserFromGroup(String token, String username, String groupname) throws RemoteException
- Specified by:
removeUserFromGroupin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
getUser
public Hashtable getUser(String token, String username) throws RemoteException
- Specified by:
getUserin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
getUserByKey
public Hashtable getUserByKey(String token, String userKey) throws RemoteException
- Specified by:
getUserByKeyin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
hasUser
public boolean hasUser(String token, String username) throws InvalidSessionException, RemoteException
- Specified by:
hasUserin interfaceConfluenceXmlRpcHandler- Throws:
InvalidSessionExceptionRemoteException
-
addUser
public boolean addUser(String token, Hashtable remoteUser, String password) throws RemoteException
- Specified by:
addUserin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
addUser
public boolean addUser(String token, Hashtable remoteUser, String password, boolean notifyUser) throws RemoteException
- Specified by:
addUserin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
removeUser
public boolean removeUser(String token, String username) throws RemoteException
- Specified by:
removeUserin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
editUser
public boolean editUser(String token, Hashtable remoteUser) throws NotPermittedException, InvalidSessionException, RemoteException
- Specified by:
editUserin interfaceConfluenceXmlRpcHandler- Throws:
NotPermittedExceptionInvalidSessionExceptionRemoteException
-
deactivateUser
public boolean deactivateUser(String token, String username) throws NotPermittedException, InvalidSessionException, RemoteException
- Specified by:
deactivateUserin interfaceConfluenceXmlRpcHandler- Throws:
NotPermittedExceptionInvalidSessionExceptionRemoteException
-
reactivateUser
public boolean reactivateUser(String token, String username) throws NotPermittedException, InvalidSessionException, RemoteException
- Specified by:
reactivateUserin interfaceConfluenceXmlRpcHandler- Throws:
NotPermittedExceptionInvalidSessionExceptionRemoteException
-
isActiveUser
public boolean isActiveUser(String token, String username) throws NotPermittedException, RemoteException
- Specified by:
isActiveUserin interfaceConfluenceXmlRpcHandler- Throws:
NotPermittedExceptionRemoteException
-
getActiveUsers
public Vector getActiveUsers(String token, boolean viewAll) throws InvalidSessionException, RemoteException
- Specified by:
getActiveUsersin interfaceConfluenceXmlRpcHandler- Throws:
InvalidSessionExceptionRemoteException
-
setUserInformation
public boolean setUserInformation(String token, Hashtable userInfo) throws NotPermittedException, InvalidSessionException, RemoteException
- Specified by:
setUserInformationin interfaceConfluenceXmlRpcHandler- Throws:
NotPermittedExceptionInvalidSessionExceptionRemoteException
-
getUserInformation
public Hashtable getUserInformation(String token, String username) throws InvalidSessionException, RemoteException
- Specified by:
getUserInformationin interfaceConfluenceXmlRpcHandler- Throws:
InvalidSessionExceptionRemoteException
-
changeMyPassword
public boolean changeMyPassword(String token, String oldPass, String newPass) throws InvalidSessionException, RemoteException
- Specified by:
changeMyPasswordin interfaceConfluenceXmlRpcHandler- Throws:
InvalidSessionExceptionRemoteException
-
changeUserPassword
public boolean changeUserPassword(String token, String username, String newPass) throws NotPermittedException, InvalidSessionException, RemoteException
- Specified by:
changeUserPasswordin interfaceConfluenceXmlRpcHandler- Throws:
NotPermittedExceptionInvalidSessionExceptionRemoteException
-
addProfilePicture
public boolean addProfilePicture(String token, String userName, String fileName, String mimeType, byte[] pictureData) throws RemoteException
- Specified by:
addProfilePicturein interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
renameUser
public boolean renameUser(String token, String oldUsername, String newUsername) throws RemoteException
- Specified by:
renameUserin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
renameUsers
public Vector renameUsers(String token, Hashtable oldUsernamesToNewUsernames) throws RemoteException
- Specified by:
renameUsersin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
setUserPreferenceBoolean
public boolean setUserPreferenceBoolean(String token, String username, String key, boolean value) throws InvalidSessionException, RemoteException
- Specified by:
setUserPreferenceBooleanin interfaceConfluenceXmlRpcHandler- Throws:
InvalidSessionExceptionRemoteException
-
getUserPreferenceBoolean
public boolean getUserPreferenceBoolean(String token, String username, String key) throws InvalidSessionException, RemoteException
- Specified by:
getUserPreferenceBooleanin interfaceConfluenceXmlRpcHandler- Throws:
InvalidSessionExceptionRemoteException
-
setUserPreferenceLong
public boolean setUserPreferenceLong(String token, String username, String key, String value) throws InvalidSessionException, RemoteException
- Specified by:
setUserPreferenceLongin interfaceConfluenceXmlRpcHandler- Throws:
InvalidSessionExceptionRemoteException
-
getUserPreferenceLong
public String getUserPreferenceLong(String token, String username, String key) throws InvalidSessionException, RemoteException
- Specified by:
getUserPreferenceLongin interfaceConfluenceXmlRpcHandler- Throws:
InvalidSessionExceptionRemoteException
-
setUserPreferenceString
public boolean setUserPreferenceString(String token, String username, String key, String value) throws InvalidSessionException, RemoteException
- Specified by:
setUserPreferenceStringin interfaceConfluenceXmlRpcHandler- Throws:
InvalidSessionExceptionRemoteException
-
getUserPreferenceString
public String getUserPreferenceString(String token, String username, String key) throws InvalidSessionException, RemoteException
- Specified by:
getUserPreferenceStringin interfaceConfluenceXmlRpcHandler- Throws:
InvalidSessionExceptionRemoteException
-
getLabelsById
public Vector getLabelsById(String token, String objectId) throws NotPermittedException, RemoteException
- Specified by:
getLabelsByIdin interfaceConfluenceXmlRpcHandler- Throws:
NotPermittedExceptionRemoteException
-
getMostPopularLabels
public Vector getMostPopularLabels(String token, int maxCount) throws NotPermittedException, RemoteException
- Specified by:
getMostPopularLabelsin interfaceConfluenceXmlRpcHandler- Throws:
NotPermittedExceptionRemoteException
-
getMostPopularLabelsInSpace
public Vector getMostPopularLabelsInSpace(String token, String spaceKey, int maxCount) throws NotPermittedException, RemoteException
- Specified by:
getMostPopularLabelsInSpacein interfaceConfluenceXmlRpcHandler- Throws:
NotPermittedExceptionRemoteException
-
getLabelContentById
public Vector getLabelContentById(String token, String labelId) throws NotPermittedException, RemoteException
- Specified by:
getLabelContentByIdin interfaceConfluenceXmlRpcHandler- Throws:
NotPermittedExceptionRemoteException
-
getLabelContentByName
public Vector getLabelContentByName(String token, String labelName) throws NotPermittedException, RemoteException
- Specified by:
getLabelContentByNamein interfaceConfluenceXmlRpcHandler- Throws:
NotPermittedExceptionRemoteException
-
getLabelContentByObject
public Vector getLabelContentByObject(String token, Hashtable labelObject) throws NotPermittedException, RemoteException
- Specified by:
getLabelContentByObjectin interfaceConfluenceXmlRpcHandler- Throws:
NotPermittedExceptionRemoteException
-
getRecentlyUsedLabels
public Vector getRecentlyUsedLabels(String token, int maxResults) throws InvalidSessionException, RemoteException
- Specified by:
getRecentlyUsedLabelsin interfaceConfluenceXmlRpcHandler- Throws:
InvalidSessionExceptionRemoteException
-
getRecentlyUsedLabelsInSpace
public Vector getRecentlyUsedLabelsInSpace(String token, String spaceKey, int maxResults) throws InvalidSessionException, RemoteException
- Specified by:
getRecentlyUsedLabelsInSpacein interfaceConfluenceXmlRpcHandler- Throws:
InvalidSessionExceptionRemoteException
-
getSpacesWithLabel
public Vector getSpacesWithLabel(String token, String labelName) throws InvalidSessionException, RemoteException
- Specified by:
getSpacesWithLabelin interfaceConfluenceXmlRpcHandler- Throws:
InvalidSessionExceptionRemoteException
-
getRelatedLabels
public Vector getRelatedLabels(String token, String labelName, int maxResults) throws InvalidSessionException, RemoteException
- Specified by:
getRelatedLabelsin interfaceConfluenceXmlRpcHandler- Throws:
InvalidSessionExceptionRemoteException
-
getRelatedLabelsInSpace
public Vector getRelatedLabelsInSpace(String token, String labelName, String spaceKey, int maxResults) throws InvalidSessionException, RemoteException
- Specified by:
getRelatedLabelsInSpacein interfaceConfluenceXmlRpcHandler- Throws:
InvalidSessionExceptionRemoteException
-
getLabelsByDetail
public Vector getLabelsByDetail(String token, String labelName, String namespace, String spaceKey, String owner) throws InvalidSessionException, RemoteException, NotPermittedException
- Specified by:
getLabelsByDetailin interfaceConfluenceXmlRpcHandler- Throws:
InvalidSessionExceptionRemoteExceptionNotPermittedException
-
getSpacesContainingContentWithLabel
public Vector getSpacesContainingContentWithLabel(String token, String labelName) throws InvalidSessionException, RemoteException
- Specified by:
getSpacesContainingContentWithLabelin interfaceConfluenceXmlRpcHandler- Throws:
InvalidSessionExceptionRemoteException
-
addLabelByName
public boolean addLabelByName(String token, String labelName, String objectId) throws NotPermittedException, RemoteException
- Specified by:
addLabelByNamein interfaceConfluenceXmlRpcHandler- Throws:
NotPermittedExceptionRemoteException
-
addLabelById
public boolean addLabelById(String token, String labelId, String objectId) throws NotPermittedException, RemoteException
- Specified by:
addLabelByIdin interfaceConfluenceXmlRpcHandler- Throws:
NotPermittedExceptionRemoteException
-
addLabelByObject
public boolean addLabelByObject(String token, Hashtable labelObject, String objectId) throws NotPermittedException, RemoteException
- Specified by:
addLabelByObjectin interfaceConfluenceXmlRpcHandler- Throws:
NotPermittedExceptionRemoteException
-
addLabelByNameToSpace
public boolean addLabelByNameToSpace(String token, String labelName, String spaceKey) throws NotPermittedException, InvalidSessionException, RemoteException
- Specified by:
addLabelByNameToSpacein interfaceConfluenceXmlRpcHandler- Throws:
NotPermittedExceptionInvalidSessionExceptionRemoteException
-
removeLabelByName
public boolean removeLabelByName(String token, String labelName, String objectId) throws NotPermittedException, RemoteException
- Specified by:
removeLabelByNamein interfaceConfluenceXmlRpcHandler- Throws:
NotPermittedExceptionRemoteException
-
removeLabelById
public boolean removeLabelById(String token, String labelId, String objectId) throws NotPermittedException, RemoteException
- Specified by:
removeLabelByIdin interfaceConfluenceXmlRpcHandler- Throws:
NotPermittedExceptionRemoteException
-
removeLabelByObject
public boolean removeLabelByObject(String token, Hashtable labelObject, String objectId) throws NotPermittedException, RemoteException
- Specified by:
removeLabelByObjectin interfaceConfluenceXmlRpcHandler- Throws:
NotPermittedExceptionRemoteException
-
removeLabelByNameFromSpace
public boolean removeLabelByNameFromSpace(String token, String labelName, String spaceKey) throws NotPermittedException, InvalidSessionException, RemoteException
- Specified by:
removeLabelByNameFromSpacein interfaceConfluenceXmlRpcHandler- Throws:
NotPermittedExceptionInvalidSessionExceptionRemoteException
-
setEnableAnonymousAccess
public boolean setEnableAnonymousAccess(String token, String value) throws RemoteException
- Specified by:
setEnableAnonymousAccessin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
isPluginEnabled
public boolean isPluginEnabled(String token, String pluginKey) throws RemoteException
- Specified by:
isPluginEnabledin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
isPluginInstalled
public boolean isPluginInstalled(String token, String pluginKey) throws RemoteException
- Specified by:
isPluginInstalledin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
installPlugin
public boolean installPlugin(String token, String pluginFileName, byte[] pluginData) throws RemoteException
- Specified by:
installPluginin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
isDarkFeatureEnabled
public boolean isDarkFeatureEnabled(String token, String key) throws RemoteException
- Specified by:
isDarkFeatureEnabledin interfaceConfluenceXmlRpcHandler- Throws:
RemoteException
-
startActivity
public boolean startActivity(String token, String key, String user) throws RemoteException
Description copied from interface:ConfluenceXmlRpcHandlerCall startActivity on the heartbeat manager bean- Specified by:
startActivityin interfaceConfluenceXmlRpcHandler- Parameters:
token- rpc authentication tokenkey- the activity key to startuser- the username of the user starting the activity- Returns:
- true if executes startActivity without error.
- Throws:
RemoteException
-
stopActivity
public boolean stopActivity(String token, String key, String user) throws RemoteException
Description copied from interface:ConfluenceXmlRpcHandlerCall stopActivity on the heartbeat manager bean- Specified by:
stopActivityin interfaceConfluenceXmlRpcHandler- Parameters:
token- rpc authentication tokenkey- the activity key to stopuser- the username of the user stopping the activity- Returns:
- true if executes stopActivity without error.
- Throws:
RemoteException
-
-