public class FuncTestRpcDelegator extends Object implements FuncTestRpcHandler
| Constructor and Description |
|---|
FuncTestRpcDelegator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addExistingProfilePicture(String token,
String userName,
String fileName)
Attempts to add a existing profile picture to a user's profile.
|
boolean |
addGroupAnyCase(String token,
String groupname)
Allows addition of a group without enforcing that the name be all lower case.
|
int |
addLabelToLabelable(String token,
String labelName,
String labelableId,
String labelableType)
Adds a label to a labelable, because the public RPC API doesn't let you do it.
|
boolean |
addMailServer(String token,
String serverName,
String protocol,
String hostname,
int port,
String username,
String password,
String toAddress)
Add a POP server to poll for emails in a particular account.
|
boolean |
addSmtpServer(String token,
String name,
String from,
String subjectPrefix,
String hostname,
int port)
Add an SMTP mail server.
|
boolean |
addSmtpServer(String token,
String name,
String from,
String subjectPrefix,
String hostname,
int port,
String fromName) |
boolean |
addUserAnyCase(String token,
String username,
String email,
String fullname,
String password)
Allows addition of a user without enforcing that the username be all lower case.
|
boolean |
assertThatIndexQueueEntryHasBeenProcessed(String token,
String searchableClassname,
String searchableId) |
boolean |
changeAttachmentCreatedDate(String token,
String contentId,
String attachmentFileName,
Date createdDate)
Change the created date of an attachment
|
boolean |
changeBlogPostModificationDate(String token,
String blogId,
Date modificationDate)
Change the modification date of a blog post
|
boolean |
changeCommentCreatedDate(String token,
String commentId,
Date createdDate)
Change the created date of a comment
|
String |
changeLoggerLevel(String token,
String loggerName,
String level)
Change the level of the specified logger.
|
boolean |
changePageCreatedDate(String token,
String pageId,
Date createdDate)
Change the created date of a page
|
boolean |
changePageModificationDate(String token,
String pageId,
Date modificationDate)
Change the modification date of a page
|
boolean |
changeSpaceCreatedDate(String token,
String spaceKey,
Date createdDate)
Change the created date of a space
|
boolean |
clearCustomHtml(String token)
Clears the global custom html.
|
boolean |
clearEventListeners(String token)
Removes all temporary event listeners, regardless of their state.
|
boolean |
clearIndex(String token)
Blows away the main Confluence search index.
|
boolean |
clearQueue(String token,
String queueName)
Removes all items from the specified queue
|
Boolean |
clearSystemProperty(String token,
String name)
Unset a system property.
|
String |
convertMarkupToXhtml(String token,
String wikiMarkup,
String pageId)
Render a page as XHTML.
|
String |
convertXhtmlToMarkup(String token,
String xhtml,
String pageId)
Convert XHTML to WikiMarkup.
|
int |
countDrafts(String token,
String owner) |
Hashtable |
createDraft(String token,
Hashtable draft)
Creates a draft for the draft owner and draft type with the specified title and content.
|
boolean |
createJohnsonEvent(String token,
String message)
Creates a Johnson event inside Confluence.
|
Vector<Hashtable> |
createPagesFromPrototype(String token,
Hashtable pageStruct,
int count)
Creates a series of pages based on a prototype.
|
Vector<String> |
createSpaces(String token,
int count)
Creates a bunch of spaces.
|
String |
createTemplate(String token,
String templateName,
String content,
String spaceKey)
Create a new template.
|
String |
createTemplateWithStorageFormat(String token,
String templateName,
String storageFormat,
String spaceKey)
Create a new template from storage format code.
|
int |
createTestUsers(String token,
int count)
Create test users with usernames "testuser0", "testuser1", etc.
|
boolean |
createUserMacro(String token,
String name,
boolean hasBody,
String bodyType,
String outputType,
String template,
String title,
String description,
String category,
String iconUrl,
String documentationUrl,
boolean hidden)
Create a User Macro
|
boolean |
disablePlugin(String token,
String pluginKey)
Disable a plugin.
|
boolean |
disablePluginModule(String token,
String pluginKey,
String moduleKey)
Disable plugin module
|
boolean |
disablePluginWithoutPersisting(String token,
String pluginKey)
Disable a plugin without persisting.
|
boolean |
disableSiteFeature(String token,
String featureKey)
Disables a given dark feature for the entire site.
|
boolean |
disableUserFeature(String token,
String featureKey)
Disables a given dark feature for the logged in user.
|
boolean |
disconnectGroup(String token,
String groupname)
Disconnect a group from Confluence.
|
boolean |
disconnectUser(String token,
String username)
Disconnect a user from Confluence.
|
boolean |
doesDraftExist(String token,
String contentId,
String owner,
String draftType,
String spaceKey)
Determines if a draft of the specified type and belonging to the specified owner exists.
|
boolean |
enableCaptcha(String token,
boolean enable)
Sets the captcha mode
|
boolean |
enableCaptchaDebugMode(String token,
boolean enable)
Sets the captcha mode into debug mode.
|
boolean |
enableDailyReportNotification(String token,
String userName,
boolean dailyReportEnabled)
Sets the Daily Report email for a user to enabled or disabled.
|
boolean |
enableElevatedSecurityCheck(String token,
boolean enabled) |
boolean |
enablePlugin(String token,
String pluginKey)
Enable a plugin.
|
boolean |
enablePluginModule(String token,
String pluginKey,
String moduleKey)
Enable plugin module
|
boolean |
enablePublicSignUp(String token,
boolean enabled)
Sets the public sign up enabled status
|
boolean |
enableSiteFeature(String token,
String featureKey)
Enables a given dark feature for the entire site.
|
boolean |
enableUserFeature(String token,
String featureKey)
Enables a given dark feature for the logged in user.
|
boolean |
enableWebSudo(String token,
boolean enabled)
Sets the web sudo enabled status
|
Vector<String> |
finishLoggingRequests(String token)
Finish logging http request and return any requests made.
|
boolean |
flushAllCaches(String token)
Flushes all the caches.
|
boolean |
followUser(String token,
String userName,
boolean followUser)
Follows or stops following a user.
|
Vector<Hashtable> |
getAliveThreads(String token) |
Hashtable<String,Object> |
getAllContentForAllLabels(String token,
int offset,
int maxResults,
String labelsString)
Returns current and trashed CEOs having all of the labels supplied in the string.
|
String |
getAnonyimizedClusterNodeIdentifier(String token) |
Object |
getApplicationConfigProperty(String token,
String propertyKey)
Returns a property of the global
ApplicationConfiguration instance. |
Object |
getBandanaValue(String token,
String space,
String key)
Gets a value from Bandana
|
Integer |
getCacheMaximumNumberOfElements(String token,
String cacheName)
Returns the configured maximum number of elements in the given cache
|
Hashtable |
getCacheStatistics(String token,
String cacheName)
Returns the cache statistics for a particular named cache.
|
Vector<String> |
getCacheStatisticsCapabilities(String token)
Returns the capabiltiies exposed by the cache statics service.
|
String |
getConfiguredThemeForSpace(String token,
String spaceKey)
Get the key of the configured theme for a space, whether or not that theme exists.
|
Hashtable<String,Object> |
getContentForAllLabels(String token,
int offset,
int maxResults,
String labels)
Returns CEOs having all of the labels supplied in the string.
|
Hashtable<String,Object> |
getContentInSpacesForAllLabels(String token,
int offset,
int maxResults,
String spaceKeysString,
String labelsString)
Returns CEOs in the given spaces having all of the labels supplied in the string.
|
String |
getContentPropertiesString(String token,
String entityId,
String key)
Get the string value of a
ContentProperty associated with
a content entity given its id and the property name |
String |
getContentPropertiesStringForSpace(String token,
String spaceKey,
String key)
Get the string value of a
ContentProperty associated with
the SpaceDescription of the space |
String |
getContentProperty(String token,
String entityId,
String key)
Get the content property value for a content entity given its id and the property key
|
Vector |
getContentPropertyKeys(String token,
String entityId)
Get the content property keys for a content entity given its id
|
String |
getContentStringProperty(String token,
String entityId,
String key)
Get the content property string value (in OS_PROPERTYENTRY) for a content entity given its id and property key
|
String |
getContentTextProperty(String token,
String entityId,
String key)
Get the content property text value (in OS_PROPERTYENTRY) for a content entity given its id and property key
|
String |
getDatabaseStatistics(String token)
Return database statistics.
|
String |
getExportBuildNumber(String token)
Returns the backward-compatibility of an export
|
Hashtable<String,Object> |
getForLabels(String token,
String labelableType,
int offset,
int maxResults,
String labelsString)
Returns any kind of Labelable entities having all of the labels supplied in the string.
|
String |
getGlobalConfiguredTheme(String token)
Get the key of the configured global theme, whether or not that theme exists.
|
String[] |
getGlobalPermissionsForGroup(String token,
String groupName)
Gets the global permissions that the given group has.
|
String |
getIdOfPagePermission(String token,
String contentId,
String permissionType,
String username) |
boolean |
getIgnoreBaseURLWarning(String token)
Whether the warning message for an un-advisable value for the Base URL is ignored or not.
|
String |
getLeastRecentTestAppenderLogMessage(String token,
String className) |
String |
getLocaleForUser(String token,
String username)
Gets the locale preference for the user.
|
String |
getLocalisedText(String token,
String messageKey)
Get the localised string for given the message key in the logged-in user's locale.
|
int |
getNumberOfActiveUsers(String token)
Returns the number of active users, i.e.
|
int |
getNumberOfIndexTasksInQueue(String token)
Returns the size of the index queue.
|
String |
getOldestSpaceImportAllowed(String token)
Returns the backwards-compatibility of a space import
|
String |
getPersonalInformationId(String token,
String username)
Gets the personal information id for a given username
|
String |
getPluginExportCompatibility(String token,
String pluginKey)
Returns the plugin compatibility matrix for exports
|
int |
getQueueSize(String token,
String queueName)
Returns the size of the task queue with the specified name.
|
Vector<String> |
getRecordedErrorLogMessages(String token) |
Vector<String> |
getRecordedHibernateSql(String token,
String requestUri) |
String |
getStackDump(String token,
String threadNameRegex) |
Hashtable<String,String> |
getSystemProperty(String token,
String name)
Retrieve the value of a system property.
|
Vector |
getUsersForActivity(String key)
Call getUsersForActivity on the heartbeatManager bean
|
int |
getVersionForPage(String token,
String pageId)
Get the version number for the page with pageId
|
boolean |
increaseHighValue(String token)
Put a number bigger than 65535 in Hibernate_unique_key table to force generated ids to be greater than max integer.
|
boolean |
isCurrentApplicationSet(String token)
Check whether or not the trustedApplicationManager has its currentApplication set.
|
boolean |
isImportTaskRunning(String token) |
boolean |
isPluginModuleEnabled(String token,
String pluginKey,
String moduleKey)
Find out if a plugin module is enabled or not.
|
boolean |
isPluginUpgradeTasksComplete(String token)
Returns true if the plugin dependent upgrade tasks
|
boolean |
isSpringComponentPresent(String token,
String name)
Returns true if a Spring component with the given name exists in the application context.
|
boolean |
isUnlimitedUserLicense(String token) |
boolean |
logMessage(String token,
String destination,
String message)
Log a message to the server's console.
|
boolean |
logTestMessageForClass(String token,
String className,
String message,
String level) |
boolean |
massCreateAttachments(String token,
String pageId,
String prefix,
String numAttachments)
Create a whole series of attachments on a single page.
|
boolean |
moveBlogPost(String token,
String blogPostId,
String targetSpaceKey) |
boolean |
pauseAllJobs(String token)
Pauses the quartz scheduler.
|
boolean |
pauseJob(String token,
String jobName)
Pauses the named job in the quartz scheduler.
|
boolean |
pauseJobGroup(String token,
String jobGroupName)
Pauses the named job group in the quartz scheduler.
|
boolean |
putStringMappingInCache(String token,
String cacheName,
String key,
String value)
Map a key to a value for a given cache.
|
boolean |
registerEventListener(String token,
String eventClassName)
Registers a temporary event listener on the server to listen for the specified event.
|
boolean |
registerTestAppenderForClass(String token,
String className) |
boolean |
removeAllJohnsonEvents(String token)
Removes all Johnson events from Confluence
|
boolean |
removeAllSpaces(String token)
Kill all the spaces and flush all the queues and caches.
|
boolean |
removeAllTrustedApplications(String token)
Removes all trusted applications from the database.
|
boolean |
removeAttachmentUncleanly(String token,
String contentId,
String attachmentFileName)
Removes an attachment without cleaning up associated attachment info
|
boolean |
removeBandanaKey(String token,
String space,
String key)
Remove a key from Bandana
|
boolean |
removeDrafts(String token,
String username)
Removes all drafts owned by the specified User.
|
boolean |
removeGroupUncleanly(String token,
String groupname)
Remove a Group without removing the things that refer to that group.
|
boolean |
removeMailServer(String token,
String serverName)
Remove the named mail server.
|
boolean |
removePersonalInformation(String token,
String username)
PersonalInformation gets created automatically by the standard create user methods.
|
boolean |
removeTestData(String token,
Vector<String> usersToKeep,
Vector<String> groupsToKeep,
Hashtable<String,Vector<String>> userGroupMemberships)
Big Kahuna remove method.
|
boolean |
removeTestDataAfterExternalUserManagement(String token)
Called at the start of tests for which User management is handled by an external server such as LDAP or Crowd.
|
int |
removeTestUsers(String token,
int count)
Removes test users with usernames "testuser0", "testuser1", etc.
|
boolean |
removeUserDirectory(String token,
String directoryId)
Removes user directory
|
boolean |
removeUserMacro(String token,
String name)
Remove a User Macro with the given name if it exists.
|
boolean |
removeUserUncleanly(String token,
String username)
Remove a User without removing the things that refer to that user.
|
boolean |
resetDatabaseStatistics(String token)
Reset database statistics.
|
boolean |
resetWelcomeMessage(String token) |
boolean |
restoreAbstractPage(String token,
String abstractPageId)
Restores an abstract page from the trash.
|
boolean |
resumeAllJobs(String token)
Resume the quartz scheduler.
|
boolean |
resumeJob(String token,
String jobName)
Resumes the named job in the quartz scheduler.
|
boolean |
runGarbageCollection(String token) |
boolean |
saveDateFormat(String token,
String dateFormat) |
boolean |
saveDateTimeFormat(String token,
String dateTimeFormat) |
boolean |
setApplicationConfigProperty(String token,
String propertyKey,
String propertyValue)
Sets a property on the global
ApplicationConfiguration instance. |
boolean |
setBandanaKey(String token,
String space,
String key,
String value)
Sets a key in Bandana
|
boolean |
setBandanaKeyBoolean(String token,
String space,
String key,
boolean value)
Sets a key in Bandana
|
boolean |
setBandanaKeyInteger(String token,
String space,
String key,
int value)
Sets a key in Bandana
|
boolean |
setBandanaStringList(String token,
String space,
String key,
Vector<String> value)
Sets a key in Bandana with a List of Strings as value
|
boolean |
setBandanaStringSet(String token,
String space,
String key,
Vector<String> value)
Sets a key in Bandana with a Set of Strings as value
|
boolean |
setBooleanUserPreference(String token,
String userName,
String preferenceKey,
String value)
Sets a boolean user preference.
|
boolean |
setCacheMaximumNumberOfElements(String token,
String cacheName,
int maxNumElements)
(Re)configures the maximum number of elements in the given cache
|
boolean |
setContentPropertiesString(String token,
String entityId,
String key,
String value)
Sets the string value of a
ContentProperty associated with
a content entity given its id and the property name |
boolean |
setContentPropertiesStringForSpace(String token,
String spaceKey,
String key,
String value)
Sets the string value of a
ContentProperty associated with
the SpaceDescription of the space |
boolean |
setContentStringProperty(String token,
String entityId,
String key,
String value)
Set the content property string value (in OS_PROPERTYENTRY) for a content entity given its id, property key and value
|
boolean |
setContentTextProperty(String token,
String entityId,
String key,
String value)
Sets a text content property for a content entity given its id
|
boolean |
setDirectoryPasswordEncoder(String token,
String directoryName,
String encoder)
Changes the password encoder for the given directory
|
boolean |
setDraftSaveInterval(String token,
int seconds)
Sets the given draft save interval.
|
boolean |
setEnableAnonymousRpc(String token,
String value)
Toggle the setting to allow/deny anonymous RPC calls.
|
void |
setFuncTestRpcImpl(FuncTestRpcHandler funcTestRpcImpl) |
boolean |
setGlobalLanguage(String token,
String language)
Changes to the default site language
|
boolean |
setGlobalTheme(String token,
String themeKey)
Sets the global theme
|
boolean |
setIgnoreBaseURLWarning(String token,
boolean value)
Affects whether the warning message for an un-advisable value for the Base URL is ignored or not.
|
boolean |
setIndexingLanguage(String token,
String language)
Changes the indexing language
|
boolean |
setKeyboardShortcutPref(String token,
String username,
String enabled)
Enables/Disables keyboard shortcuts for the given uesr
|
boolean |
setLocaleForUser(String token,
String username,
String locale)
Sets the locale preference for the user to the given named locale.
|
boolean |
setNetworkNotificationForUser(String token,
String userName,
boolean watchNetwork)
Sets Network watch emails for a user to enabled or disabled.
|
boolean |
setSiteBlogNotificationForUser(String token,
String userName,
boolean globalBlogWatchForUser)
Sets Site Blog watch emails for a user to enabled or disabled.
|
boolean |
setSmtpServer(String token,
String name,
String from,
String subjectPrefix,
String hostname,
int port)
Remove all existing SMTP servers and add the given server.
|
boolean |
setSmtpServer(String token,
String name,
String from,
String subjectPrefix,
String hostname,
int port,
String fromName)
Remove all existing SMTP servers and add the given server.
|
boolean |
setStringUserPreference(String token,
String userName,
String preferenceKey,
String value)
Sets a string user preference.
|
Boolean |
setSystemProperty(String token,
String name,
String value)
Set a system property on the server to the supplied value.
|
boolean |
setThemeForSpace(String token,
String spaceKey,
String themeKey)
Sets the theme for the specified space
|
boolean |
setUserDetailProperty(String token,
String username,
String propertyKey,
String propertyValue)
Sets a single UserDetails property through the UserDetailsManager.
|
boolean |
setUserDetails(String token,
String username,
String fullName,
String email)
Sets the fullname and email address of a user with a given username.
|
boolean |
setUserFollows(String token,
String followingUsername,
Hashtable followUsers)
Change the follow or unfollow state between a follower user and s a set of folowees users
|
boolean |
setWatchOwnContentPref(String token,
String username,
String enabled)
Enables/Disables autowatching for the given uesr
|
boolean |
setWatchSpace(String token,
String username,
String spaceKey,
String contentType,
String enabled)
Enables/Disables watching a space for the given user and content type.
|
boolean |
setWatchSpaces(String token,
String username,
String contentTypeStr,
Hashtable spaces)
Enables/Disables watching spaces for the given user and content type.
|
boolean |
setWebSudoTimeout(String token,
int timeoutMinutes)
Sets the web sudo timeout in minutes
|
boolean |
setWelcomeMessage(String token,
String welcomeMessage) |
boolean |
shutdownScheduler(String token)
Shutdown the scheduler to ensure single threadedness for testing
|
boolean |
startActivity(String token,
String key,
String user)
Call startActivity on the heartbeat manager bean
|
boolean |
startLoggingRequests(String token)
Start logging http request urls.
|
boolean |
stopActivity(String token,
String key,
String user)
Call stopActivity on the heartbeatManager bean
|
Hashtable |
storeXhtmlPage(String token,
Hashtable pageStruct)
The Confluence remote API store page performs wiki to XHTML conversion on the page content.
|
boolean |
synchroniseUserDirectories(String token)
Synchronizes all remote user directories with the local database cache
|
boolean |
triggerJob(String token,
String jobName,
boolean pauseBackgroundJobs)
Triggers the named job in the quartz scheduler synchronously.
|
boolean |
uninstallPlugin(String token,
String pluginKey)
Uninstall a plugin.
|
boolean |
unregisterEventListener(String token,
String eventClassName)
Unregisters the temporary listener registered for the specified event.
|
boolean |
unregisterTestAppenderForClass(String token,
String className) |
Hashtable |
updateDraft(String token,
Hashtable draft)
Updates a draft located using the draft owner and draft type.
|
boolean |
updateGlobalSettingBoolean(String token,
String name,
boolean value)
Update a
Settings boolean field. |
String |
updateGlobalSettingString(String token,
String name,
String value)
Update a
Settings String field. |
boolean |
waitForEvent(String token,
String eventClassName,
String timeout,
String timeUnit)
Waits for an event to occur and returns when it has finished.
|
boolean |
waitForEventQueue(String token,
String timeoutStr,
String timeUnitStr)
Waits for all events in queue to be processed.
|
public boolean logMessage(String token, String destination, String message) throws RemoteException
FuncTestRpcHandlerOnly administrators can log messages.
The destination of the message has the following valid values:
logMessage in interface FuncTestRpcHandlertoken - The token idenfitying the user.destination - The destination of the message to be loggedmessage - The text message to be logged to the consoleRemoteExceptionpublic String changeLoggerLevel(String token, String loggerName, String level) throws RemoteException
FuncTestRpcHandlerChange the level of the specified logger.
The level parameter can be one of -
changeLoggerLevel in interface FuncTestRpcHandlertoken - the token identifying the user.loggerName - the full name of the logger e.g. com.atlassian.confluence.test.rpc.FuncTestRpcHandlerlevel - the level to change the logger toRemoteExceptionpublic boolean removeTestData(String token, Vector<String> usersToKeep, Vector<String> groupsToKeep, Hashtable<String,Vector<String>> userGroupMemberships) throws RemoteException
FuncTestRpcHandlerremoveTestData in interface FuncTestRpcHandlertoken - the token identifying the user.usersToKeep - users like admin and sysadmin that should not be removedgroupsToKeep - groups like admins and users that should not be removeduserGroupMemberships - a map where the keys are group names and the values are lists of usernames in the groupNotPermittedExceptionRemoteExceptionpublic boolean removeTestDataAfterExternalUserManagement(String token) throws Exception
FuncTestRpcHandlerAll remove/create User calls can be made to that server in one batch, and then the Confluence instance data can be cleaned up. Generally this will take part in three stages:
1. Clean up requiring the 'old' users, groups and memberships to exist (e.g. personal spaces, permissions) 2. Sync with the external server, which will reset the user, groups and memberships 3. Perform any other clean-up required, from removing spaces to flushing caches.
see ServerStateManager.removeTestData()
removeTestDataAfterExternalUserManagement in interface FuncTestRpcHandlerExceptionpublic boolean removeAllSpaces(String token) throws RemoteException
FuncTestRpcHandlerremoveAllSpaces in interface FuncTestRpcHandlerRemoteExceptionpublic String createTemplate(String token, String templateName, String content, String spaceKey) throws RemoteException, XhtmlException
FuncTestRpcHandlercreateTemplate in interface FuncTestRpcHandlerRemoteExceptionXhtmlExceptionpublic String createTemplateWithStorageFormat(String token, String templateName, String storageFormat, String spaceKey) throws RemoteException, XhtmlException
FuncTestRpcHandlercreateTemplateWithStorageFormat in interface FuncTestRpcHandlerRemoteExceptionXhtmlExceptionpublic boolean disconnectUser(String token, String username) throws RemoteException
FuncTestRpcHandlerdisconnectUser in interface FuncTestRpcHandlerRemoteExceptionpublic boolean disconnectGroup(String token, String groupname) throws RemoteException
FuncTestRpcHandlerdisconnectGroup in interface FuncTestRpcHandlerRemoteExceptionpublic boolean isCurrentApplicationSet(String token) throws NotPermittedException
FuncTestRpcHandlerisCurrentApplicationSet in interface FuncTestRpcHandlerNotPermittedExceptionpublic boolean removeAllTrustedApplications(String token) throws Exception
FuncTestRpcHandlerremoveAllTrustedApplications in interface FuncTestRpcHandlerExceptionpublic boolean massCreateAttachments(String token, String pageId, String prefix, String numAttachments) throws Exception
FuncTestRpcHandlermassCreateAttachments in interface FuncTestRpcHandlerExceptionpublic String getGlobalConfiguredTheme(String token) throws Exception
FuncTestRpcHandlergetGlobalConfiguredTheme in interface FuncTestRpcHandlerExceptionpublic boolean isPluginModuleEnabled(String token, String pluginKey, String moduleKey) throws NotPermittedException
FuncTestRpcHandlerisPluginModuleEnabled in interface FuncTestRpcHandlerpluginKey - the key of the pluginmoduleKey - the key of the module excluding the plugin keyNotPermittedExceptionpublic String getConfiguredThemeForSpace(String token, String spaceKey) throws Exception
FuncTestRpcHandlergetConfiguredThemeForSpace in interface FuncTestRpcHandlerExceptionpublic boolean setGlobalTheme(String token, String themeKey) throws Exception
FuncTestRpcHandlersetGlobalTheme in interface FuncTestRpcHandlerthemeKey - - the complete theme keyExceptionpublic boolean setThemeForSpace(String token, String spaceKey, String themeKey) throws Exception
FuncTestRpcHandlersetThemeForSpace in interface FuncTestRpcHandlerspaceKey - - the key of the space to changethemeKey - - the complete theme keyExceptionpublic boolean clearCustomHtml(String token) throws Exception
FuncTestRpcHandlerclearCustomHtml in interface FuncTestRpcHandlerExceptionpublic boolean uninstallPlugin(String token, String pluginKey) throws NotPermittedException
FuncTestRpcHandleruninstallPlugin in interface FuncTestRpcHandlerNotPermittedExceptionpublic boolean disablePlugin(String token, String pluginKey) throws NotPermittedException
FuncTestRpcHandlerdisablePlugin in interface FuncTestRpcHandlerNotPermittedExceptionpublic boolean disablePluginWithoutPersisting(String token, String pluginKey) throws NotPermittedException
FuncTestRpcHandlerdisablePluginWithoutPersisting in interface FuncTestRpcHandlerNotPermittedExceptionpublic boolean enablePlugin(String token, String pluginKey) throws NotPermittedException
FuncTestRpcHandlerenablePlugin in interface FuncTestRpcHandlerNotPermittedExceptionpublic boolean enablePluginModule(String token, String pluginKey, String moduleKey) throws NotPermittedException
FuncTestRpcHandlerenablePluginModule in interface FuncTestRpcHandlerpluginKey - the key of the pluginmoduleKey - the key of the moduleNotPermittedExceptionpublic boolean disablePluginModule(String token, String pluginKey, String moduleKey) throws NotPermittedException
FuncTestRpcHandlerdisablePluginModule in interface FuncTestRpcHandlerpluginKey - the key of the pluginmoduleKey - the key of the moduleNotPermittedExceptionpublic boolean isSpringComponentPresent(String token, String name)
FuncTestRpcHandlerisSpringComponentPresent in interface FuncTestRpcHandlerpublic boolean isPluginUpgradeTasksComplete(String token)
FuncTestRpcHandlerisPluginUpgradeTasksComplete in interface FuncTestRpcHandlerpublic boolean pauseAllJobs(String token) throws Exception
FuncTestRpcHandlerpauseAllJobs in interface FuncTestRpcHandlerExceptionpublic boolean resumeAllJobs(String token) throws Exception
FuncTestRpcHandlerresumeAllJobs in interface FuncTestRpcHandlerExceptionpublic boolean pauseJobGroup(String token, String jobGroupName) throws Exception
FuncTestRpcHandlerpauseJobGroup in interface FuncTestRpcHandlerExceptionpublic boolean pauseJob(String token, String jobName) throws Exception
FuncTestRpcHandlerpauseJob in interface FuncTestRpcHandlerExceptionpublic boolean resumeJob(String token, String jobName) throws Exception
FuncTestRpcHandlerresumeJob in interface FuncTestRpcHandlerExceptionpublic boolean triggerJob(String token, String jobName, boolean pauseBackgroundJobs) throws Exception
FuncTestRpcHandlertriggerJob in interface FuncTestRpcHandlerExceptionpublic boolean waitForEvent(String token, String eventClassName, String timeout, String timeUnit) throws Exception
FuncTestRpcHandlerwaitForEvent in interface FuncTestRpcHandlereventClassName - the fully qualified classname of the event to wait for.timeout - number of milliseconds to wait for the event before giving up completely.timeUnit - See TimeUnit.nameExceptionpublic boolean waitForEventQueue(String token, String timeoutStr, String timeUnitStr) throws Exception
FuncTestRpcHandlerwaitForEventQueue in interface FuncTestRpcHandlerExceptionpublic boolean shutdownScheduler(String token) throws Exception
FuncTestRpcHandlershutdownScheduler in interface FuncTestRpcHandlerExceptionpublic boolean removeBandanaKey(String token, String space, String key)
FuncTestRpcHandlerremoveBandanaKey in interface FuncTestRpcHandlerpublic boolean setBandanaStringSet(String token, String space, String key, Vector<String> value)
FuncTestRpcHandlersetBandanaStringSet in interface FuncTestRpcHandlerpublic boolean setBandanaStringList(String token, String space, String key, Vector<String> value)
FuncTestRpcHandlersetBandanaStringList in interface FuncTestRpcHandlerpublic boolean setBandanaKey(String token, String space, String key, String value)
FuncTestRpcHandlersetBandanaKey in interface FuncTestRpcHandlerpublic boolean setBandanaKeyBoolean(String token, String space, String key, boolean value)
FuncTestRpcHandlersetBandanaKeyBoolean in interface FuncTestRpcHandlerpublic boolean setBandanaKeyInteger(String token, String space, String key, int value)
FuncTestRpcHandlersetBandanaKeyInteger in interface FuncTestRpcHandlerpublic Object getBandanaValue(String token, String space, String key)
FuncTestRpcHandlergetBandanaValue in interface FuncTestRpcHandlerpublic Vector getContentPropertyKeys(String token, String entityId)
FuncTestRpcHandlergetContentPropertyKeys in interface FuncTestRpcHandlerpublic String getContentProperty(String token, String entityId, String key)
FuncTestRpcHandlergetContentProperty in interface FuncTestRpcHandlerpublic String getContentTextProperty(String token, String entityId, String key)
FuncTestRpcHandlergetContentTextProperty in interface FuncTestRpcHandlerentityId - the ID of the content object this property is stored againstkey - the entity key of the property being storedpublic String getContentStringProperty(String token, String entityId, String key)
FuncTestRpcHandlergetContentStringProperty in interface FuncTestRpcHandlerentityId - the ID of the content object this property is stored againstkey - the entity key of the property being storedpublic String getContentPropertiesString(String token, String entityId, String key)
FuncTestRpcHandlerContentProperty associated with
a content entity given its id and the property namegetContentPropertiesString in interface FuncTestRpcHandlerpublic String getContentPropertiesStringForSpace(String token, String spaceKey, String key)
FuncTestRpcHandlerContentProperty associated with
the SpaceDescription of the spacegetContentPropertiesStringForSpace in interface FuncTestRpcHandlerpublic boolean setContentTextProperty(String token, String entityId, String key, String value)
FuncTestRpcHandlersetContentTextProperty in interface FuncTestRpcHandlerpublic boolean setContentStringProperty(String token, String entityId, String key, String value)
FuncTestRpcHandlersetContentStringProperty in interface FuncTestRpcHandlerentityId - the ID of the content object this property is stored againstkey - the entity key of the property being storedvalue - the string value of the property to setpublic boolean setContentPropertiesString(String token, String entityId, String key, String value)
FuncTestRpcHandlerContentProperty associated with
a content entity given its id and the property namesetContentPropertiesString in interface FuncTestRpcHandlerpublic boolean setContentPropertiesStringForSpace(String token, String spaceKey, String key, String value)
FuncTestRpcHandlerContentProperty associated with
the SpaceDescription of the spacesetContentPropertiesStringForSpace in interface FuncTestRpcHandlerpublic String getPersonalInformationId(String token, String username)
FuncTestRpcHandlergetPersonalInformationId in interface FuncTestRpcHandlerpublic boolean removePersonalInformation(String token, String username) throws NotPermittedException
FuncTestRpcHandlerremovePersonalInformation in interface FuncTestRpcHandlerusername - user whose personalInformation will be removedNotPermittedExceptionpublic String getLocaleForUser(String token, String username)
FuncTestRpcHandlergetLocaleForUser in interface FuncTestRpcHandlerpublic boolean setLocaleForUser(String token, String username, String locale) throws RemoteException
FuncTestRpcHandlersetLocaleForUser in interface FuncTestRpcHandlerRemoteExceptionpublic boolean setUserDetails(String token, String username, String fullName, String email) throws RemoteException
FuncTestRpcHandlersetUserDetails in interface FuncTestRpcHandlerRemoteException - if the user was not found.public boolean setUserDetailProperty(String token, String username, String propertyKey, String propertyValue)
FuncTestRpcHandlersetUserDetailProperty in interface FuncTestRpcHandlerpublic boolean putStringMappingInCache(String token, String cacheName, String key, String value) throws Exception
FuncTestRpcHandlerputStringMappingInCache in interface FuncTestRpcHandlerExceptionpublic Hashtable getCacheStatistics(String token, String cacheName) throws Exception
FuncTestRpcHandlergetCacheStatistics in interface FuncTestRpcHandlercacheName - the key of the cache, rather than the "niceName"Exceptionpublic Integer getCacheMaximumNumberOfElements(String token, String cacheName) throws Exception
FuncTestRpcHandlergetCacheMaximumNumberOfElements in interface FuncTestRpcHandlercacheName - the key of the cache, rather than the "niceName"Exceptionpublic boolean setCacheMaximumNumberOfElements(String token, String cacheName, int maxNumElements) throws Exception
FuncTestRpcHandlersetCacheMaximumNumberOfElements in interface FuncTestRpcHandlercacheName - the key of the cache, rather than the "niceName"Exceptionpublic Vector<String> getCacheStatisticsCapabilities(String token) throws NotPermittedException
FuncTestRpcHandlergetCacheStatisticsCapabilities in interface FuncTestRpcHandlerNotPermittedExceptionpublic boolean flushAllCaches(String token) throws Exception
FuncTestRpcHandlerflushAllCaches in interface FuncTestRpcHandlerExceptionpublic boolean enableWebSudo(String token, boolean enabled) throws Exception
FuncTestRpcHandlerenableWebSudo in interface FuncTestRpcHandlerExceptionpublic boolean setWebSudoTimeout(String token, int timeoutMinutes) throws Exception
FuncTestRpcHandlersetWebSudoTimeout in interface FuncTestRpcHandlerExceptionpublic boolean enableElevatedSecurityCheck(String token, boolean enabled) throws Exception
enableElevatedSecurityCheck in interface FuncTestRpcHandlerExceptionpublic boolean enablePublicSignUp(String token, boolean enabled) throws Exception
FuncTestRpcHandlerenablePublicSignUp in interface FuncTestRpcHandlerExceptionpublic boolean startActivity(String token, String key, String user) throws Exception
FuncTestRpcHandlerstartActivity in interface FuncTestRpcHandlertoken - rpc authentication tokenkey - the activity key to startuser - the username of the user starting the activityExceptionpublic boolean stopActivity(String token, String key, String user) throws Exception
FuncTestRpcHandlerstopActivity in interface FuncTestRpcHandlertoken - rpc authentication tokenkey - the activity key to stopuser - the username of the user stopping the activityExceptionpublic boolean setKeyboardShortcutPref(String token, String username, String enabled) throws RemoteException
FuncTestRpcHandlersetKeyboardShortcutPref in interface FuncTestRpcHandlerRemoteExceptionpublic boolean setWatchOwnContentPref(String token, String username, String enabled) throws RemoteException
FuncTestRpcHandlersetWatchOwnContentPref in interface FuncTestRpcHandlerRemoteExceptionpublic boolean setWatchSpaces(String token, String username, String contentTypeStr, Hashtable spaces) throws RemoteException
FuncTestRpcHandlersetWatchSpaces in interface FuncTestRpcHandlerRemoteExceptionpublic boolean setWatchSpace(String token, String username, String spaceKey, String contentType, String enabled) throws RemoteException
FuncTestRpcHandlersetWatchSpace in interface FuncTestRpcHandlerRemoteExceptionpublic Vector getUsersForActivity(String key) throws Exception
FuncTestRpcHandlergetUsersForActivity in interface FuncTestRpcHandlerExceptionpublic boolean registerEventListener(String token, String eventClassName) throws Exception
FuncTestRpcHandlerFuncTestRpcHandler.unregisterEventListener(String, String) in a finally clause to
ensure the temporary listener is cleaned up.
Once the listener is registered, clients can use FuncTestRpcHandler.waitForEvent(String, String, String, String) to block until the event
is published.
registerEventListener in interface FuncTestRpcHandlerExceptionpublic boolean unregisterEventListener(String token, String eventClassName) throws Exception
FuncTestRpcHandlerunregisterEventListener in interface FuncTestRpcHandlerExceptionpublic boolean clearEventListeners(String token) throws Exception
FuncTestRpcHandlerclearEventListeners in interface FuncTestRpcHandlerExceptionpublic boolean removeMailServer(String token, String serverName) throws Exception
FuncTestRpcHandlerremoveMailServer in interface FuncTestRpcHandlertoken - the rpc authentication tokenserverName - the name of the server to be removed.Exceptionpublic String getLeastRecentTestAppenderLogMessage(String token, String className)
getLeastRecentTestAppenderLogMessage in interface FuncTestRpcHandlerpublic boolean registerTestAppenderForClass(String token, String className)
registerTestAppenderForClass in interface FuncTestRpcHandlerpublic boolean unregisterTestAppenderForClass(String token, String className)
unregisterTestAppenderForClass in interface FuncTestRpcHandlerpublic boolean logTestMessageForClass(String token, String className, String message, String level)
logTestMessageForClass in interface FuncTestRpcHandlerpublic String getLocalisedText(String token, String messageKey)
FuncTestRpcHandlergetLocalisedText in interface FuncTestRpcHandlertoken - the rpc authentication tokenmessageKey - the i18n message keypublic boolean removeUserUncleanly(String token, String username) throws Exception
FuncTestRpcHandlerremoveUserUncleanly in interface FuncTestRpcHandlerExceptionpublic boolean removeGroupUncleanly(String token, String groupname) throws Exception
FuncTestRpcHandlerremoveGroupUncleanly in interface FuncTestRpcHandlerExceptionpublic boolean doesDraftExist(String token, String contentId, String owner, String draftType, String spaceKey)
FuncTestRpcHandlerdoesDraftExist in interface FuncTestRpcHandlertoken - rpc authentication tokencontentId - id of the content this draft is for ('0' for new content)owner - owner/author of the draftdraftType - type of content this draft is forspaceKey - space key, to allow new drafts in multiple spacespublic int countDrafts(String token, String owner)
countDrafts in interface FuncTestRpcHandlerpublic Hashtable createDraft(String token, Hashtable draft)
FuncTestRpcHandlercreateDraft in interface FuncTestRpcHandlertoken - rpc authentication tokendraft - the draft object to create
Required:
"owner" - the username of owner/author of the draft. Set to null for anonymous users.
"draftType" - type of content the draft is for i.e. BlogPost.getType() or Page.getType().
"title" - title of the draft.
"content" - content of the draft as a String in Confluence XML storage format.
Optional:
"pageId" - page that the draft is associated with.
"spaceKey" - if no there is no page, the space that the draft is written in.id.public Hashtable updateDraft(String token, Hashtable draft)
FuncTestRpcHandlerupdateDraft in interface FuncTestRpcHandlertoken - rpc authentication tokendraft - the draft object to create see #createDraft(java.lang.String, java.util.Hashtable)public boolean removeDrafts(String token, String username)
FuncTestRpcHandlerremoveDrafts in interface FuncTestRpcHandlertoken - rpc authentication tokenusername - user to remove drafts forpublic boolean setDraftSaveInterval(String token, int seconds)
FuncTestRpcHandlersetDraftSaveInterval in interface FuncTestRpcHandlertoken - rpc authentication tokenseconds - number of seconds for which the draft save interval should bepublic boolean clearQueue(String token, String queueName)
FuncTestRpcHandlerclearQueue in interface FuncTestRpcHandlerpublic int getQueueSize(String token, String queueName)
FuncTestRpcHandlergetQueueSize in interface FuncTestRpcHandlerpublic boolean addUserAnyCase(String token, String username, String email, String fullname, String password) throws RemoteException
FuncTestRpcHandleraddUserAnyCase in interface FuncTestRpcHandlerNotPermittedException - if you do not have permissions to add the user.RemoteExceptionpublic boolean addGroupAnyCase(String token, String groupname) throws RemoteException
FuncTestRpcHandleraddGroupAnyCase in interface FuncTestRpcHandlergroupname - the name of the group to addRemoteExceptionpublic boolean changeSpaceCreatedDate(String token, String spaceKey, Date createdDate) throws RemoteException
FuncTestRpcHandlerchangeSpaceCreatedDate in interface FuncTestRpcHandlerspaceKey - the space key of the space to change the created dateRemoteExceptionpublic boolean changeCommentCreatedDate(String token, String commentId, Date createdDate) throws RemoteException
FuncTestRpcHandlerchangeCommentCreatedDate in interface FuncTestRpcHandlerRemoteExceptionpublic boolean changePageCreatedDate(String token, String pageId, Date createdDate) throws RemoteException
FuncTestRpcHandlerchangePageCreatedDate in interface FuncTestRpcHandlerpageId - the page id of the page to change the created dateRemoteExceptionpublic boolean removeAttachmentUncleanly(String token, String contentId, String attachmentFileName) throws RemoteException
FuncTestRpcHandlerremoveAttachmentUncleanly in interface FuncTestRpcHandlertoken - the authenticationcontentId - the content that the attachment is attached toattachmentFileName - the attachmentRemoteExceptionpublic boolean changeAttachmentCreatedDate(String token, String contentId, String attachmentFileName, Date createdDate) throws RemoteException
FuncTestRpcHandlerchangeAttachmentCreatedDate in interface FuncTestRpcHandlercontentId - the id of the page or blogpost the attachment is attached toattachmentFileName - the attachment file name of the attachment to change the created dateRemoteExceptionpublic boolean changeBlogPostModificationDate(String token, String blogId, Date modificationDate) throws RemoteException
FuncTestRpcHandlerchangeBlogPostModificationDate in interface FuncTestRpcHandlerblogId - the id of the blog to modifymodificationDate - the last modification date to be set.RemoteExceptionpublic boolean changePageModificationDate(String token, String pageId, Date modificationDate) throws RemoteException
FuncTestRpcHandlerchangePageModificationDate in interface FuncTestRpcHandlerpageId - the page id of the page to change the modification datemodificationDate - the last modification date to be set.RemoteExceptionpublic int getVersionForPage(String token, String pageId) throws RemoteException
FuncTestRpcHandlergetVersionForPage in interface FuncTestRpcHandlerRemoteExceptionpublic boolean saveDateFormat(String token, String dateFormat)
saveDateFormat in interface FuncTestRpcHandlerpublic boolean saveDateTimeFormat(String token, String dateTimeFormat)
saveDateTimeFormat in interface FuncTestRpcHandlerpublic boolean addSmtpServer(String token, String name, String from, String subjectPrefix, String hostname, int port)
FuncTestRpcHandleraddSmtpServer in interface FuncTestRpcHandlerpublic boolean addSmtpServer(String token, String name, String from, String subjectPrefix, String hostname, int port, String fromName)
addSmtpServer in interface FuncTestRpcHandlerpublic boolean setSmtpServer(String token, String name, String from, String subjectPrefix, String hostname, int port)
FuncTestRpcHandlersetSmtpServer in interface FuncTestRpcHandlerpublic boolean setSmtpServer(String token, String name, String from, String subjectPrefix, String hostname, int port, String fromName)
FuncTestRpcHandlersetSmtpServer in interface FuncTestRpcHandlerpublic boolean addMailServer(String token, String serverName, String protocol, String hostname, int port, String username, String password, String toAddress)
FuncTestRpcHandleraddMailServer in interface FuncTestRpcHandlerpublic String convertMarkupToXhtml(String token, String wikiMarkup, String pageId)
FuncTestRpcHandlerconvertMarkupToXhtml in interface FuncTestRpcHandlerpublic String convertXhtmlToMarkup(String token, String xhtml, String pageId)
FuncTestRpcHandlerconvertXhtmlToMarkup in interface FuncTestRpcHandlerpublic void setFuncTestRpcImpl(FuncTestRpcHandler funcTestRpcImpl)
public boolean removeAllJohnsonEvents(String token)
FuncTestRpcHandlerremoveAllJohnsonEvents in interface FuncTestRpcHandlerpublic boolean enableCaptcha(String token, boolean enable)
FuncTestRpcHandlerenableCaptcha in interface FuncTestRpcHandlerpublic boolean enableCaptchaDebugMode(String token, boolean enable)
FuncTestRpcHandlerCaptchaManager.setDebugMode(boolean).enableCaptchaDebugMode in interface FuncTestRpcHandlerpublic boolean createJohnsonEvent(String token, String message)
FuncTestRpcHandlerConfluenceJohnsonFilter.createJohnsonEvent in interface FuncTestRpcHandlermessage - the description of the event to createpublic Hashtable<String,String> getSystemProperty(String token, String name)
FuncTestRpcHandlergetSystemProperty in interface FuncTestRpcHandlername - the name of the propertypublic Boolean setSystemProperty(String token, String name, String value)
FuncTestRpcHandlersetSystemProperty in interface FuncTestRpcHandlername - the name of the propertyvalue - the value of the propertypublic Boolean clearSystemProperty(String token, String name)
FuncTestRpcHandlerclearSystemProperty in interface FuncTestRpcHandlername - the name of the propertypublic boolean clearIndex(String token)
FuncTestRpcHandlerclearIndex in interface FuncTestRpcHandlerpublic String[] getGlobalPermissionsForGroup(String token, String groupName) throws RemoteException
FuncTestRpcHandlergetGlobalPermissionsForGroup in interface FuncTestRpcHandlerRemoteExceptionpublic boolean restoreAbstractPage(String token, String abstractPageId)
FuncTestRpcHandlerrestoreAbstractPage in interface FuncTestRpcHandlerpublic String getIdOfPagePermission(String token, String contentId, String permissionType, String username)
getIdOfPagePermission in interface FuncTestRpcHandlerpublic int createTestUsers(String token, int count)
FuncTestRpcHandlercreateTestUsers in interface FuncTestRpcHandlerpublic int removeTestUsers(String token, int count)
FuncTestRpcHandlerremoveTestUsers in interface FuncTestRpcHandlerpublic boolean createUserMacro(String token, String name, boolean hasBody, String bodyType, String outputType, String template, String title, String description, String category, String iconUrl, String documentationUrl, boolean hidden) throws NotPermittedException
FuncTestRpcHandlercreateUserMacro in interface FuncTestRpcHandlerbodyType - how the body should be treated. "raw", "escapehtml", or "rendered". May
be null only if hasBody is false.outputType - whether the macro is expected to return html or wiki markup. "html" or "wiki".template - the velocity rendered by the macrotitle - the title of the macro that appears in the Macro Browserdescription - the description of the macro that appears in the Macro Browsercategory - the category the macro should be listed under in the Macro BrowsericonUrl - the URL of the macro icon that appears in the Macro BrowserdocumentationUrl - the URL of the macro documentationhidden - true if the Macro should not be searchable in the Macro BrowserNotPermittedExceptionpublic boolean removeUserMacro(String token, String name) throws NotPermittedException
FuncTestRpcHandlerremoveUserMacro in interface FuncTestRpcHandlerNotPermittedExceptionpublic boolean setApplicationConfigProperty(String token, String propertyKey, String propertyValue)
FuncTestRpcHandlerApplicationConfiguration instance.setApplicationConfigProperty in interface FuncTestRpcHandlerpublic Object getApplicationConfigProperty(String token, String propertyKey)
FuncTestRpcHandlerApplicationConfiguration instance.getApplicationConfigProperty in interface FuncTestRpcHandlerpropertyKeypublic boolean setUserFollows(String token, String followingUsername, Hashtable followUsers) throws RemoteException
FuncTestRpcHandlersetUserFollows in interface FuncTestRpcHandlerfollowingUsername - The username of the user that is doing the followingfollowUsers - A map of usernames to bbe followed/unfollowed, and a boolean indicating the desired follow statusRemoteExceptionpublic boolean followUser(String token, String userName, boolean followUser) throws RemoteException
FuncTestRpcHandlerfollowUser in interface FuncTestRpcHandlerfollowUser - true to follow a user, false to stop followingRemoteExceptionpublic Hashtable storeXhtmlPage(String token, Hashtable pageStruct) throws RemoteException
FuncTestRpcHandlerstoreXhtmlPage in interface FuncTestRpcHandlerRemoteExceptionpublic boolean synchroniseUserDirectories(String token) throws Exception
FuncTestRpcHandlersynchroniseUserDirectories in interface FuncTestRpcHandlerExceptionpublic boolean setDirectoryPasswordEncoder(String token, String directoryName, String encoder) throws Exception
FuncTestRpcHandlersetDirectoryPasswordEncoder in interface FuncTestRpcHandlerExceptionpublic boolean removeUserDirectory(String token, String directoryId) throws Exception
FuncTestRpcHandlerremoveUserDirectory in interface FuncTestRpcHandlerdirectoryId - the id of the directoryExceptionpublic int getNumberOfIndexTasksInQueue(String token)
FuncTestRpcHandlergetNumberOfIndexTasksInQueue in interface FuncTestRpcHandlerpublic boolean addExistingProfilePicture(String token, String userName, String fileName) throws Exception
FuncTestRpcHandleraddExistingProfilePicture in interface FuncTestRpcHandleruserName - the user name of the profilefileName - file name of the pictureExceptionpublic boolean setBooleanUserPreference(String token, String userName, String preferenceKey, String value) throws RemoteException
FuncTestRpcHandlersetBooleanUserPreference in interface FuncTestRpcHandleruserName - the user name to set the preference forpreferenceKey - the key of the preference to setvalue - the string "true" or "false" to set as the preferenceRemoteExceptionpublic boolean setStringUserPreference(String token, String userName, String preferenceKey, String value) throws RemoteException
FuncTestRpcHandlersetStringUserPreference in interface FuncTestRpcHandleruserName - the user name to set the preference forpreferenceKey - the key of the preference to setvalue - a string to set as the preferenceRemoteExceptionpublic boolean enableDailyReportNotification(String token, String userName, boolean dailyReportEnabled)
FuncTestRpcHandlerenableDailyReportNotification in interface FuncTestRpcHandleruserName - the user name to set the report state fordailyReportEnabled - true if the daily report should be sent, false if notpublic boolean setNetworkNotificationForUser(String token, String userName, boolean watchNetwork)
FuncTestRpcHandlersetNetworkNotificationForUser in interface FuncTestRpcHandleruserName - the user name to set the watch state forwatchNetwork - true if the user should watch their network, false if notpublic boolean setSiteBlogNotificationForUser(String token, String userName, boolean globalBlogWatchForUser)
FuncTestRpcHandlersetSiteBlogNotificationForUser in interface FuncTestRpcHandleruserName - the user name to set the watch state forglobalBlogWatchForUser - true if the user should watch all blogs on the site network, false if notpublic boolean getIgnoreBaseURLWarning(String token)
FuncTestRpcHandlergetIgnoreBaseURLWarning in interface FuncTestRpcHandlerpublic boolean setIgnoreBaseURLWarning(String token, boolean value) throws RemoteException
FuncTestRpcHandlersetIgnoreBaseURLWarning in interface FuncTestRpcHandlervalue - set to true to ignore the warning.RemoteExceptionpublic boolean enableUserFeature(String token, String featureKey) throws RemoteException
FuncTestRpcHandlerenableUserFeature in interface FuncTestRpcHandlerfeatureKey - - the key of the feature to enableRemoteExceptionpublic boolean disableUserFeature(String token, String featureKey) throws RemoteException
FuncTestRpcHandlerdisableUserFeature in interface FuncTestRpcHandlerfeatureKey - - the key of the feature to disableRemoteExceptionpublic boolean enableSiteFeature(String token, String featureKey) throws RemoteException
FuncTestRpcHandlerenableSiteFeature in interface FuncTestRpcHandlerfeatureKey - - the key of the feature to enableRemoteExceptionpublic boolean disableSiteFeature(String token, String featureKey) throws RemoteException
FuncTestRpcHandlerdisableSiteFeature in interface FuncTestRpcHandlerfeatureKey - - the key of the feature to disableRemoteExceptionpublic boolean setWelcomeMessage(String token, String welcomeMessage)
setWelcomeMessage in interface FuncTestRpcHandlerpublic boolean resetWelcomeMessage(String token)
resetWelcomeMessage in interface FuncTestRpcHandlerpublic String getExportBuildNumber(String token)
FuncTestRpcHandlergetExportBuildNumber in interface FuncTestRpcHandlertoken - the authenticationpublic String getOldestSpaceImportAllowed(String token)
FuncTestRpcHandlergetOldestSpaceImportAllowed in interface FuncTestRpcHandlertoken - the authenticationpublic String getPluginExportCompatibility(String token, String pluginKey)
FuncTestRpcHandlergetPluginExportCompatibility in interface FuncTestRpcHandlertoken - the authenticationpluginKey - the plugin keypublic Vector<Hashtable> createPagesFromPrototype(String token, Hashtable pageStruct, int count) throws RemoteException
FuncTestRpcHandlere.g. if the page title passed is "Hey Ho", the created pages will be "Hey Ho 1", "Hey Ho 2" and so on.
createPagesFromPrototype in interface FuncTestRpcHandlerpageStruct - a template page to create multiple pages fromcount - the number of pages to create - pages created are 1-indexedRemoteExceptionpublic boolean updateGlobalSettingBoolean(String token, String name, boolean value) throws RemoteException
FuncTestRpcHandlerSettings boolean field.updateGlobalSettingBoolean in interface FuncTestRpcHandlername - name of the field used to store the setting (see field names inside Settings.RemoteExceptionpublic String updateGlobalSettingString(String token, String name, String value) throws RemoteException
FuncTestRpcHandlerSettings String field.updateGlobalSettingString in interface FuncTestRpcHandlername - name of the field used to store the setting (see field names inside Settings.value - the String value the field should takeRemoteExceptionpublic Vector<String> createSpaces(String token, int count) throws RemoteException
FuncTestRpcHandlercreateSpaces in interface FuncTestRpcHandlercount - the number to createRemoteException - if you are not awesome enough to use this methodpublic int getNumberOfActiveUsers(String token) throws RemoteException
FuncTestRpcHandlergetNumberOfActiveUsers in interface FuncTestRpcHandlerRemoteExceptionpublic boolean isUnlimitedUserLicense(String token) throws RemoteException
isUnlimitedUserLicense in interface FuncTestRpcHandlerRemoteExceptionpublic Vector<Hashtable> getAliveThreads(String token) throws RemoteException
getAliveThreads in interface FuncTestRpcHandlerRemoteExceptionpublic String getStackDump(String token, String threadNameRegex) throws RemoteException
getStackDump in interface FuncTestRpcHandlerRemoteExceptionpublic boolean setEnableAnonymousRpc(String token, String value) throws RemoteException
FuncTestRpcHandlersetEnableAnonymousRpc in interface FuncTestRpcHandlerRemoteExceptionpublic Hashtable<String,Object> getContentForAllLabels(String token, int offset, int maxResults, String labels)
FuncTestRpcHandlergetContentForAllLabels in interface FuncTestRpcHandlerpublic Hashtable<String,Object> getContentInSpacesForAllLabels(String token, int offset, int maxResults, String spaceKeysString, String labelsString)
FuncTestRpcHandlergetContentInSpacesForAllLabels in interface FuncTestRpcHandlerpublic Hashtable<String,Object> getAllContentForAllLabels(String token, int offset, int maxResults, String labelsString)
FuncTestRpcHandlergetAllContentForAllLabels in interface FuncTestRpcHandlerpublic Hashtable<String,Object> getForLabels(String token, String labelableType, int offset, int maxResults, String labelsString)
FuncTestRpcHandlergetForLabels in interface FuncTestRpcHandlerpublic int addLabelToLabelable(String token, String labelName, String labelableId, String labelableType)
FuncTestRpcHandleraddLabelToLabelable in interface FuncTestRpcHandlerpublic boolean startLoggingRequests(String token)
FuncTestRpcHandler
Call FuncTestRpcHandler.finishLoggingRequests(String) to stop logging and to retrieve results.
startLoggingRequests in interface FuncTestRpcHandlerpublic Vector<String> finishLoggingRequests(String token)
FuncTestRpcHandler
Logging must have been previously started using FuncTestRpcHandler.startLoggingRequests(String).
finishLoggingRequests in interface FuncTestRpcHandlerpublic boolean resetDatabaseStatistics(String token)
FuncTestRpcHandler
Call FuncTestRpcHandler.getDatabaseStatistics(String) to get results since the last reset.
resetDatabaseStatistics in interface FuncTestRpcHandlerpublic String getDatabaseStatistics(String token)
FuncTestRpcHandler
Statistics since the last call to FuncTestRpcHandler.resetDatabaseStatistics(String) are returned.
getDatabaseStatistics in interface FuncTestRpcHandlerpublic boolean runGarbageCollection(String token)
runGarbageCollection in interface FuncTestRpcHandlerpublic boolean isImportTaskRunning(String token)
isImportTaskRunning in interface FuncTestRpcHandlerpublic String getAnonyimizedClusterNodeIdentifier(String token)
getAnonyimizedClusterNodeIdentifier in interface FuncTestRpcHandlerpublic boolean moveBlogPost(String token, String blogPostId, String targetSpaceKey)
moveBlogPost in interface FuncTestRpcHandlerpublic boolean assertThatIndexQueueEntryHasBeenProcessed(String token, String searchableClassname, String searchableId) throws RemoteException
assertThatIndexQueueEntryHasBeenProcessed in interface FuncTestRpcHandlerRemoteExceptionpublic boolean increaseHighValue(String token)
FuncTestRpcHandlerincreaseHighValue in interface FuncTestRpcHandlertoken - the rpc authentication tokenpublic Vector<String> getRecordedErrorLogMessages(String token)
getRecordedErrorLogMessages in interface FuncTestRpcHandlerpublic Vector<String> getRecordedHibernateSql(String token, String requestUri)
getRecordedHibernateSql in interface FuncTestRpcHandlerpublic boolean setGlobalLanguage(String token, String language) throws RemoteException
FuncTestRpcHandlersetGlobalLanguage in interface FuncTestRpcHandlerRemoteExceptionpublic boolean setIndexingLanguage(String token, String language) throws RemoteException
FuncTestRpcHandlersetIndexingLanguage in interface FuncTestRpcHandlerRemoteExceptionCopyright © 2003–2019 Atlassian. All rights reserved.