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:
login
in interfaceConfluenceXmlRpcHandler
- Specified by:
login
in interfaceSecureRpc
- Throws:
RemoteException
-
logout
public boolean logout(String token) throws RemoteException
- Specified by:
logout
in interfaceConfluenceXmlRpcHandler
- Specified by:
logout
in interfaceSecureRpc
- Throws:
RemoteException
-
getSpaces
public Vector getSpaces(String token) throws RemoteException
- Specified by:
getSpaces
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
getSpacesInGroup
public Vector getSpacesInGroup(String token, String spaceGroupKey) throws RemoteException
- Specified by:
getSpacesInGroup
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
getBlogEntries
public Vector getBlogEntries(String token, String spaceKey) throws RemoteException
- Specified by:
getBlogEntries
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
getBlogEntryByDayAndTitle
public Hashtable getBlogEntryByDayAndTitle(String token, String spaceKey, int dayOfMonth, String postTitle) throws RemoteException
- Specified by:
getBlogEntryByDayAndTitle
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
getBlogEntryByDateAndTitle
public Hashtable getBlogEntryByDateAndTitle(String token, String spaceKey, int year, int month, int dayOfMonth, String postTitle) throws RemoteException
- Specified by:
getBlogEntryByDateAndTitle
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
getComments
public Vector getComments(String token, String pageId) throws RemoteException
- Specified by:
getComments
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
getComment
public Hashtable getComment(String token, String commentId) throws InvalidSessionException, RemoteException
- Specified by:
getComment
in interfaceConfluenceXmlRpcHandler
- Throws:
InvalidSessionException
RemoteException
-
addComment
public Hashtable addComment(String token, Hashtable comment) throws InvalidSessionException, NotPermittedException, RemoteException
- Specified by:
addComment
in interfaceConfluenceXmlRpcHandler
- Throws:
InvalidSessionException
NotPermittedException
RemoteException
-
editComment
public Hashtable editComment(String token, Hashtable comment) throws InvalidSessionException, NotPermittedException, RemoteException
- Specified by:
editComment
in interfaceConfluenceXmlRpcHandler
- Throws:
InvalidSessionException
NotPermittedException
RemoteException
-
removeComment
public boolean removeComment(String token, String commentId) throws InvalidSessionException, NotPermittedException, RemoteException
- Specified by:
removeComment
in interfaceConfluenceXmlRpcHandler
- Throws:
InvalidSessionException
NotPermittedException
RemoteException
-
getTopLevelPages
public Vector getTopLevelPages(String token, String spaceKey) throws RemoteException
- Specified by:
getTopLevelPages
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
getAncestors
public Vector getAncestors(String token, String pageId) throws RemoteException
- Specified by:
getAncestors
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
getChildren
public Vector getChildren(String token, String pageId) throws RemoteException
- Specified by:
getChildren
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
getDescendents
public Vector getDescendents(String token, String pageId) throws RemoteException
- Specified by:
getDescendents
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
getAttachments
public Vector getAttachments(String token, String pageId) throws RemoteException
- Specified by:
getAttachments
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
convertWikiToStorageFormat
public String convertWikiToStorageFormat(String token, String wiki) throws RemoteException
- Specified by:
convertWikiToStorageFormat
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
watchPage
public boolean watchPage(String token, String pageId) throws RemoteException
- Specified by:
watchPage
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
watchSpace
public boolean watchSpace(String token, String spaceKey) throws RemoteException
- Specified by:
watchSpace
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
watchPageForUser
public boolean watchPageForUser(String token, String pageId, String username) throws RemoteException
- Specified by:
watchPageForUser
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
removePageWatch
public boolean removePageWatch(String token, String pageId) throws RemoteException
- Specified by:
removePageWatch
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
removeSpaceWatch
public boolean removeSpaceWatch(String token, String spaceKey) throws RemoteException
- Specified by:
removeSpaceWatch
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
removePageWatchForUser
public boolean removePageWatchForUser(String token, String pageId, String username) throws RemoteException
- Specified by:
removePageWatchForUser
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
isWatchingPage
public boolean isWatchingPage(String token, String pageId, String username) throws RemoteException
- Specified by:
isWatchingPage
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
isWatchingSpace
public boolean isWatchingSpace(String token, String spaceKey, String username) throws RemoteException
- Specified by:
isWatchingSpace
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
isWatchingSpaceForType
public boolean isWatchingSpaceForType(String token, String spaceKey, String contentType, String username) throws RemoteException
- Specified by:
isWatchingSpaceForType
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
getWatchersForPage
public Vector getWatchersForPage(String token, String pageId) throws RemoteException
- Specified by:
getWatchersForPage
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
getWatchersForSpace
public Vector getWatchersForSpace(String token, String spaceKey) throws RemoteException
- Specified by:
getWatchersForSpace
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
getBlogEntry
public Hashtable getBlogEntry(String token, String blogEntryId) throws RemoteException
- Specified by:
getBlogEntry
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
getPages
public Vector getPages(String token, String spaceKey) throws RemoteException
- Specified by:
getPages
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
getPage
public Hashtable getPage(String token, String pageId) throws RemoteException
- Specified by:
getPage
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
getPageSummary
public Hashtable getPageSummary(String token, String pageId) throws RemoteException
- Specified by:
getPageSummary
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
getPage
public Hashtable getPage(String token, String spaceKey, String pageTitle) throws RemoteException
- Specified by:
getPage
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
getPageSummary
public Hashtable getPageSummary(String token, String spaceKey, String pageTitle) throws RemoteException
- Specified by:
getPageSummary
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
getContentPermissionSets
public Vector getContentPermissionSets(String token, String contentId) throws RemoteException
- Specified by:
getContentPermissionSets
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
getContentPermissionSet
public Hashtable getContentPermissionSet(String token, String contentId, String permissionType) throws RemoteException
- Specified by:
getContentPermissionSet
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
getContentPermissions
public Vector getContentPermissions(String token, String contentId) throws RemoteException
- Specified by:
getContentPermissions
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
setContentPermissions
public Boolean setContentPermissions(String token, String contentId, String permissionType, Vector permissions) throws RemoteException
- Specified by:
setContentPermissions
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
getPageHistory
public Vector getPageHistory(String token, String pageId) throws RemoteException
- Specified by:
getPageHistory
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
getSpace
public Hashtable getSpace(String token, String spaceKey) throws RemoteException
- Specified by:
getSpace
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
getPermissions
public Vector getPermissions(String token, String spaceKey) throws RemoteException
- Specified by:
getPermissions
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
getPermissionsForUser
public Vector getPermissionsForUser(String token, String spaceKey, String userName) throws RemoteException
- Specified by:
getPermissionsForUser
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
getSpacePermissionSets
public Vector getSpacePermissionSets(String token, String spaceKey) throws RemoteException
- Specified by:
getSpacePermissionSets
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
getSpacePermissionSet
public Hashtable getSpacePermissionSet(String token, String spaceKey, String permissionType) throws RemoteException
- Specified by:
getSpacePermissionSet
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
getPagePermissions
public Vector getPagePermissions(String token, String pageId) throws RemoteException
- Specified by:
getPagePermissions
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
renderContent
public String renderContent(String token, String spaceKey, String pageId, String newContent) throws RemoteException
- Specified by:
renderContent
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
renderContent
public String renderContent(String token, String spaceKey, String pageId, String newContent, Hashtable renderParameters) throws RemoteException
- Specified by:
renderContent
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
movePageToTopLevel
public Boolean movePageToTopLevel(String token, String pageId, String targetSpaceKey) throws RemoteException
- Specified by:
movePageToTopLevel
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
movePage
public Boolean movePage(String token, String sourcePageId, String targetPageId, String position) throws RemoteException
- Specified by:
movePage
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
removePage
public Boolean removePage(String token, String pageId) throws RemoteException
- Specified by:
removePage
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
removePageVersionById
public Boolean removePageVersionById(String token, String historicalPageId) throws RemoteException
- Specified by:
removePageVersionById
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
removePageVersionByVersion
public Boolean removePageVersionByVersion(String token, String pageId, int version) throws RemoteException
- Specified by:
removePageVersionByVersion
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
getTrashContents
public Hashtable getTrashContents(String token, String spaceKey, int offset, int maxResults) throws RemoteException
- Specified by:
getTrashContents
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
purgeFromTrash
public Boolean purgeFromTrash(String token, String spaceKey, String pageId) throws RemoteException
- Specified by:
purgeFromTrash
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
emptyTrash
public Boolean emptyTrash(String token, String spaceKey) throws RemoteException
- Specified by:
emptyTrash
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
search
public Vector search(String token, String query, int maxResults) throws RemoteException
- Specified by:
search
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
search
public Vector search(String token, String query, Hashtable params, int maxResults) throws RemoteException
- Specified by:
search
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
storeBlogEntry
public Hashtable storeBlogEntry(String token, Hashtable blogEntryStruct) throws RemoteException
- Specified by:
storeBlogEntry
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
storePage
public Hashtable storePage(String token, Hashtable pageStruct) throws RemoteException
- Specified by:
storePage
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
updatePage
public Hashtable updatePage(String token, Hashtable pageStruct, Hashtable editOptionsStruct) throws RemoteException
- Specified by:
updatePage
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
addAttachment
public Hashtable addAttachment(String token, String contentId, Hashtable attachment, byte[] attachmentData) throws RemoteException
- Specified by:
addAttachment
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
getAttachment
public Hashtable getAttachment(String token, String contentId, String fileName, String version) throws RemoteException
- Specified by:
getAttachment
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
getAttachmentData
public byte[] getAttachmentData(String token, String contentId, String fileName, String version) throws RemoteException
- Specified by:
getAttachmentData
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
removeAttachment
public boolean removeAttachment(String token, String contentId, String fileName) throws RemoteException, NotPermittedException
- Specified by:
removeAttachment
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
NotPermittedException
-
moveAttachment
public boolean moveAttachment(String token, String originalContentId, String originalFileName, String newContentId, String newFileName) throws RemoteException, NotPermittedException
- Specified by:
moveAttachment
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
NotPermittedException
-
addSpaceGroup
public Hashtable addSpaceGroup(String token, Hashtable spaceGroup) throws RemoteException
- Specified by:
addSpaceGroup
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
getSpaceGroup
public Hashtable getSpaceGroup(String token, String spaceGroupKey) throws RemoteException
- Specified by:
getSpaceGroup
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
getSpaceGroups
public Vector getSpaceGroups(String token) throws RemoteException
- Specified by:
getSpaceGroups
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
removeSpaceGroup
public boolean removeSpaceGroup(String token, String spaceGroupKey) throws RemoteException
- Specified by:
removeSpaceGroup
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
addSpace
public Hashtable addSpace(String token, Hashtable space) throws RemoteException
- Specified by:
addSpace
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
storeSpace
public Hashtable storeSpace(String token, Hashtable remoteSpace) throws RemoteException
- Specified by:
storeSpace
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
addPersonalSpace
public Hashtable addPersonalSpace(String token, Hashtable space, String username) throws RemoteException
- Specified by:
addPersonalSpace
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
removeSpace
public Boolean removeSpace(String token, String spaceKey) throws RemoteException
- Specified by:
removeSpace
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
setSpaceStatus
public Boolean setSpaceStatus(String token, String spaceKey, String statusString) throws RemoteException
- Specified by:
setSpaceStatus
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
getSpaceStatus
public String getSpaceStatus(String token, String spaceKey) throws RemoteException
- Specified by:
getSpaceStatus
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
exportSpace
public String exportSpace(String token, String spaceKey, String exportType) throws RemoteException
- Specified by:
exportSpace
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
importSpace
public boolean importSpace(String token, byte[] importData) throws RemoteException
Description copied from interface:ConfluenceXmlRpcHandler
Import a space in a compressed XML format- Specified by:
importSpace
in 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:
addPermissionToSpace
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
addPermissionsToSpace
public boolean addPermissionsToSpace(String token, Vector permissions, String remoteEntityName, String spaceKey) throws RemoteException
- Specified by:
addPermissionsToSpace
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
addGlobalPermissions
public boolean addGlobalPermissions(String token, Vector permissions, String remoteEntityName) throws RemoteException
- Specified by:
addGlobalPermissions
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
addGlobalPermission
public boolean addGlobalPermission(String token, String permission, String remoteEntityName) throws RemoteException
- Specified by:
addGlobalPermission
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
removeGlobalPermission
public boolean removeGlobalPermission(String token, String permission, String remoteEntityName) throws RemoteException
- Specified by:
removeGlobalPermission
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
addAnonymousUsePermission
public boolean addAnonymousUsePermission(String token) throws RemoteException
- Specified by:
addAnonymousUsePermission
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
removeAnonymousUsePermission
public boolean removeAnonymousUsePermission(String token) throws RemoteException
- Specified by:
removeAnonymousUsePermission
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
addAnonymousViewUserProfilePermission
public boolean addAnonymousViewUserProfilePermission(String token) throws RemoteException
- Specified by:
addAnonymousViewUserProfilePermission
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
removeAnonymousViewUserProfilePermission
public boolean removeAnonymousViewUserProfilePermission(String token) throws RemoteException
- Specified by:
removeAnonymousViewUserProfilePermission
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
removePermissionFromSpace
public boolean removePermissionFromSpace(String token, String permission, String remoteEntityName, String spaceKey) throws NotPermittedException, RemoteException
- Specified by:
removePermissionFromSpace
in interfaceConfluenceXmlRpcHandler
- Throws:
NotPermittedException
RemoteException
-
addAnonymousPermissionToSpace
public boolean addAnonymousPermissionToSpace(String token, String permission, String spaceKey) throws RemoteException
- Specified by:
addAnonymousPermissionToSpace
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
addAnonymousPermissionsToSpace
public boolean addAnonymousPermissionsToSpace(String token, Vector permissions, String spaceKey) throws RemoteException
- Specified by:
addAnonymousPermissionsToSpace
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
removeAnonymousPermissionFromSpace
public boolean removeAnonymousPermissionFromSpace(String token, String permission, String spaceKey) throws NotPermittedException, RemoteException
- Specified by:
removeAnonymousPermissionFromSpace
in interfaceConfluenceXmlRpcHandler
- Throws:
NotPermittedException
RemoteException
-
getSpaceLevelPermissions
public String[] getSpaceLevelPermissions(String token) throws RemoteException
- Specified by:
getSpaceLevelPermissions
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
getServerInfo
public Hashtable getServerInfo(String token) throws RemoteException
- Specified by:
getServerInfo
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
exportSite
public String exportSite(String token, boolean exportAttachments) throws RemoteException
- Specified by:
exportSite
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
performBackup
public String performBackup(String token, boolean exportAttachments) throws RemoteException
- Specified by:
performBackup
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
flushIndexQueue
public boolean flushIndexQueue(String token) throws RemoteException
- Specified by:
flushIndexQueue
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
clearIndexQueue
public boolean clearIndexQueue(String token) throws RemoteException
- Specified by:
clearIndexQueue
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
recoverMainIndex
public boolean recoverMainIndex(String token) throws RemoteException
- Specified by:
recoverMainIndex
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
getClusterInformation
public Hashtable getClusterInformation(String token) throws RemoteException
- Specified by:
getClusterInformation
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
getClusterNodeStatuses
public Vector getClusterNodeStatuses(String token) throws RemoteException
- Specified by:
getClusterNodeStatuses
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
getGroups
public Vector getGroups(String token) throws RemoteException
- Specified by:
getGroups
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
hasGroup
public boolean hasGroup(String token, String groupname) throws InvalidSessionException, RemoteException
- Specified by:
hasGroup
in interfaceConfluenceXmlRpcHandler
- Throws:
InvalidSessionException
RemoteException
-
addGroup
public boolean addGroup(String token, String groupname) throws RemoteException
- Specified by:
addGroup
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
removeGroup
public boolean removeGroup(String token, String groupname, String defaultGroupName) throws RemoteException
- Specified by:
removeGroup
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
getUserGroups
public Vector getUserGroups(String token, String username) throws RemoteException
- Specified by:
getUserGroups
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
addUserToGroup
public boolean addUserToGroup(String token, String username, String groupname) throws RemoteException
- Specified by:
addUserToGroup
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
removeAllPermissionsForGroup
public boolean removeAllPermissionsForGroup(String token, String groupname) throws RemoteException
- Specified by:
removeAllPermissionsForGroup
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
removeUserFromGroup
public boolean removeUserFromGroup(String token, String username, String groupname) throws RemoteException
- Specified by:
removeUserFromGroup
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
getUser
public Hashtable getUser(String token, String username) throws RemoteException
- Specified by:
getUser
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
getUserByKey
public Hashtable getUserByKey(String token, String userKey) throws RemoteException
- Specified by:
getUserByKey
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
hasUser
public boolean hasUser(String token, String username) throws InvalidSessionException, RemoteException
- Specified by:
hasUser
in interfaceConfluenceXmlRpcHandler
- Throws:
InvalidSessionException
RemoteException
-
addUser
public boolean addUser(String token, Hashtable remoteUser, String password) throws RemoteException
- Specified by:
addUser
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
addUser
public boolean addUser(String token, Hashtable remoteUser, String password, boolean notifyUser) throws RemoteException
- Specified by:
addUser
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
removeUser
public boolean removeUser(String token, String username) throws RemoteException
- Specified by:
removeUser
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
editUser
public boolean editUser(String token, Hashtable remoteUser) throws NotPermittedException, InvalidSessionException, RemoteException
- Specified by:
editUser
in interfaceConfluenceXmlRpcHandler
- Throws:
NotPermittedException
InvalidSessionException
RemoteException
-
deactivateUser
public boolean deactivateUser(String token, String username) throws NotPermittedException, InvalidSessionException, RemoteException
- Specified by:
deactivateUser
in interfaceConfluenceXmlRpcHandler
- Throws:
NotPermittedException
InvalidSessionException
RemoteException
-
reactivateUser
public boolean reactivateUser(String token, String username) throws NotPermittedException, InvalidSessionException, RemoteException
- Specified by:
reactivateUser
in interfaceConfluenceXmlRpcHandler
- Throws:
NotPermittedException
InvalidSessionException
RemoteException
-
isActiveUser
public boolean isActiveUser(String token, String username) throws NotPermittedException, RemoteException
- Specified by:
isActiveUser
in interfaceConfluenceXmlRpcHandler
- Throws:
NotPermittedException
RemoteException
-
getActiveUsers
public Vector getActiveUsers(String token, boolean viewAll) throws InvalidSessionException, RemoteException
- Specified by:
getActiveUsers
in interfaceConfluenceXmlRpcHandler
- Throws:
InvalidSessionException
RemoteException
-
setUserInformation
public boolean setUserInformation(String token, Hashtable userInfo) throws NotPermittedException, InvalidSessionException, RemoteException
- Specified by:
setUserInformation
in interfaceConfluenceXmlRpcHandler
- Throws:
NotPermittedException
InvalidSessionException
RemoteException
-
getUserInformation
public Hashtable getUserInformation(String token, String username) throws InvalidSessionException, RemoteException
- Specified by:
getUserInformation
in interfaceConfluenceXmlRpcHandler
- Throws:
InvalidSessionException
RemoteException
-
changeMyPassword
public boolean changeMyPassword(String token, String oldPass, String newPass) throws InvalidSessionException, RemoteException
- Specified by:
changeMyPassword
in interfaceConfluenceXmlRpcHandler
- Throws:
InvalidSessionException
RemoteException
-
changeUserPassword
public boolean changeUserPassword(String token, String username, String newPass) throws NotPermittedException, InvalidSessionException, RemoteException
- Specified by:
changeUserPassword
in interfaceConfluenceXmlRpcHandler
- Throws:
NotPermittedException
InvalidSessionException
RemoteException
-
addProfilePicture
public boolean addProfilePicture(String token, String userName, String fileName, String mimeType, byte[] pictureData) throws RemoteException
- Specified by:
addProfilePicture
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
renameUser
public boolean renameUser(String token, String oldUsername, String newUsername) throws RemoteException
- Specified by:
renameUser
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
renameUsers
public Vector renameUsers(String token, Hashtable oldUsernamesToNewUsernames) throws RemoteException
- Specified by:
renameUsers
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
setUserPreferenceBoolean
public boolean setUserPreferenceBoolean(String token, String username, String key, boolean value) throws InvalidSessionException, RemoteException
- Specified by:
setUserPreferenceBoolean
in interfaceConfluenceXmlRpcHandler
- Throws:
InvalidSessionException
RemoteException
-
getUserPreferenceBoolean
public boolean getUserPreferenceBoolean(String token, String username, String key) throws InvalidSessionException, RemoteException
- Specified by:
getUserPreferenceBoolean
in interfaceConfluenceXmlRpcHandler
- Throws:
InvalidSessionException
RemoteException
-
setUserPreferenceLong
public boolean setUserPreferenceLong(String token, String username, String key, String value) throws InvalidSessionException, RemoteException
- Specified by:
setUserPreferenceLong
in interfaceConfluenceXmlRpcHandler
- Throws:
InvalidSessionException
RemoteException
-
getUserPreferenceLong
public String getUserPreferenceLong(String token, String username, String key) throws InvalidSessionException, RemoteException
- Specified by:
getUserPreferenceLong
in interfaceConfluenceXmlRpcHandler
- Throws:
InvalidSessionException
RemoteException
-
setUserPreferenceString
public boolean setUserPreferenceString(String token, String username, String key, String value) throws InvalidSessionException, RemoteException
- Specified by:
setUserPreferenceString
in interfaceConfluenceXmlRpcHandler
- Throws:
InvalidSessionException
RemoteException
-
getUserPreferenceString
public String getUserPreferenceString(String token, String username, String key) throws InvalidSessionException, RemoteException
- Specified by:
getUserPreferenceString
in interfaceConfluenceXmlRpcHandler
- Throws:
InvalidSessionException
RemoteException
-
getLabelsById
public Vector getLabelsById(String token, String objectId) throws NotPermittedException, RemoteException
- Specified by:
getLabelsById
in interfaceConfluenceXmlRpcHandler
- Throws:
NotPermittedException
RemoteException
-
getMostPopularLabels
public Vector getMostPopularLabels(String token, int maxCount) throws NotPermittedException, RemoteException
- Specified by:
getMostPopularLabels
in interfaceConfluenceXmlRpcHandler
- Throws:
NotPermittedException
RemoteException
-
getMostPopularLabelsInSpace
public Vector getMostPopularLabelsInSpace(String token, String spaceKey, int maxCount) throws NotPermittedException, RemoteException
- Specified by:
getMostPopularLabelsInSpace
in interfaceConfluenceXmlRpcHandler
- Throws:
NotPermittedException
RemoteException
-
getLabelContentById
public Vector getLabelContentById(String token, String labelId) throws NotPermittedException, RemoteException
- Specified by:
getLabelContentById
in interfaceConfluenceXmlRpcHandler
- Throws:
NotPermittedException
RemoteException
-
getLabelContentByName
public Vector getLabelContentByName(String token, String labelName) throws NotPermittedException, RemoteException
- Specified by:
getLabelContentByName
in interfaceConfluenceXmlRpcHandler
- Throws:
NotPermittedException
RemoteException
-
getLabelContentByObject
public Vector getLabelContentByObject(String token, Hashtable labelObject) throws NotPermittedException, RemoteException
- Specified by:
getLabelContentByObject
in interfaceConfluenceXmlRpcHandler
- Throws:
NotPermittedException
RemoteException
-
getRecentlyUsedLabels
public Vector getRecentlyUsedLabels(String token, int maxResults) throws InvalidSessionException, RemoteException
- Specified by:
getRecentlyUsedLabels
in interfaceConfluenceXmlRpcHandler
- Throws:
InvalidSessionException
RemoteException
-
getRecentlyUsedLabelsInSpace
public Vector getRecentlyUsedLabelsInSpace(String token, String spaceKey, int maxResults) throws InvalidSessionException, RemoteException
- Specified by:
getRecentlyUsedLabelsInSpace
in interfaceConfluenceXmlRpcHandler
- Throws:
InvalidSessionException
RemoteException
-
getSpacesWithLabel
public Vector getSpacesWithLabel(String token, String labelName) throws InvalidSessionException, RemoteException
- Specified by:
getSpacesWithLabel
in interfaceConfluenceXmlRpcHandler
- Throws:
InvalidSessionException
RemoteException
-
getRelatedLabels
public Vector getRelatedLabels(String token, String labelName, int maxResults) throws InvalidSessionException, RemoteException
- Specified by:
getRelatedLabels
in interfaceConfluenceXmlRpcHandler
- Throws:
InvalidSessionException
RemoteException
-
getRelatedLabelsInSpace
public Vector getRelatedLabelsInSpace(String token, String labelName, String spaceKey, int maxResults) throws InvalidSessionException, RemoteException
- Specified by:
getRelatedLabelsInSpace
in interfaceConfluenceXmlRpcHandler
- Throws:
InvalidSessionException
RemoteException
-
getLabelsByDetail
public Vector getLabelsByDetail(String token, String labelName, String namespace, String spaceKey, String owner) throws InvalidSessionException, RemoteException, NotPermittedException
- Specified by:
getLabelsByDetail
in interfaceConfluenceXmlRpcHandler
- Throws:
InvalidSessionException
RemoteException
NotPermittedException
-
getSpacesContainingContentWithLabel
public Vector getSpacesContainingContentWithLabel(String token, String labelName) throws InvalidSessionException, RemoteException
- Specified by:
getSpacesContainingContentWithLabel
in interfaceConfluenceXmlRpcHandler
- Throws:
InvalidSessionException
RemoteException
-
addLabelByName
public boolean addLabelByName(String token, String labelName, String objectId) throws NotPermittedException, RemoteException
- Specified by:
addLabelByName
in interfaceConfluenceXmlRpcHandler
- Throws:
NotPermittedException
RemoteException
-
addLabelById
public boolean addLabelById(String token, String labelId, String objectId) throws NotPermittedException, RemoteException
- Specified by:
addLabelById
in interfaceConfluenceXmlRpcHandler
- Throws:
NotPermittedException
RemoteException
-
addLabelByObject
public boolean addLabelByObject(String token, Hashtable labelObject, String objectId) throws NotPermittedException, RemoteException
- Specified by:
addLabelByObject
in interfaceConfluenceXmlRpcHandler
- Throws:
NotPermittedException
RemoteException
-
addLabelByNameToSpace
public boolean addLabelByNameToSpace(String token, String labelName, String spaceKey) throws NotPermittedException, InvalidSessionException, RemoteException
- Specified by:
addLabelByNameToSpace
in interfaceConfluenceXmlRpcHandler
- Throws:
NotPermittedException
InvalidSessionException
RemoteException
-
removeLabelByName
public boolean removeLabelByName(String token, String labelName, String objectId) throws NotPermittedException, RemoteException
- Specified by:
removeLabelByName
in interfaceConfluenceXmlRpcHandler
- Throws:
NotPermittedException
RemoteException
-
removeLabelById
public boolean removeLabelById(String token, String labelId, String objectId) throws NotPermittedException, RemoteException
- Specified by:
removeLabelById
in interfaceConfluenceXmlRpcHandler
- Throws:
NotPermittedException
RemoteException
-
removeLabelByObject
public boolean removeLabelByObject(String token, Hashtable labelObject, String objectId) throws NotPermittedException, RemoteException
- Specified by:
removeLabelByObject
in interfaceConfluenceXmlRpcHandler
- Throws:
NotPermittedException
RemoteException
-
removeLabelByNameFromSpace
public boolean removeLabelByNameFromSpace(String token, String labelName, String spaceKey) throws NotPermittedException, InvalidSessionException, RemoteException
- Specified by:
removeLabelByNameFromSpace
in interfaceConfluenceXmlRpcHandler
- Throws:
NotPermittedException
InvalidSessionException
RemoteException
-
setEnableAnonymousAccess
public boolean setEnableAnonymousAccess(String token, String value) throws RemoteException
- Specified by:
setEnableAnonymousAccess
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
isPluginEnabled
public boolean isPluginEnabled(String token, String pluginKey) throws RemoteException
- Specified by:
isPluginEnabled
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
isPluginInstalled
public boolean isPluginInstalled(String token, String pluginKey) throws RemoteException
- Specified by:
isPluginInstalled
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
installPlugin
public boolean installPlugin(String token, String pluginFileName, byte[] pluginData) throws RemoteException
- Specified by:
installPlugin
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
isDarkFeatureEnabled
public boolean isDarkFeatureEnabled(String token, String key) throws RemoteException
- Specified by:
isDarkFeatureEnabled
in interfaceConfluenceXmlRpcHandler
- Throws:
RemoteException
-
startActivity
public boolean startActivity(String token, String key, String user) throws RemoteException
Description copied from interface:ConfluenceXmlRpcHandler
Call startActivity on the heartbeat manager bean- Specified by:
startActivity
in 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:ConfluenceXmlRpcHandler
Call stopActivity on the heartbeat manager bean- Specified by:
stopActivity
in 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
-
-