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