Package com.atlassian.confluence.it.rpc
Class ConfluenceRpc
- java.lang.Object
-
- com.atlassian.confluence.it.rpc.ConfluenceRpc
-
- All Implemented Interfaces:
AutoCloseable
@Deprecated public class ConfluenceRpc extends Object implements AutoCloseable
Deprecated.Please use confluence-test-utils module instead. See {com.atlassian.confluence.test.rest.api.ConfluenceRestClient} and {com.atlassian.confluence.test.rpc.api.ConfluenceRpcClient} alternativesThe new rpc and rest clients may not have all the APIs yet - feel free to copy and refactor them over from here as they are needed.
A client-side stub of the Confluence remote API.DO NOT add methods to this class! Per the manifesto in
AdminRpc
, we should be trying to split this class into smaller RPC clients that are accessed directly from tests. Deprecate and replace uses of methods in this class whenever possible.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ConfluenceRpc.Version
Deprecated.Enumeration of all supported versions of the Confluence remote API
-
Field Summary
Fields Modifier and Type Field Description AdminRpc
admin
Deprecated.AttachmentRpc
attachments
Deprecated.AuthenticatedWebResourceProvider
baseResourceProvider
Deprecated.ContentRpc
content
Deprecated.DarkFeaturesHelper
darkFeatures
Deprecated.LabelsRpc
labels
Deprecated.LikesRpc
likes
Deprecated.MailRpc
mail
Deprecated.NotificationsRpc
notifications
Deprecated.SpaceRpc
spaces
Deprecated.UserPreferencesRpc
userPreferences
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
addExistingProfilePicture(String username, String filename)
Deprecated.Attempts to add a existing profile picture to a user's profile.void
addJobs(ScheduledJobKey job, com.atlassian.scheduler.status.RunOutcome runOutcome, Integer days, Integer total)
Deprecated.Add job run details that has been stored for more than the time threshold in days.boolean
addLabel(long labelId, long contentId)
Deprecated.Adds a label to the content specified by the supplied contentIdboolean
addLabel(String label, AbstractContentEntity target)
Deprecated.boolean
addLabelByObject(Object remoteLabel, Page page)
Deprecated.Adds a label to the specified pageboolean
addLabelToSpace(String label, Space space)
Deprecated.Adds a label to the specified spaceboolean
addProfilePicture(String username, String filename, String mimeType, byte[] pictureData)
Deprecated.Attempts to add a profile picture to a user's profilevoid
addSmtpServer(String serverName, String from, String subjectPrefix, String hostname, int port)
Deprecated.void
addSmtpServer(String serverName, String from, String subjectPrefix, String hostname, int port, String fromName)
Deprecated.boolean
addUserToGroup(User user, Group group)
Deprecated.boolean
addUserToGroup(String username, String groupname)
Deprecated.void
archiveSpace(Space space)
Deprecated.protected Vector<Object>
args(Object... params)
Deprecated.void
assertThatMostRecentIndexEntriesHaveBeenProcessed(ContentEntity... entities)
Deprecated.void
assertThatMostRecentIndexEntriesHaveBeenProcessed(Iterable<? extends ContentEntity> entities)
Deprecated.void
changeAttachmentCreatedDate(Attachment attachment, Date createdDate)
Deprecated.void
changeBlogPostModificationDate(long blogId, Date modificationDate)
Deprecated.void
changeCommentCreatedDate(Comment comment, Date newCreationDate)
Deprecated.boolean
changeMyPassword(String oldPassword, String newPassword)
Deprecated.Attempts to change the current user's old password with the specified new passwordvoid
changePageCreatedDate(long id, Date newDate)
Deprecated.void
changePageModificationDate(long pageId, Date modificationDate)
Deprecated.boolean
changeUserPassword(String username, String newPassword)
Deprecated.Attempts to set the specified password for the specified uservoid
clearCustomHtml()
Deprecated.void
clearHibernateConnectionProviderLastExceptionTime()
Deprecated.void
clearIndex()
Deprecated.boolean
clearIndexQueue()
Deprecated.void
clearMailQueue()
Deprecated.void
clearQueue(String queueName)
Deprecated.void
clearSystemProperty(String name)
Deprecated.Clear the specified System property on the Confluence server.void
close()
Deprecated.String
convertWikiMarkupToXhtml(String wikiMarkup, long pageId)
Deprecated.String
convertWikiToStorageFormat(String wiki)
Deprecated.String
convertXhtmlToWikiMarkup(String xhtml, long pageId)
Deprecated.int
countDrafts(User user)
Deprecated.long
countJobRunDetails(ScheduledJobKey jobKey, com.atlassian.scheduler.status.RunOutcome runOutcome)
Deprecated.Count job run detailslong
createAttachment(long contentId, Attachment attachment)
Deprecated.long
createAttachment(Attachment attachment)
Deprecated.long
createAttachment(ContentEntity page, Attachment attachment)
Deprecated.long
createAttachmentOnDraft(Attachment attachment)
Deprecated.long
createBlogPost(BlogPost blogPost)
Deprecated.long
createComment(Comment comment)
Deprecated.long
createComment(Comment comment, long parentCommentId)
Deprecated.Since 5.5.ContentId
createContent(Content newContent)
Deprecated.long
createDraft(Draft draft)
Deprecated.void
createGroup(Group group)
Deprecated.void
createGroup(String groupname)
Deprecated.void
createJohnsonEvent(String message)
Deprecated.long
createPage(Page page)
Deprecated.Map<String,String>
createPage(String spaceKey, String title, String content, long parentPageId)
Deprecated.Since 5.4.List<Page>
createPageHierarchy(Space space, int depth, String pageTitlePrefix)
Deprecated.Create a simple hierarchy of pages where each page is the parent of the next.List<Page>
createPagesFromPrototype(Page pageTemplate, int count)
Deprecated.Space
createPersonalSpace(User user)
Deprecated.Space
createSpace(Space space)
Deprecated.Space
createSpace(String key, String name, String description)
Deprecated.Since 5.5.Iterable<String>
createSpaces(int i)
Deprecated.Creates a bunch of spaces.long
createTemplate(String templateName, String content, Space space)
Deprecated.long
createTemplateWithStorageFormat(String templateName, String storageFormat, Space space)
Deprecated.int
createTestUsers(int count)
Deprecated.boolean
createUser(User user)
Deprecated.Adds the given userboolean
createUser(User user, boolean notifyUser)
Deprecated.Adds the given uservoid
createUserMacro(String name, boolean hasBody, String bodyType, String outputType, String template)
Deprecated.void
createUserMacro(String name, boolean hasBody, String bodyType, String outputType, String template, String title, String description, String category, String iconUrl, String documentationUrl, boolean hidden)
Deprecated.long
createWikiMarkupPage(Page page)
Deprecated.Since 5.4.boolean
deactivateUser(String username)
Deprecated.Deactivates the user matching the specified usernamevoid
disableAnonymousAccess()
Deprecated.Old XML-RPC method.boolean
doesDraftExist(String contentId, String draftCreator, String draftType, String spaceKey)
Deprecated.void
editAttachment(Attachment updatedAttachment)
Deprecated.Edit either the owning page or the filename of the attachment.void
editPage(Space space, String pageTitle, String newTitle, String newContent)
Deprecated.Modifies the page with the given detailsboolean
editUser(User user)
Deprecated.Attempts to edit the details of the specified uservoid
enableAnonymousAccess()
Deprecated.Old XML-RPC method.void
enableCaptcha(boolean enable)
Deprecated.void
enableCaptchaDebugMode(boolean enable)
Deprecated.boolean
enableDailyReportNotification(User user, boolean dailyReportEnabled)
Deprecated.void
enableElevatedSecurityCheck(boolean enabled)
Deprecated.void
enableNewUserEmailNotifications()
Deprecated.void
enablePublicSignUp(boolean enabled)
Deprecated.void
enableWebSudo(boolean enabled)
Deprecated.Object
execute(String method, Object... args)
Deprecated.Since 5.6.Object
executeAuthPluginXmlRpc(String servicePath, String method, Object... args)
Deprecated.Since 5.6.<T> T
executeAuthPluginXmlRpcOnCurrentNode(String servicePath, String method, Object... args)
Deprecated.Object
executeFuncTest(String method, Object... args)
Deprecated.Since 5.6.<T> T
executeFuncTestOnCurrentNode(String method, Object... args)
Deprecated.Instead of using the execute methods directly, consider adding a wrapper method to ConfluenceRpc.protected Object
executeFuncTestWithToken(String method, String token, Object... args)
Deprecated.<T> T
executeOnCurrentNode(String method, Object... args)
Deprecated.Object
executePluginXmlRpc(String servicePath, String method, Object... args)
Deprecated.Execute a Confluence plugin rpc method as anonymous user.protected Object
executeRpc(String rpcBase, String methodToken, String method, Object... args)
Deprecated.Object
executeWithToken(String method, @Nullable String token, Object... args)
Deprecated.Execute method with the specified token.String
exportSite(boolean exportAttachments)
Deprecated.Returns the URL of the downloadable export.String
exportSpace(Space space, String exportType)
Deprecated.Returns the URL of the downloadable export.void
flushAllCaches()
Deprecated.void
flushEdgeIndexQueue()
Deprecated.boolean
flushIndexQueue()
Deprecated.Triggers an index queue flush and blocks until flush is complete.boolean
flushIndexQueue(long time, TimeUnit unit)
Deprecated.void
flushIndexQueueAndVerify(ContentEntity... contentEntities)
Deprecated.Flush the entire index queue, and explicitly assert that the given content entities had their most recent index queue journal entries processed.void
flushIndexQueueAndVerify(Iterable<? extends ContentEntity> contentEntities)
Deprecated.void
flushMailQueue()
Deprecated.waits for all async events to be processed and flushes mail queue waiting is needed because otherwise there's a chance that mail won't be in queue at time of flushingvoid
follow(User user)
Deprecated.Follows the given user with the logged in user.void
followUsers(User follower, Iterable<User> followees)
Deprecated.List<Map>
getAliveThreads()
Deprecated.List<Page>
getAncestors(Page homePage)
Deprecated.String
getAnonymoizedCurrentClusterNodeIdentifier()
Deprecated.Object
getApplicationConfigProperty(String propertyKey)
Deprecated.Attachment
getAttachment(long contentId, String fileName)
Deprecated.byte[]
getAttachmentData(long contentId, String fileName, String version)
Deprecated.byte[]
getAttachmentData(Attachment attachment, String version)
Deprecated.long
getAttachmentId(long contentId, String fileName)
Deprecated.List<Attachment>
getAttachments(Page homePage)
Deprecated.Object
getBandanaValue(String context, String key)
Deprecated.String
getBaseUrl()
Deprecated.BlogPost
getBlogPost(long pageId)
Deprecated.Returns the blog post with the specified page ID.CacheStatistics
getCacheStatistics(CacheKey key)
Deprecated.List<Page>
getChildren(long parentPageId)
Deprecated.Map<String,Object>
getClusterInformation()
Deprecated.Comment
getComment(AbstractPageEntity pageEntity, long commentId)
Deprecated.List<Comment>
getComments(Page page)
Deprecated.String
getConfiguredBaseUrl()
Deprecated.Returns the configured base url on the server.String
getConfiguredThemeForSpace(String spaceKey)
Deprecated.long
getContentPermissionId(long pageId, String permissionType, String username)
Deprecated.long
getContentPermissionId(ContentPermission contentPermission, long pageId)
Deprecated.List<Map<String,String>>
getContentPermissions(long contentId, ContentPermissionType permissionType)
Deprecated.Map<String,Object>
getContentPermissionSet(long contentId, ContentPermissionType permissionType)
Deprecated.String
getContentPropertiesString(long contentId, String key)
Deprecated.UsesContentProperties
.String
getContentPropertiesStringForSpace(String spaceKey, String key)
Deprecated.UsesContentProperties
associated with theSpaceDescription
.String
getContentProperty(long contentId, String key)
Deprecated.UsesContentPropertyManager
.List<String>
getContentPropertyKeys(long contentId)
Deprecated.UsesContentPropertyManager
.String
getContentTextProperty(long contentId, String key)
Deprecated.UsesContentPropertyManager
.Vector<Hashtable>
getCusterNodeStatuses()
Deprecated.DarkFeaturesHelper
getDarkFeaturesHelper()
Deprecated.String
getDatabaseStatistics()
Deprecated.List<Page>
getDescendents(Page homePage)
Deprecated.Page
getExistingPage(long pageId)
Deprecated.Retrieve thePage
object for a page, known to exist in confluence.Page
getExistingPage(Space space, String pageTitle)
Deprecated.Retrieve the fully populatedPage
object for a page, known to exist in confluence.String
getExportBuildNumber()
Deprecated.String
getFriendlyRelativeDate(Date now, Date date, TimeZone timeZone)
Deprecated.Use theFriendlyDateFormatter
to format the date relative to the "now" time.String
getGlobalConfiguredTheme()
Deprecated.List<GlobalPermission>
getGlobalPermissions(Group group)
Deprecated.Old XML-RPC method.List<Group>
getGroups()
Deprecated.Retrieves existing groupsList<SearchResult>
getLabelContent(long labelId)
Deprecated.List<SearchResult>
getLabelContent(String labelName)
Deprecated.List<SearchResult>
getLabelContentByObject(Object remoteLabel)
Deprecated.Returns the content for a given label objectList<Label>
getLabels(long pageId)
Deprecated.Retrieves the labels for the page matching the specified pageIdList<Label>
getLabels(String labelName, String namespace, String spaceKey, String owner)
Deprecated.Retrieves the labels matching the given labelName, namespace or owner.String
getLocalisedText(String messageKey)
Deprecated.Returns the localised message text for the given key, retrieved from the application via RPC.String
getLoggedInUser()
Deprecated.int
getMailQueueSize()
Deprecated.List<Label>
getMostPopularLabels(int maxCount)
Deprecated.Returns the most popular labelsList<Label>
getMostPopularLabelsInSpace(String spaceKey, int maxCount)
Deprecated.Returns the most popular labels in the space with the specified keyint
getNumberOfActiveUsers()
Deprecated.int
getNumberOfIndexTasksInQueue()
Deprecated.String
getOldestSpaceImportAllowed()
Deprecated.String
getPageContent(long pageId)
Deprecated.List<Map<String,String>>
getPageHistory(Page homePage)
Deprecated.long
getPageId(Page page)
Deprecated.long
getPageId(String spaceKey, String title)
Deprecated.List<Long>
getPageIdsInSpace(Space space)
Deprecated.Collection<ContentPermissionEntry>
getPagePermissions(long pageId)
Deprecated.List<Page>
getPagesInSpace(Space space)
Deprecated.Page
getPageWithDetails(long pageId)
Deprecated.A heavier version ofgetExistingPage(long)
, that makes several calls to the server to flesh out the space and the last modifier.long
getParentId(long pageId)
Deprecated.List<String>
getPermissionsForUser(Space space, User user)
Deprecated.Old XML-RPC method.List<String>
getPermissionsForUser(String spaceKey, String username)
Deprecated.Old XML-RPC method.long
getPersonalInformationId(String username)
Deprecated.String
getPluginExportCompatibility(String pluginKey)
Deprecated.PluginHelper
getPluginHelper()
Deprecated.Retrieve a PluginHelper that manipulates plugin using this ConfluenceRpc.List<Label>
getRecentlyUsedLabels(int maxCount)
Deprecated.Returns the recently used labels for the Confluence instance, with a specified maximum number of results.List<Label>
getRecentlyUsedLabelsInSpace(String spaceKey, int maxCount)
Deprecated.Returns the recently used labels in the space with the specified keyList<Label>
getRelatedLabels(String labelName, int maxCount)
Deprecated.Returns the labels related to the given label nameList<Label>
getRelatedLabelsInSpace(String labelName, String spaceKey, int maxCount)
Deprecated.Returns the labels related to the given label name in the given spaceMap<String,Object>
getServerInfo()
Deprecated.Space
getSpace(String spaceKey)
Deprecated.Returns the space with the specified key.List<Space>
getSpaces()
Deprecated.Retrieves spaces visible to the currently logged in rpc userList<Space>
getSpacesContainingContentWithLabel(String labelName)
Deprecated.List<Space>
getSpacesWithLabel(String labelName)
Deprecated.String
getStackDump(String threadNameRegex)
Deprecated.String
getSystemProperty(String name)
Deprecated.Retrieve the value of the specified System property on the Confluence server.List<Page>
getTopLevelPages(String spaceKey)
Deprecated.UserWithKey
getUser(User user)
Deprecated.UserWithKey
getUser(String username)
Deprecated.Retrieves a user with the given usernameUserWithKey
getUser(String username, String password)
Deprecated.List<Group>
getUserGroups(String username)
Deprecated.Retrieves the groups that a user matching the specified username belongs toUserInformation
getUserInformation(User user)
Deprecated.UserInformation
getUserInformation(String username)
Deprecated.Locale
getUserLocale(User user)
Deprecated.List<String>
getUsernames(boolean viewAll)
Deprecated.Retrieves the usernames of the current system usersvoid
grantAllPermissions(Entity entity, Space space)
Deprecated.Userpc.admin.permissions.
PermissionsRpc.addSpaceUserPermissions(java.lang.String, java.lang.String, com.atlassian.confluence.it.SpacePermission...)
orPermissionsRpc.addSpaceGroupPermissions(java.lang.String, java.lang.String, com.atlassian.confluence.it.SpacePermission...)
orPermissionsRpc.addSpaceAnonymousPermissions(java.lang.String, com.atlassian.confluence.it.SpacePermission...)
instead.void
grantAllPermissionsExceptAdmin(Entity entity, Space space)
Deprecated.void
grantAnonymousPermission(SpacePermission permission, Space space)
Deprecated.Old XML-RPC method.void
grantAnonymousUsePermission()
Deprecated.Old XML-RPC method.boolean
grantAnonymousViewUserProfilePermission()
Deprecated.Old XML-RPC method.void
grantContentPermission(ContentPermission contentPermission, ContentEntity contentEntity)
Deprecated.void
grantContentPermission(ContentEntity contentEntity, Entity entity, ContentPermissionType permissionType)
Deprecated.void
grantContentPermissions(ContentEntity contentEntity, List<? extends Entity> entities, ContentPermissionType permissionType)
Deprecated.void
grantPermission(GlobalPermission permission, Entity entity)
Deprecated.Old XML-RPC method.void
grantPermission(SpacePermission permission, Space space, Entity entity)
Deprecated.Old XML-RPC method.void
grantPermission(SpacePermission permission, String spaceKey, Entity entity)
Deprecated.Old XML-RPC method.void
grantPermissions(Space space, Entity entity, SpacePermission... permissions)
Deprecated.Old XML-RPC method.boolean
hasGroup(String groupname)
Deprecated.Checks whether or not a group matching the specified name existsboolean
hasUser(String username)
Deprecated.Checks whether a user with the specified username existsvoid
importSpace(byte[] zippedXmlBackup)
Deprecated.void
importSpace(File zippedXmlBackup)
Deprecated.void
increaseHighValue()
Deprecated.boolean
isActiveUser(String username)
Deprecated.Checks whether the user is activeboolean
isClusteredInstance()
Deprecated.boolean
isDarkFeatureEnabled(String key)
Deprecated.boolean
isImportTaskRunning()
Deprecated.boolean
isPluginUpgradeTasksComplete()
Deprecated.boolean
isSpringComponentPresent(String componentName)
Deprecated.boolean
isUnlimitedUserLicense()
Deprecated.void
logIn(User user)
Deprecated.Set the current user logged into this rpc client.boolean
logMessage(RpcLogDestination destination, String message)
Deprecated.Logs a message on the server at a specified log level or to sout or syserr.void
logOut()
Deprecated.void
moveBlogPost(BlogPost blogPost, Space targetSpace)
Deprecated.void
movePage(long sourcePageId, long targetPageId, String position)
Deprecated.void
movePage(Page page, Page target, String position)
Deprecated.Move a page "to" another page.void
movePageToTopLevel(Page page, Space targetSpace)
Deprecated.Moves a page to the top of the target spacestatic ConfluenceRpc
newInstance(BaseUrlSelector baseUrlSelector)
Deprecated.Create a new RPC stub pointed at the default version of the server-side API.static ConfluenceRpc
newInstance(BaseUrlSelector baseUrlSelector, ConfluenceRpc.Version version)
Deprecated.Create a new RPC stub pointed at a specific version of the server-side API.static ConfluenceRpc
newInstance(BaseUrlSelector baseUrlSelector, com.sun.jersey.api.client.Client restClient)
Deprecated.static ConfluenceRpc
newInstance(com.atlassian.confluence.test.BaseUrlSelector baseUrlSelector)
Deprecated.Create a new RPC stub pointed at the default version of the server-side API.static ConfluenceRpc
newInstance(com.atlassian.confluence.test.BaseUrlSelector baseUrlSelector, ConfluenceRpc.Version version)
Deprecated.Create a new RPC stub pointed at a specific version of the server-side API.static ConfluenceRpc
newInstance(com.atlassian.confluence.test.BaseUrlSelector baseUrlSelector, com.sun.jersey.api.client.Client restClient)
Deprecated.static ConfluenceRpc
newInstance(String baseUrl)
Deprecated.Create a new RPC stub pointed at the default version of the server-side API.static ConfluenceRpc
newInstance(String baseUrl, ConfluenceRpc.Version version)
Deprecated.Create a new RPC stub pointed at a specific version of the server-side API.static ConfluenceRpc
newInstance(String baseUrl, com.sun.jersey.api.client.Client restClient)
Deprecated.Create a new RPC stub pointed at the default version using the preconfigured Jersey clientstatic ConfluenceRpc
newInstanceForSetup(String baseUrl, ConfluenceRpc.Version version)
Deprecated.Create a new RPC stub pointed at a specific version of the server-side API, for use with Setup acceptance tests.protected Hashtable<String,String>
object(String... args)
Deprecated.void
pauseAllJobs()
Deprecated.void
pauseJob(ScheduledJobKey job)
Deprecated.void
pauseJobGroup(String jobGroupName)
Deprecated.String
performBackup(boolean exportAttachments)
Deprecated.void
purgeFromTrash(Space space, long pageId)
Deprecated.Since 5.6.boolean
reactivateUser(String username)
Deprecated.Reactivates the user matching the specified usernameboolean
recoverMainIndex()
Deprecated.void
registerEventListener(String eventClassName)
Deprecated.void
removeAllJohnsonEvents()
Deprecated.void
removeAllSpaces()
Deprecated.void
removeAttachment(long pageId, String fileName)
Deprecated.void
removeAttachmentUncleanly(long pageId, String fileName)
Deprecated.void
removeBandanaKey(String context, String key)
Deprecated.void
removeComment(long commentId)
Deprecated.Remove a comment, identified by its id.void
removeComment(Comment comment)
Deprecated.void
removeDrafts(User user)
Deprecated.boolean
removeGroup(Group group)
Deprecated.Removes the group if it exists, otherwise does nothingboolean
removeGroup(String groupname, String defaultGroupName)
Deprecated.Removes the group if it exists, otherwise does nothingboolean
removeLabel(long labelId, long contentId)
Deprecated.Removes a label from the specified contentboolean
removeLabel(String label, Page page)
Deprecated.Removes a label from the specified pageboolean
removeLabelByObject(Object remoteLabel, Page page)
Deprecated.Removes a label from the specified pageboolean
removeLabelFromSpace(String label, Space space)
Deprecated.Removes a label from the specified spacevoid
removeMailServer(String serverName)
Deprecated.boolean
removePage(long pageId)
Deprecated.boolean
removePage(Page page)
Deprecated.boolean
removePageVersion(long historicalPageId)
Deprecated.boolean
removePageVersion(long pageId, int version)
Deprecated.void
removePersonalInformation(User user)
Deprecated.PersonalInformation gets created automatically by the rpc create user method.boolean
removeSpace(String spaceKey)
Deprecated.Removes the space if it exists, otherwise does nothing.void
removeTestData(Set<User> usersToKeep, Set<Group> groupsToKeep, Map<Group,HashSet<User>> userGroupMembershipsToKeep)
Deprecated.Perform all test-data reset tasks.void
removeTestDataAfterExternalUserManagement()
Deprecated.Called on an instance that manages User/Group data externally, this will: 1.void
removeUser(User user)
Deprecated.boolean
removeUser(String username)
Deprecated.Removes the user if it exists, otherwise does nothing.boolean
removeUserDirectory(long directoryId)
Deprecated.boolean
removeUserFromGroup(User user, Group group)
Deprecated.boolean
removeUserFromGroup(String username, String groupname)
Deprecated.void
removeUserMacro(String name)
Deprecated.boolean
renameUser(String oldUsername, String newUsername)
Deprecated.void
resetDatabaseStatistics()
Deprecated.boolean
resetWelcomeMessage()
Deprecated.void
restoreAbstractPage(long id)
Deprecated.void
resumeJob(ScheduledJobKey job)
Deprecated.boolean
revokeAllPermissions(Group group)
Deprecated.Old XML-RPC method.void
revokeAnonymousPermission(SpacePermission permission, Space space)
Deprecated.Old XML-RPC method.void
revokeAnonymousUsePermission()
Deprecated.Old XML-RPC method.void
revokeAnonymousViewUserProfilePermission()
Deprecated.Old XML-RPC method.void
revokeContentPermission(ContentPermission contentPermission, ContentEntity contentEntity)
Deprecated.void
revokePermission(GlobalPermission permission, Entity entity)
Deprecated.Old XML-RPC method.void
revokePermission(SpacePermission permission, Space space, Entity entity)
Deprecated.Old XML-RPC method.void
revokePermissions(Space space, Entity entity, SpacePermission... permissions)
Deprecated.Old XML-RPC method.void
runGarbageCollection()
Deprecated.void
runJob(ScheduledJobKey job)
Deprecated.Triggers a job on the server.long
saveBlogPost(BlogPost blogPost)
Deprecated.long
saveComment(Comment comment)
Deprecated.void
saveDateFormat(String pattern)
Deprecated.long
savePage(Page page)
Deprecated.List<Hashtable<String,String>>
search(String queryString, int maxMatches)
Deprecated.Search for the supplied query String.List<Hashtable<String,String>>
search(String queryString, Hashtable<String,String> params, int maxMatches)
Deprecated.void
setApplicationConfigProperty(String propertyKey, String propertyValue)
Deprecated.void
setBandanaKey(String context, String key, boolean value)
Deprecated.void
setBandanaKey(String context, String key, int value)
Deprecated.void
setBandanaKey(String context, String key, String value)
Deprecated.void
setBandanaKey(String context, String key, List<String> value)
Deprecated.void
setBandanaKey(String context, String key, Set<String> value)
Deprecated.void
setBandanaObject(String context, String key, Object value, Class clazz)
Deprecated.void
setBlogRestriction(ContentPermission contentPermission, BlogPost blogPost)
Deprecated.Restricts blog post to single given user or group, wiping out any other existing restrictions.void
setContentPropertiesString(long contentId, String key, String value)
Deprecated.UsesContentProperties
.void
setContentPropertiesStringForSpace(String spaceKey, String key, String value)
Deprecated.UsesContentProperties
associated with theSpaceDescription
.void
setContentRestriction(ContentPermission contentPermission, AbstractPageEntity abstractPage)
Deprecated.Restricts page or blog post to single given user or group, wiping out any other existing restrictions.void
setContentTextProperty(long contentId, String key, String value)
Deprecated.UsesContentPropertyManager
.void
setDirectoryPasswordEncoder(String directoryName, String encoder)
Deprecated.void
setDraftRestriction(ContentPermission contentPermission, Draft draft)
Deprecated.Restricts blog post to single given user or group, wiping out any other existing restrictions.void
setDraftSaveInterval(int seconds)
Deprecated.void
setEnableAnonymousAccess(boolean enable)
Deprecated.Old XML-RPC method.void
setEnableAnonymousRpc(boolean enable)
Deprecated.void
setGlobalLanguage(String locale)
Deprecated.void
setGlobalTheme(BundledTheme theme)
Deprecated.void
setHibernateConnectionProviderLastExceptionTime(Instant time)
Deprecated.void
setKeyboardShortcutPref(User user, boolean enabled)
Deprecated.LoggingAndProfiling.LogLevel
setLogLevel(String logger, LoggingAndProfiling.LogLevel level)
Deprecated.Sets the log level of the specified logger, returning the old value.org.apache.log4j.Level
setLogLevel(String logger, org.apache.log4j.Level level)
Deprecated.since 7.5 usesetLogLevel(String, LogLevel)
void
setPageRestriction(ContentPermission contentPermission, Page page)
Deprecated.Restricts page to a single given user or group, wiping out any other existing restrictions.void
setPageRestriction(Page page, Entity entity, ContentPermissionType contentPermissionType)
Deprecated.Restrict page to single given user or group.void
setSmtpServer(String serverName, String from, String subjectPrefix, String hostname, int port)
Deprecated.void
setSmtpServer(String serverName, String from, String subjectPrefix, String hostname, int port, String fromName)
Deprecated.void
setSystemProperty(String name, String value)
Deprecated.Set the specified System property on the Confluence server.void
setThemeForSpace(Space space, BundledTheme theme)
Deprecated.boolean
setUserDetailProperty(User user, String key, String value)
Deprecated.Update a UserDetail property via theUserDetailsManager
.boolean
setUserInformation(UserInformation userInfo)
Deprecated.Updates a user's informationvoid
setUserLocale(User user, Locale language)
Deprecated.boolean
setUserPreference(User user, String key, boolean value)
Deprecated.boolean
setUserPreference(User user, String key, String value)
Deprecated.long
setUserStatus(String wikiStatus)
Deprecated.Sets the current user's status.void
setWatchOwnContent(User user, boolean enabled)
Deprecated.void
setWebSudoTimeout(int timeout)
Deprecated.boolean
setWelcomeMessage(String welcomeMessage)
Deprecated.void
stopFollowing(User user)
Deprecated.Stop following the given user.void
synchroniseUserDirectories()
Deprecated.Synchronises all the directories which support synchronisation (LDAP, remote Crowd, etc.)com.atlassian.fugue.Option<Object>
tryGetApplicationConfigProperty(String propertyKey)
Deprecated.void
unarchiveSpace(Space space)
Deprecated.void
unregisterEventListener(String eventClassName)
Deprecated.long
updateDraft(Draft draft)
Deprecated.boolean
updateGlobalSetting(String name, boolean value)
Deprecated.String
updateGlobalSetting(String name, String value)
Deprecated.long
updatePage(Page page, boolean minorEdit, String versionComment)
Deprecated.Saves pages, but not blogs, seesaveBlogPost(BlogPost)
.void
useAnonymously()
Deprecated.Indicate that further rpc calls should be made anonymously, rather than as a specific user.void
waitForEvent(String eventClassName, String timeoutInSeconds)
Deprecated.void
waitForEventQueue()
Deprecated.
-
-
-
Field Detail
-
notifications
public final NotificationsRpc notifications
Deprecated.
-
userPreferences
public final UserPreferencesRpc userPreferences
Deprecated.
-
likes
public final LikesRpc likes
Deprecated.
-
mail
public final MailRpc mail
Deprecated.
-
darkFeatures
public final DarkFeaturesHelper darkFeatures
Deprecated.
-
content
public final ContentRpc content
Deprecated.
-
spaces
public final SpaceRpc spaces
Deprecated.
-
attachments
public final AttachmentRpc attachments
Deprecated.
-
labels
public final LabelsRpc labels
Deprecated.
-
admin
public final AdminRpc admin
Deprecated.
-
baseResourceProvider
public final AuthenticatedWebResourceProvider baseResourceProvider
Deprecated.
-
-
Method Detail
-
getFriendlyRelativeDate
public String getFriendlyRelativeDate(Date now, Date date, TimeZone timeZone)
Deprecated.Use theFriendlyDateFormatter
to format the date relative to the "now" time. Note that the output format varies greatly even from second to second -- seeFriendlyDateFormatter
.- Parameters:
now
- the date which the relative time is calculated in relation todate
- the date of some event which is to be formattedtimeZone
- the current time zone- Returns:
- a formatted relative date-time
- See Also:
FriendlyDateFormatter
-
flushIndexQueueAndVerify
public void flushIndexQueueAndVerify(ContentEntity... contentEntities)
Deprecated.Flush the entire index queue, and explicitly assert that the given content entities had their most recent index queue journal entries processed.
-
flushIndexQueueAndVerify
public void flushIndexQueueAndVerify(Iterable<? extends ContentEntity> contentEntities)
Deprecated.
-
newInstance
public static ConfluenceRpc newInstance(String baseUrl, ConfluenceRpc.Version version)
Deprecated.Create a new RPC stub pointed at a specific version of the server-side API.- Parameters:
baseUrl
- the base URL of the server to connect toversion
- the version of the API to use- Returns:
- an RPC stub object
-
newInstance
public static ConfluenceRpc newInstance(BaseUrlSelector baseUrlSelector, ConfluenceRpc.Version version)
Deprecated.Create a new RPC stub pointed at a specific version of the server-side API.- Parameters:
baseUrlSelector
- the base URL of the server to connect toversion
- the version of the API to use- Returns:
- an RPC stub object
-
newInstance
public static ConfluenceRpc newInstance(com.atlassian.confluence.test.BaseUrlSelector baseUrlSelector, ConfluenceRpc.Version version)
Deprecated.Create a new RPC stub pointed at a specific version of the server-side API.- Parameters:
baseUrlSelector
- the base URL of the server to connect toversion
- the version of the API to use- Returns:
- an RPC stub object
-
newInstanceForSetup
public static ConfluenceRpc newInstanceForSetup(String baseUrl, ConfluenceRpc.Version version)
Deprecated.Create a new RPC stub pointed at a specific version of the server-side API, for use with Setup acceptance tests.This method should only be called by Setup tests where the ConfluenceRpc instance is created *before* the plugin system is started. Other tests should call
newInstance(String)
.- Parameters:
baseUrl
- the base URL of the server to connect toversion
- the version of the API to use- Returns:
- an RPC stub object
-
newInstance
public static ConfluenceRpc newInstance(String baseUrl)
Deprecated.Create a new RPC stub pointed at the default version of the server-side API.- Parameters:
baseUrl
- the base URL of the server to connect to- Returns:
- an RPC stub object
-
newInstance
public static ConfluenceRpc newInstance(BaseUrlSelector baseUrlSelector)
Deprecated.Create a new RPC stub pointed at the default version of the server-side API.- Parameters:
baseUrlSelector
- the base URL of the server to connect to- Returns:
- an RPC stub object
-
newInstance
public static ConfluenceRpc newInstance(com.atlassian.confluence.test.BaseUrlSelector baseUrlSelector)
Deprecated.Create a new RPC stub pointed at the default version of the server-side API.- Parameters:
baseUrlSelector
- the base URL of the server to connect to- Returns:
- an RPC stub object
-
newInstance
public static ConfluenceRpc newInstance(String baseUrl, com.sun.jersey.api.client.Client restClient)
Deprecated.Create a new RPC stub pointed at the default version using the preconfigured Jersey client- Parameters:
baseUrl
- the base URL of the server to connect torestClient
- the jersey client to use when create WebResources- Returns:
- an RPC stub object
-
newInstance
public static ConfluenceRpc newInstance(BaseUrlSelector baseUrlSelector, com.sun.jersey.api.client.Client restClient)
Deprecated.
-
newInstance
public static ConfluenceRpc newInstance(com.atlassian.confluence.test.BaseUrlSelector baseUrlSelector, com.sun.jersey.api.client.Client restClient)
Deprecated.
-
close
public void close()
Deprecated.- Specified by:
close
in interfaceAutoCloseable
-
execute
@Deprecated public Object execute(String method, Object... args) throws RpcRuntimeException
Deprecated.Since 5.6. Use the less ambiguousexecuteOnCurrentNode(String, Object...)
Execute a Confluence rpc method as the currently logged in user. Should only be called when token is not null. Instead of using the execute methods directly, consider adding a wrapper method to ConfluenceRpc- Parameters:
method
- the name of the rpc method to callargs
- the arguments to be passed to the method. Token will automatically be included first. The rest should be strings or HashTables or Vectors. Longs will be automatically converted to strings to save the hassle of manually converting object IDs- Returns:
- whatever object is returned from the rpc method.
- Throws:
RpcRuntimeException
- wrapping the underlying remote exception- See Also:
logIn(User)
,useAnonymously()
-
executeWithToken
public Object executeWithToken(String method, @Nullable String token, Object... args) throws RpcRuntimeException
Deprecated.Execute method with the specified token. Avoid using this method in favour of logging in as another user and usingexecute(String, Object...)
as them instead. There only time when you should use this is when testing something related to the tokens themselves (e.g. authentication tests)- Parameters:
method
- the method to executetoken
- the tokenargs
- arguments to pass to the XML RPC method- Returns:
- the object returned by the server
- Throws:
RpcRuntimeException
- If the server throws an exception
-
executePluginXmlRpc
public Object executePluginXmlRpc(String servicePath, String method, Object... args) throws RpcRuntimeException
Deprecated.Execute a Confluence plugin rpc method as anonymous user.- Parameters:
servicePath
- service path of the plugin xmlrpc modulemethod
- the name of the rpc method to callargs
- the arguments to be passed to the method. The rest should be strings or HashTables or Vectors. Longs will be automatically converted to strings to save the hassle of manually converting object IDs- Returns:
- whatever object is returned from the rpc method.
- Throws:
RpcRuntimeException
- wrapping the underlying remote exception
-
executeAuthPluginXmlRpc
@Deprecated public Object executeAuthPluginXmlRpc(String servicePath, String method, Object... args) throws RpcRuntimeException
Deprecated.Since 5.6. Use the less ambiguousexecuteAuthPluginXmlRpcOnCurrentNode(String, String, Object...)
Execute a Confluence plugin rpc method as the currently logged in user.- Parameters:
servicePath
- service path of the plugin xmlrpc modulemethod
- the name of the rpc method to callargs
- the arguments to be passed to the method. The rest should be strings or HashTables or Vectors. Longs will be automatically converted to strings to save the hassle of manually converting object IDs- Returns:
- whatever object is returned from the rpc method.
- Throws:
RpcRuntimeException
- wrapping the underlying remote exception
-
executeAuthPluginXmlRpcOnCurrentNode
public <T> T executeAuthPluginXmlRpcOnCurrentNode(String servicePath, String method, Object... args)
Deprecated.
-
executeFuncTest
@Deprecated public Object executeFuncTest(String method, Object... args) throws RpcRuntimeException
Deprecated.Since 5.6. Use the less ambiguousexecuteFuncTestOnCurrentNode(String, Object...)
Instead of using the execute methods directly, consider adding a wrapper method to ConfluenceRpc.- Parameters:
method
- the name of the rpc method to callargs
- the arguments to be passed to the method. Token will automatically be included first. The rest should be strings or HashTables or Vectors. Longs will be automatically converted to strings to save the hassle of manually converting object IDs- Throws:
RpcRuntimeException
- wrapping the underlying remote exception
-
executeFuncTestOnCurrentNode
public <T> T executeFuncTestOnCurrentNode(String method, Object... args)
Deprecated.Instead of using the execute methods directly, consider adding a wrapper method to ConfluenceRpc.- Parameters:
method
- the name of the rpc method to callargs
- the arguments to be passed to the method. Token will automatically be included first. The rest should be strings or HashTables or Vectors. Longs will be automatically converted to strings to save the hassle of manually converting object IDs- Throws:
RpcRuntimeException
- wrapping the underlying remote exception
-
executeFuncTestWithToken
@Deprecated protected Object executeFuncTestWithToken(String method, String token, Object... args) throws RpcRuntimeException
Deprecated.Execute a functest method with the specified token.- Parameters:
method
- the method to executetoken
- the token- Throws:
RpcRuntimeException
-
executeRpc
@Deprecated protected Object executeRpc(String rpcBase, String methodToken, String method, Object... args) throws RpcRuntimeException
Deprecated.- Throws:
RpcRuntimeException
-
logIn
public void logIn(User user)
Deprecated.Set the current user logged into this rpc client. Creates a user token for the given user by calling the remote login method. All further methods called on the client will be performed using this token untillogOut()
oruseAnonymously()
are called.
-
useAnonymously
public void useAnonymously()
Deprecated.Indicate that further rpc calls should be made anonymously, rather than as a specific user. This will last untillogIn(com.atlassian.confluence.it.User)
orlogOut()
are called.
-
logOut
public void logOut()
Deprecated.
-
getPageId
public long getPageId(Page page)
Deprecated.
-
getPageContent
public String getPageContent(long pageId)
Deprecated.
-
convertWikiMarkupToXhtml
public String convertWikiMarkupToXhtml(String wikiMarkup, long pageId)
Deprecated.
-
convertXhtmlToWikiMarkup
public String convertXhtmlToWikiMarkup(String xhtml, long pageId)
Deprecated.
-
createPage
@Deprecated public Map<String,String> createPage(String spaceKey, String title, String content, long parentPageId)
Deprecated.Since 5.4. UsecreatePage(Page)
.TODO make this private, and make all callers use returned Page objects instead
-
createPage
public long createPage(Page page)
Deprecated.- Parameters:
page
- an uncreated page- Returns:
- the id of the newly created page
-
createWikiMarkupPage
@Deprecated public long createWikiMarkupPage(Page page)
Deprecated.Since 5.4. Use XHTML markup in your tests, and callcreatePage(Page)
Certain tests may use wiki-markup as the page content for convenience. These tests can be refactored in the future by breakpointing to see their XHTML version and then using that instead.- Parameters:
page
- an uncreated page with wiki markup content- Returns:
- the id of the newly created page
-
createPagesFromPrototype
public List<Page> createPagesFromPrototype(Page pageTemplate, int count)
Deprecated.
-
createTemplate
public long createTemplate(String templateName, String content, Space space)
Deprecated.
-
createTemplateWithStorageFormat
public long createTemplateWithStorageFormat(String templateName, String storageFormat, Space space)
Deprecated.
-
editPage
public void editPage(Space space, String pageTitle, String newTitle, String newContent)
Deprecated.Modifies the page with the given details- Parameters:
space
- the space that the page belongs topageTitle
- the current title of the PagenewTitle
- the new title of the Page (null if the same)newContent
- the new content of the Page (null if the same)
-
removePage
public boolean removePage(Page page)
Deprecated.
-
removePage
public boolean removePage(long pageId)
Deprecated.
-
removePageVersion
public boolean removePageVersion(long historicalPageId)
Deprecated.
-
removePageVersion
public boolean removePageVersion(long pageId, int version)
Deprecated.
-
restoreAbstractPage
public void restoreAbstractPage(long id)
Deprecated.
-
changePageCreatedDate
public void changePageCreatedDate(long id, Date newDate)
Deprecated.
-
getExistingPage
public Page getExistingPage(Space space, String pageTitle)
Deprecated.Retrieve the fully populatedPage
object for a page, known to exist in confluence.
-
getExistingPage
public Page getExistingPage(long pageId)
Deprecated.Retrieve thePage
object for a page, known to exist in confluence.
-
getPageWithDetails
public Page getPageWithDetails(long pageId)
Deprecated.A heavier version ofgetExistingPage(long)
, that makes several calls to the server to flesh out the space and the last modifier.
-
getBlogPost
public BlogPost getBlogPost(long pageId)
Deprecated.Returns the blog post with the specified page ID. Looks up the space which the blog post belongs to, so this method will execute two RPC calls.
-
getSpace
public Space getSpace(String spaceKey)
Deprecated.Returns the space with the specified key.
-
getChildren
public List<Page> getChildren(long parentPageId)
Deprecated.- Returns:
- the children of the specified parent page, in order.
-
getParentId
public long getParentId(long pageId)
Deprecated.- Returns:
- the parent id of the specified page or -1 if it doesn't have one.
-
savePage
public long savePage(Page page)
Deprecated.
-
updatePage
public long updatePage(Page page, boolean minorEdit, String versionComment)
Deprecated.Saves pages, but not blogs, seesaveBlogPost(BlogPost)
.
-
createDraft
public long createDraft(Draft draft)
Deprecated.
-
updateDraft
public long updateDraft(Draft draft)
Deprecated.
-
setPageRestriction
public void setPageRestriction(ContentPermission contentPermission, Page page)
Deprecated.Restricts page to a single given user or group, wiping out any other existing restrictions.setContentRestriction(com.atlassian.confluence.it.content.security.ContentPermission, com.atlassian.confluence.it.AbstractPageEntity)
should be used instead.
-
setBlogRestriction
public void setBlogRestriction(ContentPermission contentPermission, BlogPost blogPost)
Deprecated.Restricts blog post to single given user or group, wiping out any other existing restrictions.setContentRestriction(com.atlassian.confluence.it.content.security.ContentPermission, com.atlassian.confluence.it.AbstractPageEntity)
should be used instead.
-
setDraftRestriction
public void setDraftRestriction(ContentPermission contentPermission, Draft draft)
Deprecated.Restricts blog post to single given user or group, wiping out any other existing restrictions.setContentRestriction(com.atlassian.confluence.it.content.security.ContentPermission, com.atlassian.confluence.it.AbstractPageEntity)
should be used instead.
-
setContentRestriction
public void setContentRestriction(ContentPermission contentPermission, AbstractPageEntity abstractPage)
Deprecated.Restricts page or blog post to single given user or group, wiping out any other existing restrictions.
-
setPageRestriction
public void setPageRestriction(Page page, Entity entity, ContentPermissionType contentPermissionType)
Deprecated.Restrict page to single given user or group. This will wipe any other restrictions.
-
getContentPermissionId
public long getContentPermissionId(ContentPermission contentPermission, long pageId)
Deprecated.
-
getContentPermissionId
public long getContentPermissionId(long pageId, String permissionType, String username)
Deprecated.
-
createBlogPost
public long createBlogPost(BlogPost blogPost)
Deprecated.
-
saveBlogPost
public long saveBlogPost(BlogPost blogPost)
Deprecated.
-
createComment
public long createComment(Comment comment)
Deprecated.
-
createComment
@Deprecated public long createComment(Comment comment, long parentCommentId)
Deprecated.Since 5.5. Just callcreateComment(Comment)
with a Comment that has a parentId set.
-
saveComment
public long saveComment(Comment comment)
Deprecated.
-
removeComment
public void removeComment(long commentId)
Deprecated.Remove a comment, identified by its id.- Parameters:
commentId
- the id of the comment to remove
-
removeComment
public void removeComment(Comment comment)
Deprecated.
-
changeCommentCreatedDate
public void changeCommentCreatedDate(Comment comment, Date newCreationDate)
Deprecated.
-
createAttachment
public long createAttachment(long contentId, Attachment attachment)
Deprecated.
-
createAttachment
public long createAttachment(ContentEntity page, Attachment attachment)
Deprecated.
-
createAttachment
public long createAttachment(Attachment attachment)
Deprecated.
-
createAttachmentOnDraft
public long createAttachmentOnDraft(Attachment attachment)
Deprecated.
-
removeAttachment
public void removeAttachment(long pageId, String fileName)
Deprecated.
-
removeAttachmentUncleanly
public void removeAttachmentUncleanly(long pageId, String fileName)
Deprecated.
-
addProfilePicture
public boolean addProfilePicture(String username, String filename, String mimeType, byte[] pictureData)
Deprecated.Attempts to add a profile picture to a user's profile- Parameters:
username
- the user name of the profilefilename
- file name of the picturemimeType
- image mime type (must be from image/*)pictureData
- the image data- Returns:
- true if the picture is successfully added
-
addExistingProfilePicture
public boolean addExistingProfilePicture(String username, String filename)
Deprecated.Attempts to add a existing profile picture to a user's profile.- Parameters:
username
- the user name of the profilefilename
- file name of the picture- Returns:
- true if the picture is successfully added
-
enableDailyReportNotification
public boolean enableDailyReportNotification(User user, boolean dailyReportEnabled)
Deprecated.
-
editAttachment
public void editAttachment(Attachment updatedAttachment)
Deprecated.Edit either the owning page or the filename of the attachment.
-
getAttachment
public Attachment getAttachment(long contentId, String fileName)
Deprecated.
-
getAttachmentId
public long getAttachmentId(long contentId, String fileName)
Deprecated.
-
getAttachments
public List<Attachment> getAttachments(Page homePage)
Deprecated.
-
getAttachmentData
public byte[] getAttachmentData(long contentId, String fileName, String version)
Deprecated.
-
getAttachmentData
public byte[] getAttachmentData(Attachment attachment, String version)
Deprecated.
-
movePage
public void movePage(long sourcePageId, long targetPageId, String position)
Deprecated.
-
movePage
public void movePage(Page page, Page target, String position)
Deprecated.Move a page "to" another page.- Parameters:
position
- see com.atlassian.confluence.content.service.page.MovePageCommand
-
movePageToTopLevel
public void movePageToTopLevel(Page page, Space targetSpace)
Deprecated.Moves a page to the top of the target space- Parameters:
page
- page to movetargetSpace
- the target space
-
addLabel
public boolean addLabel(String label, AbstractContentEntity target)
Deprecated.
-
addLabel
public boolean addLabel(long labelId, long contentId)
Deprecated.Adds a label to the content specified by the supplied contentId- Parameters:
labelId
- id of the label to addcontentId
- id of a page or blogpost to add the label to- Returns:
- true if the label is successfully added
-
addLabelByObject
public boolean addLabelByObject(Object remoteLabel, Page page)
Deprecated.Adds a label to the specified page- Parameters:
remoteLabel
- the object retrieved from a direct call to an rpc method that returns a label, i.e. this parameter should be the return value ofexecute(String, Object...)
and not any of wrapper methods that return a Label objectpage
- page to add the label to- Returns:
- true if the label is successfully added
-
removeLabel
public boolean removeLabel(String label, Page page)
Deprecated.Removes a label from the specified page- Parameters:
label
- the name of the label to removepage
- the page to remove the label from- Returns:
- true if the label is successfully removed
-
removeLabel
public boolean removeLabel(long labelId, long contentId)
Deprecated.Removes a label from the specified content- Parameters:
labelId
- id of the label to removecontentId
- id of the page or blog to remove the label from- Returns:
- true if the label is successfully removed
-
removeLabelByObject
public boolean removeLabelByObject(Object remoteLabel, Page page)
Deprecated.Removes a label from the specified page- Parameters:
remoteLabel
- the object retrieved from a direct call to an rpc method that returns a label, i.e. this parameter should be the return value ofexecute(String, Object...)
and not any of wrapper methods that return a Label objectpage
- page to remove the label from- Returns:
- true if the label is successfully removed
-
addLabelToSpace
public boolean addLabelToSpace(String label, Space space)
Deprecated.Adds a label to the specified space- Parameters:
label
- the label to addspace
- the space to add the label to- Returns:
- true if the label is successfully added
-
removeLabelFromSpace
public boolean removeLabelFromSpace(String label, Space space)
Deprecated.Removes a label from the specified space- Parameters:
label
- the label to removespace
- the space to remove the label from- Returns:
- true if the label is successfully removed
-
getSpacesContainingContentWithLabel
public List<Space> getSpacesContainingContentWithLabel(String labelName)
Deprecated.
-
getLabelContent
public List<SearchResult> getLabelContent(long labelId)
Deprecated.
-
getLabelContent
public List<SearchResult> getLabelContent(String labelName)
Deprecated.
-
getLabelContentByObject
public List<SearchResult> getLabelContentByObject(Object remoteLabel)
Deprecated.Returns the content for a given label object- Parameters:
remoteLabel
- the object retrieved from a direct call to an rpc method that returns a label, i.e. this parameter should be the return value ofexecute(String, Object...)
and not any of wrapper methods that return a Label object- Returns:
- content for the given label object
-
getLabels
public List<Label> getLabels(long pageId)
Deprecated.Retrieves the labels for the page matching the specified pageId- Returns:
- labels for the page
-
getLabels
public List<Label> getLabels(String labelName, String namespace, String spaceKey, String owner)
Deprecated.Retrieves the labels matching the given labelName, namespace or owner. This method can be used to retrieve labels of a specific type, such as personal labels, by setting the namespace. Parameters with empty strings are ignored.- Parameters:
labelName
- the name of the label to search for (not parsed for prefixes)namespace
- the namespace to restrict byspaceKey
- the key of the space to restrict byowner
- the owner of the labels- Returns:
- labels matching the specified details
-
getMostPopularLabels
public List<Label> getMostPopularLabels(int maxCount)
Deprecated.Returns the most popular labels- Parameters:
maxCount
- the maximum number of labels to return, or no limit if this is 0- Returns:
- labels sorted by descending popularity
-
getMostPopularLabelsInSpace
public List<Label> getMostPopularLabelsInSpace(String spaceKey, int maxCount)
Deprecated.Returns the most popular labels in the space with the specified key- Parameters:
spaceKey
- key for the spacemaxCount
- the maximum number of labels to return, or no limit if this is 0- Returns:
- labels sorted by descending popularity
-
getRecentlyUsedLabels
public List<Label> getRecentlyUsedLabels(int maxCount)
Deprecated.Returns the recently used labels for the Confluence instance, with a specified maximum number of results.- Parameters:
maxCount
- the maximum number of labels to return, or the default if this is 0- Returns:
- labels sorted by most recent use
-
getRecentlyUsedLabelsInSpace
public List<Label> getRecentlyUsedLabelsInSpace(String spaceKey, int maxCount)
Deprecated.Returns the recently used labels in the space with the specified key- Parameters:
spaceKey
- key for the spacemaxCount
- the maximum number of labels to return, or the default if this is 0- Returns:
- labels sorted by most recent use
-
getRelatedLabels
public List<Label> getRelatedLabels(String labelName, int maxCount)
Deprecated.Returns the labels related to the given label name- Parameters:
labelName
- name of the label to find related labels withmaxCount
- the maximum number of labels to return, or the default if this is 0
-
getRelatedLabelsInSpace
public List<Label> getRelatedLabelsInSpace(String labelName, String spaceKey, int maxCount)
Deprecated.Returns the labels related to the given label name in the given space- Parameters:
labelName
- name of the label to find related labels withspaceKey
- the key of the space to search inmaxCount
- the maximum number of labels to return, or the default if this is 0
-
createSpace
@Deprecated public Space createSpace(String key, String name, String description)
Deprecated.Since 5.5. Create aSpace
and callcreateSpace(Space)
.This method will be made private in a future version of Confluence.
-
removeSpace
public boolean removeSpace(String spaceKey)
Deprecated.Removes the space if it exists, otherwise does nothing.
-
getSpaces
public List<Space> getSpaces()
Deprecated.Retrieves spaces visible to the currently logged in rpc user- Returns:
- spaces visible spaces
-
createUser
public boolean createUser(User user)
Deprecated.Adds the given user- Returns:
- true if the user was successfully created
-
createUser
public boolean createUser(User user, boolean notifyUser)
Deprecated.Adds the given user- Returns:
- true if the user was successfully created
-
createTestUsers
public int createTestUsers(int count)
Deprecated.
-
getUser
public UserWithKey getUser(String username)
Deprecated.Retrieves a user with the given username- Returns:
- the user matching the given username, without a password
-
getUser
public UserWithKey getUser(User user)
Deprecated.
-
getUser
public UserWithKey getUser(String username, String password)
Deprecated.
-
getUserInformation
public UserInformation getUserInformation(User user)
Deprecated.
-
getUserInformation
public UserInformation getUserInformation(String username)
Deprecated.
-
setUserInformation
public boolean setUserInformation(UserInformation userInfo)
Deprecated.Updates a user's information- Returns:
- true if the user's information is successfully updated
-
setUserDetailProperty
public boolean setUserDetailProperty(User user, String key, String value)
Deprecated.Update a UserDetail property via theUserDetailsManager
.
-
setUserPreference
public boolean setUserPreference(User user, String key, String value)
Deprecated.
-
setUserPreference
public boolean setUserPreference(User user, String key, boolean value)
Deprecated.
-
getUsernames
public List<String> getUsernames(boolean viewAll)
Deprecated.Retrieves the usernames of the current system users- Parameters:
viewAll
- If false, all usernames in the default users group will be returned. Otherwise, every registered username is returned.- Returns:
- usernames found
-
changeUserPassword
public boolean changeUserPassword(String username, String newPassword)
Deprecated.Attempts to set the specified password for the specified user- Returns:
- true if the user's password is successfully changed
-
changeMyPassword
public boolean changeMyPassword(String oldPassword, String newPassword)
Deprecated.Attempts to change the current user's old password with the specified new password- Returns:
- true if the current user's password is successfully changed
-
editUser
public boolean editUser(User user)
Deprecated.Attempts to edit the details of the specified user- Returns:
- true if the user's details are successfully edited
-
removeUser
public void removeUser(User user)
Deprecated.
-
removeUser
public boolean removeUser(String username)
Deprecated.Removes the user if it exists, otherwise does nothing.- Returns:
- true if the user was removed
-
hasUser
public boolean hasUser(String username)
Deprecated.Checks whether a user with the specified username exists- Returns:
- true if the user exists
-
deactivateUser
public boolean deactivateUser(String username)
Deprecated.Deactivates the user matching the specified username- Returns:
- true if the user is deactivated
-
reactivateUser
public boolean reactivateUser(String username)
Deprecated.Reactivates the user matching the specified username- Returns:
- true if the user is reactivated
-
isActiveUser
public boolean isActiveUser(String username)
Deprecated.Checks whether the user is active- Parameters:
username
- The username of the user whose status to check- Returns:
- True if the user is active, false otherwise
-
createGroup
public void createGroup(String groupname)
Deprecated.
-
createGroup
public void createGroup(Group group)
Deprecated.
-
removeGroup
public boolean removeGroup(Group group)
Deprecated.Removes the group if it exists, otherwise does nothing- Returns:
- true if the group was removed
-
removeGroup
public boolean removeGroup(String groupname, String defaultGroupName)
Deprecated.Removes the group if it exists, otherwise does nothing- Parameters:
groupname
- the group to removedefaultGroupName
- another group to put existing members of the group in. Can be an empty string if users should not be added to any other group.- Returns:
- true if the group was removed
-
hasGroup
public boolean hasGroup(String groupname)
Deprecated.Checks whether or not a group matching the specified name exists- Returns:
- true if the group exists
-
getGroups
public List<Group> getGroups()
Deprecated.Retrieves existing groups- Returns:
- existing groups
-
getUserGroups
public List<Group> getUserGroups(String username)
Deprecated.Retrieves the groups that a user matching the specified username belongs to- Returns:
- groups that the user belongs to
-
removeUserFromGroup
public boolean removeUserFromGroup(String username, String groupname)
Deprecated.
-
exportSpace
public String exportSpace(Space space, String exportType)
Deprecated.Returns the URL of the downloadable export.
-
exportSite
public String exportSite(boolean exportAttachments)
Deprecated.Returns the URL of the downloadable export.
-
performBackup
public String performBackup(boolean exportAttachments)
Deprecated.
-
getContentPermissionSet
public Map<String,Object> getContentPermissionSet(long contentId, ContentPermissionType permissionType)
Deprecated.
-
getContentPermissions
public List<Map<String,String>> getContentPermissions(long contentId, ContentPermissionType permissionType)
Deprecated.
-
getPermissionsForUser
@Deprecated public List<String> getPermissionsForUser(String spaceKey, String username)
Deprecated.Old XML-RPC method.
-
getPermissionsForUser
@Deprecated public List<String> getPermissionsForUser(Space space, User user)
Deprecated.Old XML-RPC method.
-
grantPermission
@Deprecated public void grantPermission(SpacePermission permission, Space space, Entity entity)
Deprecated.Old XML-RPC method. Userpc.admin.permissions.
PermissionsRpc.addSpaceUserPermissions(java.lang.String, java.lang.String, com.atlassian.confluence.it.SpacePermission...)
orPermissionsRpc.addSpaceGroupPermissions(java.lang.String, java.lang.String, com.atlassian.confluence.it.SpacePermission...)
orPermissionsRpc.addSpaceAnonymousPermissions(java.lang.String, com.atlassian.confluence.it.SpacePermission...)
instead.
-
grantPermission
@Deprecated public void grantPermission(SpacePermission permission, String spaceKey, Entity entity)
Deprecated.Old XML-RPC method. Userpc.admin.permissions.
PermissionsRpc.addSpaceUserPermissions(java.lang.String, java.lang.String, com.atlassian.confluence.it.SpacePermission...)
orPermissionsRpc.addSpaceGroupPermissions(java.lang.String, java.lang.String, com.atlassian.confluence.it.SpacePermission...)
orPermissionsRpc.addSpaceAnonymousPermissions(java.lang.String, com.atlassian.confluence.it.SpacePermission...)
instead.
-
grantPermissions
@Deprecated public void grantPermissions(Space space, Entity entity, SpacePermission... permissions)
Deprecated.Old XML-RPC method. Userpc.admin.permissions.
PermissionsRpc.addSpaceUserPermissions(java.lang.String, java.lang.String, com.atlassian.confluence.it.SpacePermission...)
orPermissionsRpc.addSpaceGroupPermissions(java.lang.String, java.lang.String, com.atlassian.confluence.it.SpacePermission...)
orPermissionsRpc.addSpaceAnonymousPermissions(java.lang.String, com.atlassian.confluence.it.SpacePermission...)
instead.
-
grantAllPermissionsExceptAdmin
@Deprecated public void grantAllPermissionsExceptAdmin(Entity entity, Space space)
Deprecated.
-
grantAllPermissions
@Deprecated public void grantAllPermissions(Entity entity, Space space)
Deprecated.Userpc.admin.permissions.
PermissionsRpc.addSpaceUserPermissions(java.lang.String, java.lang.String, com.atlassian.confluence.it.SpacePermission...)
orPermissionsRpc.addSpaceGroupPermissions(java.lang.String, java.lang.String, com.atlassian.confluence.it.SpacePermission...)
orPermissionsRpc.addSpaceAnonymousPermissions(java.lang.String, com.atlassian.confluence.it.SpacePermission...)
instead.
-
grantContentPermission
public void grantContentPermission(ContentPermission contentPermission, ContentEntity contentEntity)
Deprecated.
-
grantContentPermission
public void grantContentPermission(ContentEntity contentEntity, Entity entity, ContentPermissionType permissionType)
Deprecated.
-
grantContentPermissions
public void grantContentPermissions(ContentEntity contentEntity, List<? extends Entity> entities, ContentPermissionType permissionType)
Deprecated.
-
revokeContentPermission
public void revokeContentPermission(ContentPermission contentPermission, ContentEntity contentEntity)
Deprecated.
-
grantAnonymousPermission
@Deprecated public void grantAnonymousPermission(SpacePermission permission, Space space)
Deprecated.Old XML-RPC method. Userpc.admin.permissions.
PermissionsRpc.addSpaceAnonymousPermissions(java.lang.String, com.atlassian.confluence.it.SpacePermission...)
instead.
-
revokePermission
@Deprecated public void revokePermission(SpacePermission permission, Space space, Entity entity)
Deprecated.Old XML-RPC method. Userpc.admin.permissions.
PermissionsRpc.removeSpaceUserPermissions(java.lang.String, java.lang.String, com.atlassian.confluence.it.SpacePermission...)
orPermissionsRpc.removeSpaceAnonymousPermissions(java.lang.String, com.atlassian.confluence.it.SpacePermission...)
orPermissionsRpc.removeSpaceGroupPermissions(java.lang.String, java.lang.String, com.atlassian.confluence.it.SpacePermission...)
instead.
-
revokePermissions
@Deprecated public void revokePermissions(Space space, Entity entity, SpacePermission... permissions)
Deprecated.Old XML-RPC method. Userpc.admin.permissions.
PermissionsRpc.removeSpaceUserPermissions(java.lang.String, java.lang.String, com.atlassian.confluence.it.SpacePermission...)
orPermissionsRpc.removeSpaceAnonymousPermissions(java.lang.String, com.atlassian.confluence.it.SpacePermission...)
orPermissionsRpc.removeSpaceGroupPermissions(java.lang.String, java.lang.String, com.atlassian.confluence.it.SpacePermission...)
instead.
-
revokeAnonymousPermission
@Deprecated public void revokeAnonymousPermission(SpacePermission permission, Space space)
Deprecated.Old XML-RPC method. Userpc.admin.permissions.
PermissionsRpc.removeSpaceAnonymousPermissions(java.lang.String, com.atlassian.confluence.it.SpacePermission...)
instead.
-
grantPermission
@Deprecated public void grantPermission(GlobalPermission permission, Entity entity)
Deprecated.Old XML-RPC method. Userpc.admin.permissions.
PermissionsRpc.addGlobalUserPermissions(java.lang.String, com.atlassian.confluence.it.GlobalPermission...)
orPermissionsRpc.addGlobalGroupPermissions(java.lang.String, com.atlassian.confluence.it.GlobalPermission...)
instead.
-
revokePermission
@Deprecated public void revokePermission(GlobalPermission permission, Entity entity)
Deprecated.Old XML-RPC method. Userpc.admin.permissions.
PermissionsRpc.removeGlobalUserPermissions(java.lang.String, com.atlassian.confluence.it.GlobalPermission...)
orPermissionsRpc.removeGlobalGroupPermissions(java.lang.String, com.atlassian.confluence.it.GlobalPermission...)
instead.
-
getGlobalPermissions
@Deprecated public List<GlobalPermission> getGlobalPermissions(Group group)
Deprecated.Old XML-RPC method.
-
revokeAllPermissions
@Deprecated public boolean revokeAllPermissions(Group group)
Deprecated.Old XML-RPC method. No exact replacement. Userpc.admin.permissions.
PermissionsRpc.removeAllGlobalGroupPermissions(java.lang.String)
, andPermissionsRpc.removeAllSpaceGroupPermissions(java.lang.String, java.lang.String)
for the appropriate spaces.
-
grantAnonymousUsePermission
@Deprecated public void grantAnonymousUsePermission()
Deprecated.Old XML-RPC method. Userpc.admin.permissions.
PermissionsRpc.enableAnonymousUseConfluence()
instead.
-
revokeAnonymousUsePermission
@Deprecated public void revokeAnonymousUsePermission()
Deprecated.Old XML-RPC method. Userpc.admin.permissions.
PermissionsRpc.disableAnonymousUseConfluence()
instead.
-
grantAnonymousViewUserProfilePermission
@Deprecated public boolean grantAnonymousViewUserProfilePermission()
Deprecated.Old XML-RPC method. Userpc.admin.permissions.
PermissionsRpc.addGlobalAnonymousPermissions(com.atlassian.confluence.it.GlobalPermission...)
instead.
-
revokeAnonymousViewUserProfilePermission
@Deprecated public void revokeAnonymousViewUserProfilePermission()
Deprecated.Old XML-RPC method. Userpc.admin.permissions.
PermissionsRpc.removeGlobalAnonymousPermissions(com.atlassian.confluence.it.GlobalPermission...)
instead.
-
setContentTextProperty
public void setContentTextProperty(long contentId, String key, String value)
Deprecated.UsesContentPropertyManager
.
-
setContentPropertiesString
public void setContentPropertiesString(long contentId, String key, String value)
Deprecated.UsesContentProperties
.
-
setContentPropertiesStringForSpace
public void setContentPropertiesStringForSpace(String spaceKey, String key, String value)
Deprecated.UsesContentProperties
associated with theSpaceDescription
.
-
getContentPropertyKeys
public List<String> getContentPropertyKeys(long contentId)
Deprecated.UsesContentPropertyManager
.
-
getContentProperty
public String getContentProperty(long contentId, String key)
Deprecated.UsesContentPropertyManager
.
-
getContentTextProperty
public String getContentTextProperty(long contentId, String key)
Deprecated.UsesContentPropertyManager
.
-
getContentPropertiesString
public String getContentPropertiesString(long contentId, String key)
Deprecated.UsesContentProperties
.
-
getContentPropertiesStringForSpace
public String getContentPropertiesStringForSpace(String spaceKey, String key)
Deprecated.UsesContentProperties
associated with theSpaceDescription
.
-
flushIndexQueue
public boolean flushIndexQueue()
Deprecated.Triggers an index queue flush and blocks until flush is complete.
-
flushIndexQueue
public boolean flushIndexQueue(long time, TimeUnit unit)
Deprecated.
-
assertThatMostRecentIndexEntriesHaveBeenProcessed
public void assertThatMostRecentIndexEntriesHaveBeenProcessed(ContentEntity... entities)
Deprecated.
-
assertThatMostRecentIndexEntriesHaveBeenProcessed
public void assertThatMostRecentIndexEntriesHaveBeenProcessed(Iterable<? extends ContentEntity> entities)
Deprecated.
-
clearIndex
public void clearIndex()
Deprecated.
-
clearIndexQueue
public boolean clearIndexQueue()
Deprecated.
-
recoverMainIndex
public boolean recoverMainIndex()
Deprecated.
-
runJob
public void runJob(ScheduledJobKey job)
Deprecated.Triggers a job on the server. Waits for the job to complete before returning.
-
countJobRunDetails
public long countJobRunDetails(ScheduledJobKey jobKey, com.atlassian.scheduler.status.RunOutcome runOutcome)
Deprecated.Count job run details- Since:
- 6.4.3
-
addJobs
public void addJobs(ScheduledJobKey job, com.atlassian.scheduler.status.RunOutcome runOutcome, Integer days, Integer total)
Deprecated.Add job run details that has been stored for more than the time threshold in days.- Parameters:
job
-days
-- Since:
- 6.4.3
-
getLocalisedText
public String getLocalisedText(String messageKey)
Deprecated.Returns the localised message text for the given key, retrieved from the application via RPC. The message will be localised to the administrator's locale.If the key is not found, the key itself will be returned, as per
ConfluenceActionSupport.getText(String)
.- Parameters:
messageKey
- the message key to internationalise.- Returns:
- a localised message in the administrator's locale
- See Also:
FuncTestRpcHandler.getLocalisedText(String, String)
,ConfluenceActionSupport.getText(String)
-
getMailQueueSize
public int getMailQueueSize()
Deprecated.
-
clearMailQueue
public void clearMailQueue()
Deprecated.
-
clearQueue
public void clearQueue(String queueName)
Deprecated.
-
getNumberOfIndexTasksInQueue
public int getNumberOfIndexTasksInQueue()
Deprecated.
-
flushEdgeIndexQueue
public void flushEdgeIndexQueue()
Deprecated.
-
setGlobalLanguage
public void setGlobalLanguage(String locale) throws org.apache.xmlrpc.XmlRpcException, IOException
Deprecated.- Throws:
org.apache.xmlrpc.XmlRpcException
IOException
-
setKeyboardShortcutPref
public void setKeyboardShortcutPref(User user, boolean enabled)
Deprecated.
-
setWatchOwnContent
public void setWatchOwnContent(User user, boolean enabled)
Deprecated.
-
removeDrafts
public void removeDrafts(User user)
Deprecated.
-
removeTestData
public void removeTestData(Set<User> usersToKeep, Set<Group> groupsToKeep, Map<Group,HashSet<User>> userGroupMembershipsToKeep)
Deprecated.Perform all test-data reset tasks.
-
removeTestDataAfterExternalUserManagement
public void removeTestDataAfterExternalUserManagement()
Deprecated.Called on an instance that manages User/Group data externally, this will: 1. Remove any data that should be removed *before* the Users/Groups are reset 2. Synchronize with the remote User/Group directory 3. Remove remaining data
-
removeAllSpaces
public void removeAllSpaces()
Deprecated.
-
changeBlogPostModificationDate
public void changeBlogPostModificationDate(long blogId, Date modificationDate)
Deprecated.
-
changePageModificationDate
public void changePageModificationDate(long pageId, Date modificationDate)
Deprecated.
-
changeAttachmentCreatedDate
public void changeAttachmentCreatedDate(Attachment attachment, Date createdDate)
Deprecated.
-
pauseAllJobs
public void pauseAllJobs()
Deprecated.
-
pauseJobGroup
public void pauseJobGroup(String jobGroupName)
Deprecated.
-
pauseJob
public void pauseJob(ScheduledJobKey job)
Deprecated.
-
resumeJob
public void resumeJob(ScheduledJobKey job)
Deprecated.
-
getGlobalConfiguredTheme
public String getGlobalConfiguredTheme()
Deprecated.
-
setGlobalTheme
public void setGlobalTheme(BundledTheme theme)
Deprecated.
-
setThemeForSpace
public void setThemeForSpace(Space space, BundledTheme theme)
Deprecated.
-
clearCustomHtml
public void clearCustomHtml()
Deprecated.
-
createJohnsonEvent
public void createJohnsonEvent(String message)
Deprecated.
-
removeAllJohnsonEvents
public void removeAllJohnsonEvents()
Deprecated.
-
enableCaptcha
public void enableCaptcha(boolean enable)
Deprecated.
-
enableCaptchaDebugMode
public void enableCaptchaDebugMode(boolean enable)
Deprecated.
-
setDraftSaveInterval
public void setDraftSaveInterval(int seconds)
Deprecated.
-
doesDraftExist
public boolean doesDraftExist(String contentId, String draftCreator, String draftType, String spaceKey)
Deprecated.
-
countDrafts
public int countDrafts(User user)
Deprecated.
-
search
public List<Hashtable<String,String>> search(String queryString, int maxMatches)
Deprecated.Search for the supplied query String.- Parameters:
queryString
- the querymaxMatches
- the maximum number of matches to be returned- Returns:
- a List of Hashtables representing SearchResults or the empty list if there are no matches.
-
search
public List<Hashtable<String,String>> search(String queryString, Hashtable<String,String> params, int maxMatches)
Deprecated.
-
importSpace
public void importSpace(File zippedXmlBackup) throws IOException
Deprecated.- Throws:
IOException
-
importSpace
public void importSpace(byte[] zippedXmlBackup) throws IOException
Deprecated.- Throws:
IOException
-
getPagePermissions
public Collection<ContentPermissionEntry> getPagePermissions(long pageId)
Deprecated.
-
getSystemProperty
public String getSystemProperty(String name)
Deprecated.Retrieve the value of the specified System property on the Confluence server.- Parameters:
name
- the property to retrieve- Returns:
- the value of the system property on the server, or null if it is not set
-
setSystemProperty
public void setSystemProperty(String name, String value)
Deprecated.Set the specified System property on the Confluence server. If the value is null, the system property will be removed instead.- Parameters:
name
- the property to setvalue
- the value to set
-
clearSystemProperty
public void clearSystemProperty(String name)
Deprecated.Clear the specified System property on the Confluence server.- Parameters:
name
- the property to set
-
getPluginHelper
public PluginHelper getPluginHelper()
Deprecated.Retrieve a PluginHelper that manipulates plugin using this ConfluenceRpc.
-
getDarkFeaturesHelper
public DarkFeaturesHelper getDarkFeaturesHelper()
Deprecated.
-
getBaseUrl
public String getBaseUrl()
Deprecated.
-
createUserMacro
public void createUserMacro(String name, boolean hasBody, String bodyType, String outputType, String template)
Deprecated.
-
createUserMacro
public void createUserMacro(String name, boolean hasBody, String bodyType, String outputType, String template, String title, String description, String category, String iconUrl, String documentationUrl, boolean hidden)
Deprecated.
-
removeUserMacro
public void removeUserMacro(String name)
Deprecated.
-
getPersonalInformationId
public long getPersonalInformationId(String username)
Deprecated.
-
removePersonalInformation
public void removePersonalInformation(User user)
Deprecated.PersonalInformation gets created automatically by the rpc create user method. This method exists to allow testing that the PersonalInformation will get created appropriately when it doesn't exist (eg for LDAP users).- Parameters:
user
- whose personalInformation will be removed
-
setLogLevel
public LoggingAndProfiling.LogLevel setLogLevel(String logger, LoggingAndProfiling.LogLevel level)
Deprecated.Sets the log level of the specified logger, returning the old value.- Parameters:
logger
- the logger to change the logging for, e.g. com.atlassian.confluence.core.ConfluenceActionSupportlevel
- the level to set the logger to, e.g.LoggingAndProfiling.LogLevel.ERROR
- Returns:
- the previous level the logger was set to.
- Since:
- 7.5
-
setLogLevel
@Deprecated public org.apache.log4j.Level setLogLevel(String logger, org.apache.log4j.Level level)
Deprecated.since 7.5 usesetLogLevel(String, LogLevel)
Sets the log level of the specified logger, returning the old value.- Parameters:
logger
- the logger to change the logging for, e.g. com.atlassian.confluence.core.ConfluenceActionSupportlevel
- the level to set the logger to, e.g.LoggingAndProfiling.LogLevel.ERROR
- Returns:
- the previous level the logger was set to.
-
logMessage
public boolean logMessage(RpcLogDestination destination, String message)
Deprecated.Logs a message on the server at a specified log level or to sout or syserr.- Returns:
- always true.
-
setEnableAnonymousAccess
@Deprecated public void setEnableAnonymousAccess(boolean enable)
Deprecated.Old XML-RPC method. Userpc.admin.permissions.
PermissionsRpc.enableAnonymousUseConfluence()
orPermissionsRpc.disableAnonymousUseConfluence()
instead.
-
setEnableAnonymousRpc
public void setEnableAnonymousRpc(boolean enable)
Deprecated.
-
flushAllCaches
public void flushAllCaches()
Deprecated.
-
getCacheStatistics
public CacheStatistics getCacheStatistics(CacheKey key)
Deprecated.
-
getAnonymoizedCurrentClusterNodeIdentifier
public String getAnonymoizedCurrentClusterNodeIdentifier()
Deprecated.
-
isClusteredInstance
public boolean isClusteredInstance()
Deprecated.
-
createPageHierarchy
public List<Page> createPageHierarchy(Space space, int depth, String pageTitlePrefix)
Deprecated.Create a simple hierarchy of pages where each page is the parent of the next. Returns the pages created with the top-most first in the list.
-
addSmtpServer
public void addSmtpServer(String serverName, String from, String subjectPrefix, String hostname, int port)
Deprecated.
-
addSmtpServer
public void addSmtpServer(String serverName, String from, String subjectPrefix, String hostname, int port, String fromName)
Deprecated.
-
setSmtpServer
public void setSmtpServer(String serverName, String from, String subjectPrefix, String hostname, int port)
Deprecated.
-
setSmtpServer
public void setSmtpServer(String serverName, String from, String subjectPrefix, String hostname, int port, String fromName)
Deprecated.
-
removeMailServer
public void removeMailServer(String serverName)
Deprecated.
-
flushMailQueue
public void flushMailQueue()
Deprecated.waits for all async events to be processed and flushes mail queue waiting is needed because otherwise there's a chance that mail won't be in queue at time of flushing
-
registerEventListener
public void registerEventListener(String eventClassName)
Deprecated.
-
unregisterEventListener
public void unregisterEventListener(String eventClassName)
Deprecated.
-
waitForEventQueue
public void waitForEventQueue()
Deprecated.
-
setApplicationConfigProperty
public void setApplicationConfigProperty(String propertyKey, String propertyValue)
Deprecated.
-
getApplicationConfigProperty
public Object getApplicationConfigProperty(String propertyKey)
Deprecated.
-
tryGetApplicationConfigProperty
public com.atlassian.fugue.Option<Object> tryGetApplicationConfigProperty(String propertyKey)
Deprecated.
-
follow
public void follow(User user)
Deprecated.Follows the given user with the logged in user.- Parameters:
user
- the user to follow.- See Also:
stopFollowing(com.atlassian.confluence.it.User)
-
followUsers
public void followUsers(User follower, Iterable<User> followees)
Deprecated.- Since:
- 5.7
-
stopFollowing
public void stopFollowing(User user)
Deprecated.Stop following the given user.- Parameters:
user
- the user to follow.- See Also:
follow(com.atlassian.confluence.it.User)
-
setUserStatus
public long setUserStatus(String wikiStatus)
Deprecated.Sets the current user's status.- Parameters:
wikiStatus
- the new status of the user as wiki markup.
-
getConfiguredBaseUrl
public String getConfiguredBaseUrl()
Deprecated.Returns the configured base url on the server.
-
enableWebSudo
public void enableWebSudo(boolean enabled)
Deprecated.
-
setWebSudoTimeout
public void setWebSudoTimeout(int timeout)
Deprecated.
-
enableElevatedSecurityCheck
public void enableElevatedSecurityCheck(boolean enabled)
Deprecated.
-
enablePublicSignUp
public void enablePublicSignUp(boolean enabled)
Deprecated.
-
synchroniseUserDirectories
public void synchroniseUserDirectories()
Deprecated.Synchronises all the directories which support synchronisation (LDAP, remote Crowd, etc.)
-
setDirectoryPasswordEncoder
public void setDirectoryPasswordEncoder(String directoryName, String encoder)
Deprecated.
-
removeUserDirectory
public boolean removeUserDirectory(long directoryId)
Deprecated.
-
purgeFromTrash
@Deprecated public void purgeFromTrash(Space space, long pageId)
Deprecated.Since 5.6. Just callContentRpc.purge(ContentId)
directly.
-
getComment
public Comment getComment(AbstractPageEntity pageEntity, long commentId)
Deprecated.
-
isSpringComponentPresent
public boolean isSpringComponentPresent(String componentName)
Deprecated.
-
setBandanaKey
public void setBandanaKey(String context, String key, List<String> value)
Deprecated.
-
setBandanaObject
public void setBandanaObject(String context, String key, Object value, Class clazz)
Deprecated.
-
updateGlobalSetting
public boolean updateGlobalSetting(String name, boolean value)
Deprecated.
-
saveDateFormat
public void saveDateFormat(String pattern)
Deprecated.
-
getLoggedInUser
public String getLoggedInUser()
Deprecated.
-
createSpaces
public Iterable<String> createSpaces(int i)
Deprecated.Creates a bunch of spaces.- Parameters:
i
- the number of spaces to create- Returns:
- an iterable of the keys of the spaces created
-
archiveSpace
public void archiveSpace(Space space)
Deprecated.
-
unarchiveSpace
public void unarchiveSpace(Space space)
Deprecated.
-
isDarkFeatureEnabled
public boolean isDarkFeatureEnabled(String key)
Deprecated.
-
getNumberOfActiveUsers
public int getNumberOfActiveUsers()
Deprecated.
-
isUnlimitedUserLicense
public boolean isUnlimitedUserLicense()
Deprecated.
-
setWelcomeMessage
public boolean setWelcomeMessage(String welcomeMessage)
Deprecated.
-
resetWelcomeMessage
public boolean resetWelcomeMessage()
Deprecated.
-
enableAnonymousAccess
@Deprecated public void enableAnonymousAccess()
Deprecated.Old XML-RPC method. Userpc.admin.permissions.
PermissionsRpc.enableAnonymousUseConfluence()
instead.
-
disableAnonymousAccess
@Deprecated public void disableAnonymousAccess()
Deprecated.Old XML-RPC method. Userpc.admin.permissions.
PermissionsRpc.disableAnonymousUseConfluence()
instead.
-
getExportBuildNumber
public String getExportBuildNumber()
Deprecated.
-
getOldestSpaceImportAllowed
public String getOldestSpaceImportAllowed()
Deprecated.
-
getPluginExportCompatibility
public String getPluginExportCompatibility(String pluginKey)
Deprecated.
-
isPluginUpgradeTasksComplete
public boolean isPluginUpgradeTasksComplete()
Deprecated.
-
resetDatabaseStatistics
public void resetDatabaseStatistics()
Deprecated.
-
getDatabaseStatistics
public String getDatabaseStatistics()
Deprecated.
-
runGarbageCollection
public void runGarbageCollection()
Deprecated.
-
enableNewUserEmailNotifications
public void enableNewUserEmailNotifications()
Deprecated.
-
isImportTaskRunning
public boolean isImportTaskRunning()
Deprecated.
-
increaseHighValue
public void increaseHighValue()
Deprecated.
-
setHibernateConnectionProviderLastExceptionTime
public void setHibernateConnectionProviderLastExceptionTime(Instant time)
Deprecated.
-
clearHibernateConnectionProviderLastExceptionTime
public void clearHibernateConnectionProviderLastExceptionTime()
Deprecated.
-
-