content
Deprecated.
AutoCloseable
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.
static enum
final AdminRpc
final AttachmentRpc
final ContentRpc
final DarkFeaturesHelper
final LabelsRpc
final LikesRpc
final MailRpc
final NotificationsRpc
final SpaceRpc
final UserPreferencesRpc
boolean
addExistingProfilePicture(String username,
String filename)
void
addJobs(ScheduledJobKey job,
com.atlassian.scheduler.status.RunOutcome runOutcome,
Integer days,
Integer total)
boolean
addLabel(long labelId,
long contentId)
boolean
addLabel(String label,
AbstractContentEntity target)
boolean
addLabelByObject(Object remoteLabel,
Page page)
boolean
addLabelToSpace(String label,
Space space)
boolean
addProfilePicture(String username,
String filename,
String mimeType,
byte[] pictureData)
void
addSmtpServer(String serverName,
String from,
String subjectPrefix,
String hostname,
int port)
void
addSmtpServer(String serverName,
String from,
String subjectPrefix,
String hostname,
int port,
String fromName)
boolean
addUserToGroup(User user,
Group group)
boolean
addUserToGroup(String username,
String groupname)
void
archiveSpace(Space space)
void
void
assertThatMostRecentIndexEntriesHaveBeenProcessed(Iterable<? extends ContentEntity> entities)
void
changeAttachmentCreatedDate(Attachment attachment,
Date createdDate)
void
changeBlogPostModificationDate(long blogId,
Date modificationDate)
void
changeCommentCreatedDate(Comment comment,
Date newCreationDate)
boolean
changeMyPassword(String oldPassword,
String newPassword)
void
changePageCreatedDate(long id,
Date newDate)
void
changePageModificationDate(long pageId,
Date modificationDate)
boolean
changeUserPassword(String username,
String newPassword)
void
void
void
boolean
void
void
clearQueue(String queueName)
void
clearSystemProperty(String name)
void
close()
convertWikiMarkupToXhtml(String wikiMarkup,
long pageId)
convertXhtmlToWikiMarkup(String xhtml,
long pageId)
int
countDrafts(User user)
long
countJobRunDetails(ScheduledJobKey jobKey,
com.atlassian.scheduler.status.RunOutcome runOutcome)
long
createAttachment(long contentId,
Attachment attachment)
long
createAttachment(Attachment attachment)
long
createAttachment(ContentEntity page,
Attachment attachment)
long
createAttachmentOnDraft(Attachment attachment)
long
createBlogPost(BlogPost blogPost)
long
createComment(Comment comment)
long
createComment(Comment comment,
long parentCommentId)
createContent(Content newContent)
long
createDraft(Draft draft)
void
createGroup(Group group)
void
createGroup(String groupname)
void
createJohnsonEvent(String message)
long
createPage(Page page)
createPage(String spaceKey,
String title,
String content,
long parentPageId)
createPageHierarchy(Space space,
int depth,
String pageTitlePrefix)
createPagesFromPrototype(Page pageTemplate,
int count)
createPersonalSpace(User user)
createSpace(Space space)
createSpace(String key,
String name,
String description)
createSpaces(int i)
long
createTemplate(String templateName,
String content,
Space space)
long
createTemplateWithStorageFormat(String templateName,
String storageFormat,
Space space)
int
createTestUsers(int count)
boolean
createUser(User user)
boolean
createUser(User user,
boolean notifyUser)
void
createUserMacro(String name,
boolean hasBody,
String bodyType,
String outputType,
String template)
void
createUserMacro(String name,
boolean hasBody,
String bodyType,
String outputType,
String template,
String title,
String description,
String category,
String iconUrl,
String documentationUrl,
boolean hidden)
long
createWikiMarkupPage(Page page)
boolean
deactivateUser(String username)
void
boolean
doesDraftExist(String contentId,
String draftCreator,
String draftType,
String spaceKey)
void
editAttachment(Attachment updatedAttachment)
void
boolean
void
void
enableCaptcha(boolean enable)
void
enableCaptchaDebugMode(boolean enable)
boolean
enableDailyReportNotification(User user,
boolean dailyReportEnabled)
void
enableElevatedSecurityCheck(boolean enabled)
void
void
enablePublicSignUp(boolean enabled)
void
enableWebSudo(boolean enabled)
executeAuthPluginXmlRpc(String servicePath,
String method,
Object... args)
<T> T
executeAuthPluginXmlRpcOnCurrentNode(String servicePath,
String method,
Object... args)
executeFuncTest(String method,
Object... args)
<T> T
executeFuncTestOnCurrentNode(String method,
Object... args)
protected Object
executeFuncTestWithToken(String method,
String token,
Object... args)
<T> T
executeOnCurrentNode(String method,
Object... args)
executePluginXmlRpc(String servicePath,
String method,
Object... args)
protected Object
executeRpc(String rpcBase,
String methodToken,
String method,
Object... args)
executeWithToken(String method,
@Nullable String token,
Object... args)
exportSite(boolean exportAttachments)
exportSpace(Space space,
String exportType)
void
void
boolean
boolean
flushIndexQueue(long time,
TimeUnit unit)
void
flushIndexQueueAndVerify(ContentEntity... contentEntities)
void
flushIndexQueueAndVerify(Iterable<? extends ContentEntity> contentEntities)
void
void
void
followUsers(User follower,
Iterable<User> followees)
getAncestors(Page homePage)
getApplicationConfigProperty(String propertyKey)
getAttachment(long contentId,
String fileName)
byte[]
getAttachmentData(long contentId,
String fileName,
String version)
byte[]
getAttachmentData(Attachment attachment,
String version)
long
getAttachmentId(long contentId,
String fileName)
getAttachments(Page homePage)
getBandanaValue(String context,
String key)
getBlogPost(long pageId)
getChildren(long parentPageId)
getComment(AbstractPageEntity pageEntity,
long commentId)
getComments(Page page)
getConfiguredThemeForSpace(String spaceKey)
long
getContentPermissionId(long pageId,
String permissionType,
String username)
long
getContentPermissionId(ContentPermission contentPermission,
long pageId)
getContentPermissions(long contentId,
ContentPermissionType permissionType)
getContentPermissionSet(long contentId,
ContentPermissionType permissionType)
getContentPropertiesString(long contentId,
String key)
ContentProperties
.getContentPropertiesStringForSpace(String spaceKey,
String key)
ContentProperties
associated with the SpaceDescription
.getContentProperty(long contentId,
String key)
ContentPropertyManager
.getContentPropertyKeys(long contentId)
ContentPropertyManager
.getContentTextProperty(long contentId,
String key)
ContentPropertyManager
.getDescendents(Page homePage)
getExistingPage(long pageId)
Page
object for a page, known to
exist in confluence.getExistingPage(Space space,
String pageTitle)
Page
object for a page, known to
exist in confluence.getFriendlyRelativeDate(Date now,
Date date,
TimeZone timeZone)
FriendlyDateFormatter
to format the date relative to the "now" time.getGlobalPermissions(Group group)
getLabelContent(long labelId)
getLabelContent(String labelName)
getLabelContentByObject(Object remoteLabel)
getLabels(long pageId)
getLocalisedText(String messageKey)
int
getMostPopularLabels(int maxCount)
getMostPopularLabelsInSpace(String spaceKey,
int maxCount)
int
int
getPageContent(long pageId)
getPageHistory(Page homePage)
long
long
getPageIdsInSpace(Space space)
getPagePermissions(long pageId)
getPagesInSpace(Space space)
getPageWithDetails(long pageId)
getExistingPage(long)
, that makes several calls to the server to flesh out
the space and the last modifier.long
getParentId(long pageId)
getPermissionsForUser(Space space,
User user)
getPermissionsForUser(String spaceKey,
String username)
long
getPersonalInformationId(String username)
getPluginExportCompatibility(String pluginKey)
getRecentlyUsedLabels(int maxCount)
getRecentlyUsedLabelsInSpace(String spaceKey,
int maxCount)
getRelatedLabels(String labelName,
int maxCount)
getRelatedLabelsInSpace(String labelName,
String spaceKey,
int maxCount)
getSpacesContainingContentWithLabel(String labelName)
getSpacesWithLabel(String labelName)
getStackDump(String threadNameRegex)
getSystemProperty(String name)
getTopLevelPages(String spaceKey)
getUserGroups(String username)
getUserInformation(User user)
getUserInformation(String username)
getUserLocale(User user)
getUsernames(boolean viewAll)
void
grantAllPermissions(Entity entity,
Space space)
rpc.admin.permissions.
PermissionsRpc.addSpaceUserPermissions(java.lang.String, java.lang.String, com.atlassian.confluence.it.SpacePermission...)
or PermissionsRpc.addSpaceGroupPermissions(java.lang.String, java.lang.String, com.atlassian.confluence.it.SpacePermission...)
or PermissionsRpc.addSpaceAnonymousPermissions(java.lang.String, com.atlassian.confluence.it.SpacePermission...)
instead.void
grantAllPermissionsExceptAdmin(Entity entity,
Space space)
void
grantAnonymousPermission(SpacePermission permission,
Space space)
void
boolean
void
grantContentPermission(ContentPermission contentPermission,
ContentEntity contentEntity)
void
grantContentPermission(ContentEntity contentEntity,
Entity entity,
ContentPermissionType permissionType)
void
grantContentPermissions(ContentEntity contentEntity,
List<? extends Entity> entities,
ContentPermissionType permissionType)
void
grantPermission(GlobalPermission permission,
Entity entity)
void
grantPermission(SpacePermission permission,
Space space,
Entity entity)
void
grantPermission(SpacePermission permission,
String spaceKey,
Entity entity)
void
grantPermissions(Space space,
Entity entity,
SpacePermission... permissions)
boolean
boolean
void
importSpace(byte[] zippedXmlBackup)
void
importSpace(File zippedXmlBackup)
void
boolean
isActiveUser(String username)
boolean
boolean
boolean
boolean
boolean
isSpringComponentPresent(String componentName)
boolean
void
boolean
logMessage(RpcLogDestination destination,
String message)
void
logOut()
void
moveBlogPost(BlogPost blogPost,
Space targetSpace)
void
void
void
movePageToTopLevel(Page page,
Space targetSpace)
static ConfluenceRpc
newInstance(BaseUrlSelector baseUrlSelector)
static ConfluenceRpc
newInstance(BaseUrlSelector baseUrlSelector,
ConfluenceRpc.Version version)
static ConfluenceRpc
newInstance(BaseUrlSelector baseUrlSelector,
com.sun.jersey.api.client.Client restClient)
static ConfluenceRpc
newInstance(com.atlassian.confluence.test.BaseUrlSelector baseUrlSelector)
static ConfluenceRpc
newInstance(com.atlassian.confluence.test.BaseUrlSelector baseUrlSelector,
ConfluenceRpc.Version version)
static ConfluenceRpc
newInstance(com.atlassian.confluence.test.BaseUrlSelector baseUrlSelector,
com.sun.jersey.api.client.Client restClient)
static ConfluenceRpc
newInstance(String baseUrl)
static ConfluenceRpc
newInstance(String baseUrl,
ConfluenceRpc.Version version)
static ConfluenceRpc
newInstance(String baseUrl,
com.sun.jersey.api.client.Client restClient)
static ConfluenceRpc
newInstanceForSetup(String baseUrl,
ConfluenceRpc.Version version)
void
void
void
pauseJob(ScheduledJobKey job)
void
pauseJobGroup(String jobGroupName)
performBackup(boolean exportAttachments)
void
purgeFromTrash(Space space,
long pageId)
boolean
reactivateUser(String username)
boolean
void
void
registerEventListener(String eventClassName)
void
void
void
removeAttachment(long pageId,
String fileName)
void
removeAttachmentUncleanly(long pageId,
String fileName)
void
removeBandanaKey(String context,
String key)
void
removeComment(long commentId)
void
removeComment(Comment comment)
void
removeDrafts(User user)
boolean
removeGroup(Group group)
boolean
removeGroup(String groupname,
String defaultGroupName)
boolean
removeLabel(long labelId,
long contentId)
boolean
removeLabel(String label,
Page page)
boolean
removeLabelByObject(Object remoteLabel,
Page page)
boolean
removeLabelFromSpace(String label,
Space space)
void
removeMailServer(String serverName)
boolean
removePage(long pageId)
boolean
removePage(Page page)
boolean
removePageVersion(long historicalPageId)
boolean
removePageVersion(long pageId,
int version)
void
boolean
removeSpace(String spaceKey)
void
removeTestData(Set<User> usersToKeep,
Set<Group> groupsToKeep,
Map<Group,HashSet<User>> userGroupMembershipsToKeep)
void
void
removeUser(User user)
boolean
removeUser(String username)
boolean
removeUserDirectory(long directoryId)
boolean
removeUserFromGroup(User user,
Group group)
boolean
removeUserFromGroup(String username,
String groupname)
void
removeUserMacro(String name)
boolean
renameUser(String oldUsername,
String newUsername)
void
boolean
void
restoreAbstractPage(long id)
void
resumeJob(ScheduledJobKey job)
boolean
revokeAllPermissions(Group group)
void
revokeAnonymousPermission(SpacePermission permission,
Space space)
void
void
void
revokeContentPermission(ContentPermission contentPermission,
ContentEntity contentEntity)
void
revokePermission(GlobalPermission permission,
Entity entity)
void
revokePermission(SpacePermission permission,
Space space,
Entity entity)
void
revokePermissions(Space space,
Entity entity,
SpacePermission... permissions)
void
runAndWaitForEvent(Runnable runnable,
Class<?> eventClassName,
int timeoutInSeconds)
void
void
runJob(ScheduledJobKey job)
long
saveBlogPost(BlogPost blogPost)
long
saveComment(Comment comment)
void
saveDateFormat(String pattern)
long
void
setApplicationConfigProperty(String propertyKey,
String propertyValue)
void
setBandanaKey(String context,
String key,
boolean value)
void
setBandanaKey(String context,
String key,
int value)
void
setBandanaKey(String context,
String key,
String value)
void
setBandanaKey(String context,
String key,
List<String> value)
void
setBandanaKey(String context,
String key,
Set<String> value)
void
setBandanaObject(String context,
String key,
Object value,
Class clazz)
void
setBlogRestriction(ContentPermission contentPermission,
BlogPost blogPost)
void
setContentPropertiesString(long contentId,
String key,
String value)
ContentProperties
.void
setContentPropertiesStringForSpace(String spaceKey,
String key,
String value)
ContentProperties
associated with the SpaceDescription
.void
setContentRestriction(ContentPermission contentPermission,
AbstractPageEntity abstractPage)
void
setContentTextProperty(long contentId,
String key,
String value)
ContentPropertyManager
.void
setDirectoryPasswordEncoder(String directoryName,
String encoder)
void
setDraftRestriction(ContentPermission contentPermission,
Draft draft)
void
setDraftSaveInterval(int seconds)
void
setEnableAnonymousAccess(boolean enable)
void
setEnableAnonymousRpc(boolean enable)
void
setGlobalLanguage(String locale)
void
setGlobalTheme(BundledTheme theme)
void
void
setKeyboardShortcutPref(User user,
boolean enabled)
setLogLevel(String logger,
LoggingAndProfiling.LogLevel level)
org.apache.log4j.Level
setLogLevel(String logger,
org.apache.log4j.Level level)
setLogLevel(String, LogLevel)
void
setPageRestriction(ContentPermission contentPermission,
Page page)
void
setPageRestriction(Page page,
Entity entity,
ContentPermissionType contentPermissionType)
void
setSmtpServer(String serverName,
String from,
String subjectPrefix,
String hostname,
int port)
void
setSmtpServer(String serverName,
String from,
String subjectPrefix,
String hostname,
int port,
String fromName)
void
setSystemProperty(String name,
String value)
void
setThemeForSpace(Space space,
BundledTheme theme)
boolean
setUserDetailProperty(User user,
String key,
String value)
UserDetailsManager
.boolean
setUserInformation(UserInformation userInfo)
void
setUserLocale(User user,
Locale language)
boolean
setUserPreference(User user,
String key,
boolean value)
boolean
setUserPreference(User user,
String key,
String value)
long
setUserStatus(String wikiStatus)
void
setWatchOwnContent(User user,
boolean enabled)
void
setWebSudoTimeout(int timeout)
boolean
setWelcomeMessage(String welcomeMessage)
void
stopFollowing(User user)
void
com.atlassian.fugue.Option<Object>
tryGetApplicationConfigProperty(String propertyKey)
void
unarchiveSpace(Space space)
void
unregisterEventListener(String eventClassName)
long
updateDraft(Draft draft)
boolean
updateGlobalSetting(String name,
boolean value)
updateGlobalSetting(String name,
String value)
long
updatePage(Page page,
boolean minorEdit,
String versionComment)
saveBlogPost(BlogPost)
.void
void
waitForEvent(String eventClassName,
String timeoutInSeconds)
void
FriendlyDateFormatter
to format the date relative to the "now" time.
Note that the output format varies greatly even from second to second -- see FriendlyDateFormatter
.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 zonebaseUrl
- the base URL of the server to connect toversion
- the version of the API to usebaseUrlSelector
- the base URL of the server to connect toversion
- the version of the API to usebaseUrlSelector
- the base URL of the server to connect toversion
- the version of the API to use
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)
.
baseUrl
- the base URL of the server to connect toversion
- the version of the API to usebaseUrl
- the base URL of the server to connect tobaseUrlSelector
- the base URL of the server to connect tobaseUrlSelector
- the base URL of the server to connect tobaseUrl
- the base URL of the server to connect torestClient
- the jersey client to use when create WebResourcesclose
in interface AutoCloseable
executeOnCurrentNode(String, Object...)
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 IDsRpcRuntimeException
- wrapping the underlying remote exceptionexecute(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)method
- the method to executetoken
- the tokenargs
- arguments to pass to the XML RPC methodRpcRuntimeException
- If the server throws an exceptionservicePath
- 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 IDsRpcRuntimeException
- wrapping the underlying remote exceptionexecuteAuthPluginXmlRpcOnCurrentNode(String, String, Object...)
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 IDsRpcRuntimeException
- wrapping the underlying remote exceptionexecuteFuncTestOnCurrentNode(String, Object...)
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 IDsRpcRuntimeException
- wrapping the underlying remote exceptionmethod
- 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 IDsRpcRuntimeException
- wrapping the underlying remote exceptionmethod
- the method to executetoken
- the tokenRpcRuntimeException
RpcRuntimeException
logOut()
or useAnonymously()
are called.logIn(com.atlassian.confluence.it.User)
or logOut()
are called.createPage(Page)
.page
- an uncreated pagecreatePage(Page)
page
- an uncreated page with wiki markup contentspace
- 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)Page
object for a page, known to
exist in confluence.Page
object for a page, known to
exist in confluence.getExistingPage(long)
, that makes several calls to the server to flesh out
the space and the last modifier.saveBlogPost(BlogPost)
.setContentRestriction(com.atlassian.confluence.it.content.security.ContentPermission, com.atlassian.confluence.it.AbstractPageEntity)
should be used instead.setContentRestriction(com.atlassian.confluence.it.content.security.ContentPermission, com.atlassian.confluence.it.AbstractPageEntity)
should be used instead.setContentRestriction(com.atlassian.confluence.it.content.security.ContentPermission, com.atlassian.confluence.it.AbstractPageEntity)
should be used instead.createComment(Comment)
with a Comment that has a parentId set.commentId
- the id of the comment to removeusername
- the user name of the profilefilename
- file name of the picturemimeType
- image mime type (must be from image/*)pictureData
- the image datausername
- the user name of the profilefilename
- file name of the pictureposition
- see com.atlassian.confluence.content.service.page.MovePageCommandpage
- page to movetargetSpace
- the target spacelabelId
- id of the label to addcontentId
- id of a page or blogpost to add the label toremoteLabel
- the object retrieved from a direct call to an rpc method that returns a label, i.e. this parameter
should be the return value of execute(String, Object...)
and not any of wrapper methods that return a Label objectpage
- page to add the label tolabel
- the name of the label to removepage
- the page to remove the label fromlabelId
- id of the label to removecontentId
- id of the page or blog to remove the label fromremoteLabel
- the object retrieved from a direct call to an rpc method that returns a label, i.e. this parameter
should be the return value of execute(String, Object...)
and not any of wrapper methods that return a Label objectpage
- page to remove the label fromlabel
- the label to addspace
- the space to add the label tolabel
- the label to removespace
- the space to remove the label fromremoteLabel
- the object retrieved from a direct call to an rpc method that returns a label, i.e. this parameter
should be the return value of execute(String, Object...)
and not any of wrapper methods that return a Label objectlabelName
- 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 labelsmaxCount
- the maximum number of labels to return, or no limit if this is 0spaceKey
- key for the spacemaxCount
- the maximum number of labels to return, or no limit if this is 0maxCount
- the maximum number of labels to return, or the default if this is 0spaceKey
- key for the spacemaxCount
- the maximum number of labels to return, or the default if this is 0labelName
- name of the label to find related labels withmaxCount
- the maximum number of labels to return, or the default if this is 0labelName
- 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 0Space
and call createSpace(Space)
.UserDetailsManager
.viewAll
- If false, all usernames in the default users group will be returned. Otherwise, every registered username is returned.username
- The username of the user whose status to checkgroupname
- 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.rpc.admin.permissions.
PermissionsRpc.addSpaceUserPermissions(java.lang.String, java.lang.String, com.atlassian.confluence.it.SpacePermission...)
or PermissionsRpc.addSpaceGroupPermissions(java.lang.String, java.lang.String, com.atlassian.confluence.it.SpacePermission...)
or PermissionsRpc.addSpaceAnonymousPermissions(java.lang.String, com.atlassian.confluence.it.SpacePermission...)
instead.rpc.admin.permissions.
PermissionsRpc.addSpaceUserPermissions(java.lang.String, java.lang.String, com.atlassian.confluence.it.SpacePermission...)
or PermissionsRpc.addSpaceGroupPermissions(java.lang.String, java.lang.String, com.atlassian.confluence.it.SpacePermission...)
or PermissionsRpc.addSpaceAnonymousPermissions(java.lang.String, com.atlassian.confluence.it.SpacePermission...)
instead.rpc.admin.permissions.
PermissionsRpc.addSpaceUserPermissions(java.lang.String, java.lang.String, com.atlassian.confluence.it.SpacePermission...)
or PermissionsRpc.addSpaceGroupPermissions(java.lang.String, java.lang.String, com.atlassian.confluence.it.SpacePermission...)
or PermissionsRpc.addSpaceAnonymousPermissions(java.lang.String, com.atlassian.confluence.it.SpacePermission...)
instead.rpc.admin.permissions.
PermissionsRpc.addSpaceUserPermissions(java.lang.String, java.lang.String, com.atlassian.confluence.it.SpacePermission...)
or PermissionsRpc.addSpaceGroupPermissions(java.lang.String, java.lang.String, com.atlassian.confluence.it.SpacePermission...)
or PermissionsRpc.addSpaceAnonymousPermissions(java.lang.String, com.atlassian.confluence.it.SpacePermission...)
instead.rpc.admin.permissions.
PermissionsRpc.addSpaceAnonymousPermissions(java.lang.String, com.atlassian.confluence.it.SpacePermission...)
instead.rpc.admin.permissions.
PermissionsRpc.removeSpaceUserPermissions(java.lang.String, java.lang.String, com.atlassian.confluence.it.SpacePermission...)
or PermissionsRpc.removeSpaceAnonymousPermissions(java.lang.String, com.atlassian.confluence.it.SpacePermission...)
or PermissionsRpc.removeSpaceGroupPermissions(java.lang.String, java.lang.String, com.atlassian.confluence.it.SpacePermission...)
instead.rpc.admin.permissions.
PermissionsRpc.removeSpaceUserPermissions(java.lang.String, java.lang.String, com.atlassian.confluence.it.SpacePermission...)
or PermissionsRpc.removeSpaceAnonymousPermissions(java.lang.String, com.atlassian.confluence.it.SpacePermission...)
or PermissionsRpc.removeSpaceGroupPermissions(java.lang.String, java.lang.String, com.atlassian.confluence.it.SpacePermission...)
instead.rpc.admin.permissions.
PermissionsRpc.removeSpaceAnonymousPermissions(java.lang.String, com.atlassian.confluence.it.SpacePermission...)
instead.rpc.admin.permissions.
PermissionsRpc.addGlobalUserPermissions(java.lang.String, com.atlassian.confluence.it.GlobalPermission...)
or PermissionsRpc.addGlobalGroupPermissions(java.lang.String, com.atlassian.confluence.it.GlobalPermission...)
instead.rpc.admin.permissions.
PermissionsRpc.removeGlobalUserPermissions(java.lang.String, com.atlassian.confluence.it.GlobalPermission...)
or PermissionsRpc.removeGlobalGroupPermissions(java.lang.String, com.atlassian.confluence.it.GlobalPermission...)
instead.rpc.admin.permissions.
PermissionsRpc.removeAllGlobalGroupPermissions(java.lang.String)
,
and PermissionsRpc.removeAllSpaceGroupPermissions(java.lang.String, java.lang.String)
for the appropriate spaces.rpc.admin.permissions.
PermissionsRpc.enableAnonymousUseConfluence()
instead.rpc.admin.permissions.
PermissionsRpc.disableAnonymousUseConfluence()
instead.rpc.admin.permissions.
PermissionsRpc.addGlobalAnonymousPermissions(com.atlassian.confluence.it.GlobalPermission...)
instead.rpc.admin.permissions.
PermissionsRpc.removeGlobalAnonymousPermissions(com.atlassian.confluence.it.GlobalPermission...)
instead.ContentPropertyManager
.ContentProperties
.ContentProperties
associated with the SpaceDescription
.ContentPropertyManager
.ContentPropertyManager
.ContentPropertyManager
.ContentProperties
.ContentProperties
associated with the SpaceDescription
.job
- days
-
If the key is not found, the key itself will be returned, as per
AbstractI18nActionSupport.getText(String)
.
messageKey
- the message key to internationalise.org.apache.xmlrpc.XmlRpcException
IOException
queryString
- the querymaxMatches
- the maximum number of matches to be returnedIOException
IOException
name
- the property to retrievename
- the property to setvalue
- the value to setname
- the property to setuser
- whose personalInformation will be removedlogger
- 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
setLogLevel(String, LogLevel)
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
rpc.admin.permissions.
PermissionsRpc.enableAnonymousUseConfluence()
or PermissionsRpc.disableAnonymousUseConfluence()
instead.user
- the user to follow.user
- the user to follow.wikiStatus
- the new status of the user as wiki markup.ContentRpc.purge(ContentId)
directly.i
- the number of spaces to createrpc.admin.permissions.
PermissionsRpc.enableAnonymousUseConfluence()
instead.rpc.admin.permissions.
PermissionsRpc.disableAnonymousUseConfluence()
instead.
The 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.