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 classConfluenceRpc.VersionDeprecated.Enumeration of all supported versions of the Confluence remote API
-
Field Summary
Fields Modifier and Type Field Description AdminRpcadminDeprecated.AttachmentRpcattachmentsDeprecated.AuthenticatedWebResourceProviderbaseResourceProviderDeprecated.ContentRpccontentDeprecated.DarkFeaturesHelperdarkFeaturesDeprecated.LabelsRpclabelsDeprecated.LikesRpclikesDeprecated.MailRpcmailDeprecated.NotificationsRpcnotificationsDeprecated.SpaceRpcspacesDeprecated.UserPreferencesRpcuserPreferencesDeprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanaddExistingProfilePicture(String username, String filename)Deprecated.Attempts to add a existing profile picture to a user's profile.voidaddJobs(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.booleanaddLabel(long labelId, long contentId)Deprecated.Adds a label to the content specified by the supplied contentIdbooleanaddLabel(String label, AbstractContentEntity target)Deprecated.booleanaddLabelByObject(Object remoteLabel, Page page)Deprecated.Adds a label to the specified pagebooleanaddLabelToSpace(String label, Space space)Deprecated.Adds a label to the specified spacebooleanaddProfilePicture(String username, String filename, String mimeType, byte[] pictureData)Deprecated.Attempts to add a profile picture to a user's profilevoidaddSmtpServer(String serverName, String from, String subjectPrefix, String hostname, int port)Deprecated.voidaddSmtpServer(String serverName, String from, String subjectPrefix, String hostname, int port, String fromName)Deprecated.booleanaddUserToGroup(User user, Group group)Deprecated.booleanaddUserToGroup(String username, String groupname)Deprecated.voidarchiveSpace(Space space)Deprecated.protected Vector<Object>args(Object... params)Deprecated.voidassertThatMostRecentIndexEntriesHaveBeenProcessed(ContentEntity... entities)Deprecated.voidassertThatMostRecentIndexEntriesHaveBeenProcessed(Iterable<? extends ContentEntity> entities)Deprecated.voidchangeAttachmentCreatedDate(Attachment attachment, Date createdDate)Deprecated.voidchangeBlogPostModificationDate(long blogId, Date modificationDate)Deprecated.voidchangeCommentCreatedDate(Comment comment, Date newCreationDate)Deprecated.booleanchangeMyPassword(String oldPassword, String newPassword)Deprecated.Attempts to change the current user's old password with the specified new passwordvoidchangePageCreatedDate(long id, Date newDate)Deprecated.voidchangePageModificationDate(long pageId, Date modificationDate)Deprecated.booleanchangeUserPassword(String username, String newPassword)Deprecated.Attempts to set the specified password for the specified uservoidclearCustomHtml()Deprecated.voidclearHibernateConnectionProviderLastExceptionTime()Deprecated.voidclearIndex()Deprecated.booleanclearIndexQueue()Deprecated.voidclearMailQueue()Deprecated.voidclearQueue(String queueName)Deprecated.voidclearSystemProperty(String name)Deprecated.Clear the specified System property on the Confluence server.voidclose()Deprecated.StringconvertWikiMarkupToXhtml(String wikiMarkup, long pageId)Deprecated.StringconvertWikiToStorageFormat(String wiki)Deprecated.StringconvertXhtmlToWikiMarkup(String xhtml, long pageId)Deprecated.intcountDrafts(User user)Deprecated.longcountJobRunDetails(ScheduledJobKey jobKey, com.atlassian.scheduler.status.RunOutcome runOutcome)Deprecated.Count job run detailslongcreateAttachment(long contentId, Attachment attachment)Deprecated.longcreateAttachment(Attachment attachment)Deprecated.longcreateAttachment(ContentEntity page, Attachment attachment)Deprecated.longcreateAttachmentOnDraft(Attachment attachment)Deprecated.longcreateBlogPost(BlogPost blogPost)Deprecated.longcreateComment(Comment comment)Deprecated.longcreateComment(Comment comment, long parentCommentId)Deprecated.Since 5.5.ContentIdcreateContent(Content newContent)Deprecated.longcreateDraft(Draft draft)Deprecated.voidcreateGroup(Group group)Deprecated.voidcreateGroup(String groupname)Deprecated.voidcreateJohnsonEvent(String message)Deprecated.longcreatePage(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.SpacecreatePersonalSpace(User user)Deprecated.SpacecreateSpace(Space space)Deprecated.SpacecreateSpace(String key, String name, String description)Deprecated.Since 5.5.Iterable<String>createSpaces(int i)Deprecated.Creates a bunch of spaces.longcreateTemplate(String templateName, String content, Space space)Deprecated.longcreateTemplateWithStorageFormat(String templateName, String storageFormat, Space space)Deprecated.intcreateTestUsers(int count)Deprecated.booleancreateUser(User user)Deprecated.Adds the given userbooleancreateUser(User user, boolean notifyUser)Deprecated.Adds the given uservoidcreateUserMacro(String name, boolean hasBody, String bodyType, String outputType, String template)Deprecated.voidcreateUserMacro(String name, boolean hasBody, String bodyType, String outputType, String template, String title, String description, String category, String iconUrl, String documentationUrl, boolean hidden)Deprecated.longcreateWikiMarkupPage(Page page)Deprecated.Since 5.4.booleandeactivateUser(String username)Deprecated.Deactivates the user matching the specified usernamevoiddisableAnonymousAccess()Deprecated.Old XML-RPC method.booleandoesDraftExist(String contentId, String draftCreator, String draftType, String spaceKey)Deprecated.voideditAttachment(Attachment updatedAttachment)Deprecated.Edit either the owning page or the filename of the attachment.voideditPage(Space space, String pageTitle, String newTitle, String newContent)Deprecated.Modifies the page with the given detailsbooleaneditUser(User user)Deprecated.Attempts to edit the details of the specified uservoidenableAnonymousAccess()Deprecated.Old XML-RPC method.voidenableCaptcha(boolean enable)Deprecated.voidenableCaptchaDebugMode(boolean enable)Deprecated.booleanenableDailyReportNotification(User user, boolean dailyReportEnabled)Deprecated.voidenableElevatedSecurityCheck(boolean enabled)Deprecated.voidenableNewUserEmailNotifications()Deprecated.voidenablePublicSignUp(boolean enabled)Deprecated.voidenableWebSudo(boolean enabled)Deprecated.Objectexecute(String method, Object... args)Deprecated.Since 5.6.ObjectexecuteAuthPluginXmlRpc(String servicePath, String method, Object... args)Deprecated.Since 5.6.<T> TexecuteAuthPluginXmlRpcOnCurrentNode(String servicePath, String method, Object... args)Deprecated.ObjectexecuteFuncTest(String method, Object... args)Deprecated.Since 5.6.<T> TexecuteFuncTestOnCurrentNode(String method, Object... args)Deprecated.Instead of using the execute methods directly, consider adding a wrapper method to ConfluenceRpc.protected ObjectexecuteFuncTestWithToken(String method, String token, Object... args)Deprecated.<T> TexecuteOnCurrentNode(String method, Object... args)Deprecated.ObjectexecutePluginXmlRpc(String servicePath, String method, Object... args)Deprecated.Execute a Confluence plugin rpc method as anonymous user.protected ObjectexecuteRpc(String rpcBase, String methodToken, String method, Object... args)Deprecated.ObjectexecuteWithToken(String method, @Nullable String token, Object... args)Deprecated.Execute method with the specified token.StringexportSite(boolean exportAttachments)Deprecated.Returns the URL of the downloadable export.StringexportSpace(Space space, String exportType)Deprecated.Returns the URL of the downloadable export.voidflushAllCaches()Deprecated.voidflushEdgeIndexQueue()Deprecated.booleanflushIndexQueue()Deprecated.Triggers an index queue flush and blocks until flush is complete.booleanflushIndexQueue(long time, TimeUnit unit)Deprecated.voidflushIndexQueueAndVerify(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.voidflushIndexQueueAndVerify(Iterable<? extends ContentEntity> contentEntities)Deprecated.voidflushMailQueue()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 flushingvoidfollow(User user)Deprecated.Follows the given user with the logged in user.voidfollowUsers(User follower, Iterable<User> followees)Deprecated.List<Map>getAliveThreads()Deprecated.List<Page>getAncestors(Page homePage)Deprecated.StringgetAnonymoizedCurrentClusterNodeIdentifier()Deprecated.ObjectgetApplicationConfigProperty(String propertyKey)Deprecated.AttachmentgetAttachment(long contentId, String fileName)Deprecated.byte[]getAttachmentData(long contentId, String fileName, String version)Deprecated.byte[]getAttachmentData(Attachment attachment, String version)Deprecated.longgetAttachmentId(long contentId, String fileName)Deprecated.List<Attachment>getAttachments(Page homePage)Deprecated.ObjectgetBandanaValue(String context, String key)Deprecated.StringgetBaseUrl()Deprecated.BlogPostgetBlogPost(long pageId)Deprecated.Returns the blog post with the specified page ID.CacheStatisticsgetCacheStatistics(CacheKey key)Deprecated.List<Page>getChildren(long parentPageId)Deprecated.Map<String,Object>getClusterInformation()Deprecated.CommentgetComment(AbstractPageEntity pageEntity, long commentId)Deprecated.List<Comment>getComments(Page page)Deprecated.StringgetConfiguredBaseUrl()Deprecated.Returns the configured base url on the server.StringgetConfiguredThemeForSpace(String spaceKey)Deprecated.longgetContentPermissionId(long pageId, String permissionType, String username)Deprecated.longgetContentPermissionId(ContentPermission contentPermission, long pageId)Deprecated.List<Map<String,String>>getContentPermissions(long contentId, ContentPermissionType permissionType)Deprecated.Map<String,Object>getContentPermissionSet(long contentId, ContentPermissionType permissionType)Deprecated.StringgetContentPropertiesString(long contentId, String key)Deprecated.UsesContentProperties.StringgetContentPropertiesStringForSpace(String spaceKey, String key)Deprecated.UsesContentPropertiesassociated with theSpaceDescription.StringgetContentProperty(long contentId, String key)Deprecated.UsesContentPropertyManager.List<String>getContentPropertyKeys(long contentId)Deprecated.UsesContentPropertyManager.StringgetContentTextProperty(long contentId, String key)Deprecated.UsesContentPropertyManager.Vector<Hashtable>getCusterNodeStatuses()Deprecated.DarkFeaturesHelpergetDarkFeaturesHelper()Deprecated.StringgetDatabaseStatistics()Deprecated.List<Page>getDescendents(Page homePage)Deprecated.PagegetExistingPage(long pageId)Deprecated.Retrieve thePageobject for a page, known to exist in confluence.PagegetExistingPage(Space space, String pageTitle)Deprecated.Retrieve the fully populatedPageobject for a page, known to exist in confluence.StringgetExportBuildNumber()Deprecated.StringgetFriendlyRelativeDate(Date now, Date date, TimeZone timeZone)Deprecated.Use theFriendlyDateFormatterto format the date relative to the "now" time.StringgetGlobalConfiguredTheme()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.StringgetLocalisedText(String messageKey)Deprecated.Returns the localised message text for the given key, retrieved from the application via RPC.StringgetLoggedInUser()Deprecated.intgetMailQueueSize()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 keyintgetNumberOfActiveUsers()Deprecated.intgetNumberOfIndexTasksInQueue()Deprecated.StringgetOldestSpaceImportAllowed()Deprecated.StringgetPageContent(long pageId)Deprecated.List<Map<String,String>>getPageHistory(Page homePage)Deprecated.longgetPageId(Page page)Deprecated.longgetPageId(String spaceKey, String title)Deprecated.List<Long>getPageIdsInSpace(Space space)Deprecated.Collection<ContentPermissionEntry>getPagePermissions(long pageId)Deprecated.List<Page>getPagesInSpace(Space space)Deprecated.PagegetPageWithDetails(long pageId)Deprecated.A heavier version ofgetExistingPage(long), that makes several calls to the server to flesh out the space and the last modifier.longgetParentId(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.longgetPersonalInformationId(String username)Deprecated.StringgetPluginExportCompatibility(String pluginKey)Deprecated.PluginHelpergetPluginHelper()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.SpacegetSpace(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.StringgetStackDump(String threadNameRegex)Deprecated.StringgetSystemProperty(String name)Deprecated.Retrieve the value of the specified System property on the Confluence server.List<Page>getTopLevelPages(String spaceKey)Deprecated.UserWithKeygetUser(User user)Deprecated.UserWithKeygetUser(String username)Deprecated.Retrieves a user with the given usernameUserWithKeygetUser(String username, String password)Deprecated.List<Group>getUserGroups(String username)Deprecated.Retrieves the groups that a user matching the specified username belongs toUserInformationgetUserInformation(User user)Deprecated.UserInformationgetUserInformation(String username)Deprecated.LocalegetUserLocale(User user)Deprecated.List<String>getUsernames(boolean viewAll)Deprecated.Retrieves the usernames of the current system usersvoidgrantAllPermissions(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.voidgrantAllPermissionsExceptAdmin(Entity entity, Space space)Deprecated.voidgrantAnonymousPermission(SpacePermission permission, Space space)Deprecated.Old XML-RPC method.voidgrantAnonymousUsePermission()Deprecated.Old XML-RPC method.booleangrantAnonymousViewUserProfilePermission()Deprecated.Old XML-RPC method.voidgrantContentPermission(ContentPermission contentPermission, ContentEntity contentEntity)Deprecated.voidgrantContentPermission(ContentEntity contentEntity, Entity entity, ContentPermissionType permissionType)Deprecated.voidgrantContentPermissions(ContentEntity contentEntity, List<? extends Entity> entities, ContentPermissionType permissionType)Deprecated.voidgrantPermission(GlobalPermission permission, Entity entity)Deprecated.Old XML-RPC method.voidgrantPermission(SpacePermission permission, Space space, Entity entity)Deprecated.Old XML-RPC method.voidgrantPermission(SpacePermission permission, String spaceKey, Entity entity)Deprecated.Old XML-RPC method.voidgrantPermissions(Space space, Entity entity, SpacePermission... permissions)Deprecated.Old XML-RPC method.booleanhasGroup(String groupname)Deprecated.Checks whether or not a group matching the specified name existsbooleanhasUser(String username)Deprecated.Checks whether a user with the specified username existsvoidimportSpace(byte[] zippedXmlBackup)Deprecated.voidimportSpace(File zippedXmlBackup)Deprecated.voidincreaseHighValue()Deprecated.booleanisActiveUser(String username)Deprecated.Checks whether the user is activebooleanisClusteredInstance()Deprecated.booleanisDarkFeatureEnabled(String key)Deprecated.booleanisImportTaskRunning()Deprecated.booleanisPluginUpgradeTasksComplete()Deprecated.booleanisSpringComponentPresent(String componentName)Deprecated.booleanisUnlimitedUserLicense()Deprecated.voidlogIn(User user)Deprecated.Set the current user logged into this rpc client.booleanlogMessage(RpcLogDestination destination, String message)Deprecated.Logs a message on the server at a specified log level or to sout or syserr.voidlogOut()Deprecated.voidmoveBlogPost(BlogPost blogPost, Space targetSpace)Deprecated.voidmovePage(long sourcePageId, long targetPageId, String position)Deprecated.voidmovePage(Page page, Page target, String position)Deprecated.Move a page "to" another page.voidmovePageToTopLevel(Page page, Space targetSpace)Deprecated.Moves a page to the top of the target spacestatic ConfluenceRpcnewInstance(BaseUrlSelector baseUrlSelector)Deprecated.Create a new RPC stub pointed at the default version of the server-side API.static ConfluenceRpcnewInstance(BaseUrlSelector baseUrlSelector, ConfluenceRpc.Version version)Deprecated.Create a new RPC stub pointed at a specific version of the server-side API.static ConfluenceRpcnewInstance(BaseUrlSelector baseUrlSelector, com.sun.jersey.api.client.Client restClient)Deprecated.static ConfluenceRpcnewInstance(com.atlassian.confluence.test.BaseUrlSelector baseUrlSelector)Deprecated.Create a new RPC stub pointed at the default version of the server-side API.static ConfluenceRpcnewInstance(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 ConfluenceRpcnewInstance(com.atlassian.confluence.test.BaseUrlSelector baseUrlSelector, com.sun.jersey.api.client.Client restClient)Deprecated.static ConfluenceRpcnewInstance(String baseUrl)Deprecated.Create a new RPC stub pointed at the default version of the server-side API.static ConfluenceRpcnewInstance(String baseUrl, ConfluenceRpc.Version version)Deprecated.Create a new RPC stub pointed at a specific version of the server-side API.static ConfluenceRpcnewInstance(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 ConfluenceRpcnewInstanceForSetup(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.voidpauseAllJobs()Deprecated.voidpauseJob(ScheduledJobKey job)Deprecated.voidpauseJobGroup(String jobGroupName)Deprecated.StringperformBackup(boolean exportAttachments)Deprecated.voidpurgeFromTrash(Space space, long pageId)Deprecated.Since 5.6.booleanreactivateUser(String username)Deprecated.Reactivates the user matching the specified usernamebooleanrecoverMainIndex()Deprecated.voidrefreshIndex()Deprecated.voidregisterEventListener(String eventClassName)Deprecated.voidremoveAllJohnsonEvents()Deprecated.voidremoveAllSpaces()Deprecated.voidremoveAttachment(long pageId, String fileName)Deprecated.voidremoveAttachmentUncleanly(long pageId, String fileName)Deprecated.voidremoveBandanaKey(String context, String key)Deprecated.voidremoveComment(long commentId)Deprecated.Remove a comment, identified by its id.voidremoveComment(Comment comment)Deprecated.voidremoveDrafts(User user)Deprecated.booleanremoveGroup(Group group)Deprecated.Removes the group if it exists, otherwise does nothingbooleanremoveGroup(String groupname, String defaultGroupName)Deprecated.Removes the group if it exists, otherwise does nothingbooleanremoveLabel(long labelId, long contentId)Deprecated.Removes a label from the specified contentbooleanremoveLabel(String label, Page page)Deprecated.Removes a label from the specified pagebooleanremoveLabelByObject(Object remoteLabel, Page page)Deprecated.Removes a label from the specified pagebooleanremoveLabelFromSpace(String label, Space space)Deprecated.Removes a label from the specified spacevoidremoveMailServer(String serverName)Deprecated.booleanremovePage(long pageId)Deprecated.booleanremovePage(Page page)Deprecated.booleanremovePageVersion(long historicalPageId)Deprecated.booleanremovePageVersion(long pageId, int version)Deprecated.voidremovePersonalInformation(User user)Deprecated.PersonalInformation gets created automatically by the rpc create user method.booleanremoveSpace(String spaceKey)Deprecated.Removes the space if it exists, otherwise does nothing.voidremoveTestData(Set<User> usersToKeep, Set<Group> groupsToKeep, Map<Group,HashSet<User>> userGroupMembershipsToKeep)Deprecated.Perform all test-data reset tasks.voidremoveTestDataAfterExternalUserManagement()Deprecated.Called on an instance that manages User/Group data externally, this will: 1.voidremoveUser(User user)Deprecated.booleanremoveUser(String username)Deprecated.Removes the user if it exists, otherwise does nothing.booleanremoveUserDirectory(long directoryId)Deprecated.booleanremoveUserFromGroup(User user, Group group)Deprecated.booleanremoveUserFromGroup(String username, String groupname)Deprecated.voidremoveUserMacro(String name)Deprecated.booleanrenameUser(String oldUsername, String newUsername)Deprecated.voidresetDatabaseStatistics()Deprecated.booleanresetWelcomeMessage()Deprecated.voidrestoreAbstractPage(long id)Deprecated.voidresumeJob(ScheduledJobKey job)Deprecated.booleanrevokeAllPermissions(Group group)Deprecated.Old XML-RPC method.voidrevokeAnonymousPermission(SpacePermission permission, Space space)Deprecated.Old XML-RPC method.voidrevokeAnonymousUsePermission()Deprecated.Old XML-RPC method.voidrevokeAnonymousViewUserProfilePermission()Deprecated.Old XML-RPC method.voidrevokeContentPermission(ContentPermission contentPermission, ContentEntity contentEntity)Deprecated.voidrevokePermission(GlobalPermission permission, Entity entity)Deprecated.Old XML-RPC method.voidrevokePermission(SpacePermission permission, Space space, Entity entity)Deprecated.Old XML-RPC method.voidrevokePermissions(Space space, Entity entity, SpacePermission... permissions)Deprecated.Old XML-RPC method.voidrunGarbageCollection()Deprecated.voidrunJob(ScheduledJobKey job)Deprecated.Triggers a job on the server.longsaveBlogPost(BlogPost blogPost)Deprecated.longsaveComment(Comment comment)Deprecated.voidsaveDateFormat(String pattern)Deprecated.longsavePage(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.voidsetApplicationConfigProperty(String propertyKey, String propertyValue)Deprecated.voidsetBandanaKey(String context, String key, boolean value)Deprecated.voidsetBandanaKey(String context, String key, int value)Deprecated.voidsetBandanaKey(String context, String key, String value)Deprecated.voidsetBandanaKey(String context, String key, List<String> value)Deprecated.voidsetBandanaKey(String context, String key, Set<String> value)Deprecated.voidsetBandanaObject(String context, String key, Object value, Class clazz)Deprecated.voidsetBlogRestriction(ContentPermission contentPermission, BlogPost blogPost)Deprecated.Restricts blog post to single given user or group, wiping out any other existing restrictions.voidsetContentPropertiesString(long contentId, String key, String value)Deprecated.UsesContentProperties.voidsetContentPropertiesStringForSpace(String spaceKey, String key, String value)Deprecated.UsesContentPropertiesassociated with theSpaceDescription.voidsetContentRestriction(ContentPermission contentPermission, AbstractPageEntity abstractPage)Deprecated.Restricts page or blog post to single given user or group, wiping out any other existing restrictions.voidsetContentTextProperty(long contentId, String key, String value)Deprecated.UsesContentPropertyManager.voidsetDirectoryPasswordEncoder(String directoryName, String encoder)Deprecated.voidsetDraftRestriction(ContentPermission contentPermission, Draft draft)Deprecated.Restricts blog post to single given user or group, wiping out any other existing restrictions.voidsetDraftSaveInterval(int seconds)Deprecated.voidsetEnableAnonymousAccess(boolean enable)Deprecated.Old XML-RPC method.voidsetEnableAnonymousRpc(boolean enable)Deprecated.voidsetGlobalLanguage(String locale)Deprecated.voidsetGlobalTheme(BundledTheme theme)Deprecated.voidsetHibernateConnectionProviderLastExceptionTime(Instant time)Deprecated.voidsetKeyboardShortcutPref(User user, boolean enabled)Deprecated.LoggingAndProfiling.LogLevelsetLogLevel(String logger, LoggingAndProfiling.LogLevel level)Deprecated.Sets the log level of the specified logger, returning the old value.org.apache.log4j.LevelsetLogLevel(String logger, org.apache.log4j.Level level)Deprecated.since 7.5 usesetLogLevel(String, LogLevel)voidsetPageRestriction(ContentPermission contentPermission, Page page)Deprecated.Restricts page to a single given user or group, wiping out any other existing restrictions.voidsetPageRestriction(Page page, Entity entity, ContentPermissionType contentPermissionType)Deprecated.Restrict page to single given user or group.voidsetSmtpServer(String serverName, String from, String subjectPrefix, String hostname, int port)Deprecated.voidsetSmtpServer(String serverName, String from, String subjectPrefix, String hostname, int port, String fromName)Deprecated.voidsetSystemProperty(String name, String value)Deprecated.Set the specified System property on the Confluence server.voidsetThemeForSpace(Space space, BundledTheme theme)Deprecated.booleansetUserDetailProperty(User user, String key, String value)Deprecated.Update a UserDetail property via theUserDetailsManager.booleansetUserInformation(UserInformation userInfo)Deprecated.Updates a user's informationvoidsetUserLocale(User user, Locale language)Deprecated.booleansetUserPreference(User user, String key, boolean value)Deprecated.booleansetUserPreference(User user, String key, String value)Deprecated.longsetUserStatus(String wikiStatus)Deprecated.Sets the current user's status.voidsetWatchOwnContent(User user, boolean enabled)Deprecated.voidsetWebSudoTimeout(int timeout)Deprecated.booleansetWelcomeMessage(String welcomeMessage)Deprecated.voidstopFollowing(User user)Deprecated.Stop following the given user.voidsynchroniseUserDirectories()Deprecated.Synchronises all the directories which support synchronisation (LDAP, remote Crowd, etc.)com.atlassian.fugue.Option<Object>tryGetApplicationConfigProperty(String propertyKey)Deprecated.voidunarchiveSpace(Space space)Deprecated.voidunregisterEventListener(String eventClassName)Deprecated.longupdateDraft(Draft draft)Deprecated.booleanupdateGlobalSetting(String name, boolean value)Deprecated.StringupdateGlobalSetting(String name, String value)Deprecated.longupdatePage(Page page, boolean minorEdit, String versionComment)Deprecated.Saves pages, but not blogs, seesaveBlogPost(BlogPost).voiduseAnonymously()Deprecated.Indicate that further rpc calls should be made anonymously, rather than as a specific user.voidwaitForEvent(String eventClassName, String timeoutInSeconds)Deprecated.voidwaitForEventQueue()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 theFriendlyDateFormatterto 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:
closein 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 populatedPageobject for a page, known to exist in confluence.
-
getExistingPage
public Page getExistingPage(long pageId)
Deprecated.Retrieve thePageobject 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 aSpaceand 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.UsesContentPropertiesassociated 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.UsesContentPropertiesassociated 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.
-
refreshIndex
public void refreshIndex()
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.XmlRpcExceptionIOException
-
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 IOExceptionDeprecated.- 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.
-
-