|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.test.rpc.FuncTestRpcDelegator
public class FuncTestRpcDelegator
| Constructor Summary | |
|---|---|
FuncTestRpcDelegator()
|
|
| Method Summary | |
|---|---|
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. |
boolean |
addMailServer(String token,
String name,
String from,
String subjectPrefix,
String hostname,
int port)
|
boolean |
addMailServer(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 |
buildDidYouMeanIndex(String token)
Start a task to build the DidYouMean Index. |
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 |
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. |
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. |
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 |
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)
Determines if a draft of the specified type and belonging to the specified owner exists. |
boolean |
enablePlugin(String token,
String pluginKey)
Enable a plugin. |
boolean |
enablePluginModule(String token,
String pluginKey,
String moduleKey)
Enable plugin module |
boolean |
enableWebSudo(String token,
boolean enabled)
Sets the web sudo enabled status |
boolean |
flushAllCaches(String token)
Flushes all the caches. |
boolean |
followUser(String token,
String userName,
boolean followUser)
Follows or stops following a user. |
Object |
getApplicationConfigProperty(String token,
String propertyKey)
Returns a property of the global ApplicationConfiguration instance. |
Hashtable |
getCacheStatistics(String token,
String cacheName)
Returns the cache statistics for a particular named cache. |
String |
getConfiguredThemeForSpace(String token,
String spaceKey)
Get the key of the configured theme for a space, whether or not that theme exists. |
Vector |
getContentPropertyKeys(String token,
String entityId)
Get the content property keys for a content entity given its id |
String |
getGlobalConfiguredTheme(String token)
Get the key of the configured global theme, whether or not that theme exists. |
String |
getIdOfPagePermission(String token,
String contentId,
String permissionType,
String username)
|
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 |
getNumberOfIndexTasksInQueue(String token)
Returns the size of the index queue. |
String |
getPersonalInformationId(String token,
String username)
Gets the personal information id for a given username |
int |
getQueueSize(String token,
String queueName)
Returns the size of the task queue with the specified name. |
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 |
isCurrentApplicationSet(String token)
Check whether or not the trustedApplicationManager has its currentApplication set. |
boolean |
isPluginInstalled(String token,
String pluginKey)
Check whether a plugin is installed or not. |
boolean |
isSpringComponentPresent(String token,
String name)
Returns true if a Spring component with the given name exists in the application context. |
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 |
nukeSpacesAndFlushEverything(String token)
Kill all the spaces and flush all the queues and caches. |
boolean |
nukeUserAndGroupDependentObjects(String token)
Remove the dependencies of all users and groups, except the default dependencies of the default groups and the current user. |
boolean |
pauseJob(String token,
String jobName)
Pauses a named job 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 |
removeAllGroupsExceptDefaults(String token)
Remove all groups aside from the default Confluence groups |
boolean |
removeAllJohnsonEvents(String token)
Removes all Johnson events from Confluence |
boolean |
removeAllOtherUsers(String token)
Remove all users except the current user. |
boolean |
removeAllTrustedApplications(String token)
Removes all trusted applications from the database. |
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 |
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. |
int |
removeTestUsers(String token,
int count)
Removes test users with usernames "testuser0", "testuser1", etc. |
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 |
resetGlobalPermissions(String token)
Reset global permissions to the system initial state. |
boolean |
resetTheme(String token)
Reset the global theme to the default theme. |
boolean |
restoreAbstractPage(String token,
String abstractPageId)
Restores an abstract page from the trash. |
boolean |
resumeJob(String token,
String jobName)
Resumes a named job in the quartz scheduler |
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 |
setBooleanUserPreference(String token,
String userName,
String preferenceKey,
String value)
Sets a boolean user preference. |
boolean |
setCaptchaDebugMode(String token,
boolean enable)
Sets the captcha mode into debug mode. |
boolean |
setCaptchaMode(String token,
boolean enable)
Sets the captcha mode |
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 |
setEnableJavascriptTop(String token,
boolean set)
Set the config for serving javascripts in the header. |
void |
setFuncTestRpcImpl(FuncTestRpcHandler funcTestRpcImpl)
|
boolean |
setGlobalTheme(String token,
String themeKey)
Sets the global theme |
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 |
setSharedMode(String token,
boolean set)
|
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 specifiec space |
boolean |
setUserDetails(String token,
String username,
String fullName,
String email)
Sets the fullname and email address of a user with a given username. |
boolean |
setUserStatus(String token,
String wikiStatus)
Set the current user's status. |
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 |
setWebSudoTimeout(String token,
int timeout)
Sets the web sudo timeout in minutes |
boolean |
shutdownQuartz(String token)
Shutdown the quartz scheduler to ensure single threadedness for testing |
boolean |
startActivity(String key,
String user)
Call startActivity on the heartbeatManager bean |
boolean |
synchroniseUserDirectories(String token)
Synchronizes all remote user directories with the local database cache |
boolean |
triggerJob(String token,
String jobName)
Triggers a 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 |
waitForEvent(String token,
String eventClassName,
String timeout,
String timeUnit)
Waits for an event to occur and returns when it has finished. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FuncTestRpcDelegator()
| Method Detail |
|---|
public boolean buildDidYouMeanIndex(String token)
FuncTestRpcHandlerIndexBuildCompleteEvent
will be published when the index is complete.
buildDidYouMeanIndex in interface FuncTestRpcHandler
public boolean logMessage(String token,
String destination,
String message)
throws RemoteException
FuncTestRpcHandler
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 console
RemoteException
public 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 to
RemoteException
public boolean nukeSpacesAndFlushEverything(String token)
throws RemoteException
FuncTestRpcHandler
nukeSpacesAndFlushEverything in interface FuncTestRpcHandlerRemoteException
public boolean nukeUserAndGroupDependentObjects(String token)
throws RemoteException
FuncTestRpcHandler
nukeUserAndGroupDependentObjects in interface FuncTestRpcHandlerRemoteException
public boolean removeAllOtherUsers(String token)
throws RemoteException
FuncTestRpcHandler
removeAllOtherUsers in interface FuncTestRpcHandlerRemoteException
public boolean removeAllGroupsExceptDefaults(String token)
throws RemoteException
FuncTestRpcHandler
removeAllGroupsExceptDefaults in interface FuncTestRpcHandlerRemoteException
public boolean disconnectUser(String token,
String username)
throws RemoteException
FuncTestRpcHandler
disconnectUser in interface FuncTestRpcHandlerRemoteException
public boolean disconnectGroup(String token,
String groupname)
throws RemoteException
FuncTestRpcHandler
disconnectGroup in interface FuncTestRpcHandlerRemoteException
public boolean isCurrentApplicationSet(String token)
throws NotPermittedException
FuncTestRpcHandler
isCurrentApplicationSet in interface FuncTestRpcHandlerNotPermittedException
public boolean removeAllTrustedApplications(String token)
throws Exception
FuncTestRpcHandler
removeAllTrustedApplications in interface FuncTestRpcHandlerException
public boolean massCreateAttachments(String token,
String pageId,
String prefix,
String numAttachments)
throws Exception
FuncTestRpcHandler
massCreateAttachments in interface FuncTestRpcHandlerException
public boolean resetTheme(String token)
throws Exception
FuncTestRpcHandler
resetTheme in interface FuncTestRpcHandlerException
public String getGlobalConfiguredTheme(String token)
throws Exception
FuncTestRpcHandler
getGlobalConfiguredTheme in interface FuncTestRpcHandlerException
public String getConfiguredThemeForSpace(String token,
String spaceKey)
throws Exception
FuncTestRpcHandler
getConfiguredThemeForSpace in interface FuncTestRpcHandlerException
public boolean setGlobalTheme(String token,
String themeKey)
throws Exception
FuncTestRpcHandler
setGlobalTheme in interface FuncTestRpcHandlerthemeKey - - the complete theme key
Exception
public boolean setThemeForSpace(String token,
String spaceKey,
String themeKey)
throws Exception
FuncTestRpcHandler
setThemeForSpace in interface FuncTestRpcHandlerspaceKey - - the key of the space to changethemeKey - - the complete theme key
Exception
public boolean clearCustomHtml(String token)
throws Exception
FuncTestRpcHandler
clearCustomHtml in interface FuncTestRpcHandlerException
public boolean uninstallPlugin(String token,
String pluginKey)
throws NotPermittedException
FuncTestRpcHandler
uninstallPlugin in interface FuncTestRpcHandlerNotPermittedException
public boolean isPluginInstalled(String token,
String pluginKey)
throws NotPermittedException
FuncTestRpcHandler
isPluginInstalled in interface FuncTestRpcHandlerNotPermittedException
public boolean disablePlugin(String token,
String pluginKey)
throws NotPermittedException
FuncTestRpcHandler
disablePlugin in interface FuncTestRpcHandlerNotPermittedException
public boolean enablePlugin(String token,
String pluginKey)
throws NotPermittedException
FuncTestRpcHandler
enablePlugin in interface FuncTestRpcHandlerNotPermittedException
public boolean enablePluginModule(String token,
String pluginKey,
String moduleKey)
throws NotPermittedException
FuncTestRpcHandler
enablePluginModule in interface FuncTestRpcHandlerpluginKey - the key of the pluginmoduleKey - the key of the module
NotPermittedException
public boolean disablePluginModule(String token,
String pluginKey,
String moduleKey)
throws NotPermittedException
FuncTestRpcHandler
disablePluginModule in interface FuncTestRpcHandlerpluginKey - the key of the pluginmoduleKey - the key of the module
NotPermittedException
public boolean isSpringComponentPresent(String token,
String name)
FuncTestRpcHandler
isSpringComponentPresent in interface FuncTestRpcHandler
public boolean pauseJob(String token,
String jobName)
throws Exception
FuncTestRpcHandler
pauseJob in interface FuncTestRpcHandlerException
public boolean resumeJob(String token,
String jobName)
throws Exception
FuncTestRpcHandler
resumeJob in interface FuncTestRpcHandlerException
public boolean triggerJob(String token,
String jobName)
throws Exception
FuncTestRpcHandler
triggerJob in interface FuncTestRpcHandlerException
public boolean waitForEvent(String token,
String eventClassName,
String timeout,
String timeUnit)
throws Exception
FuncTestRpcHandler
waitForEvent 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.name
Exception
public boolean shutdownQuartz(String token)
throws Exception
FuncTestRpcHandler
shutdownQuartz in interface FuncTestRpcHandlerException
public boolean removeBandanaKey(String token,
String space,
String key)
FuncTestRpcHandler
removeBandanaKey in interface FuncTestRpcHandler
public Vector getContentPropertyKeys(String token,
String entityId)
FuncTestRpcHandler
getContentPropertyKeys in interface FuncTestRpcHandler
public boolean setContentTextProperty(String token,
String entityId,
String key,
String value)
FuncTestRpcHandler
setContentTextProperty in interface FuncTestRpcHandler
public String getPersonalInformationId(String token,
String username)
FuncTestRpcHandler
getPersonalInformationId in interface FuncTestRpcHandler
public boolean removePersonalInformation(String token,
String username)
throws NotPermittedException
FuncTestRpcHandler
removePersonalInformation in interface FuncTestRpcHandlerusername - user whose personalInformation will be removed
NotPermittedException
public String getLocaleForUser(String token,
String username)
FuncTestRpcHandler
getLocaleForUser in interface FuncTestRpcHandler
public boolean setLocaleForUser(String token,
String username,
String locale)
throws RemoteException
FuncTestRpcHandler
setLocaleForUser in interface FuncTestRpcHandlerRemoteException
public boolean setUserDetails(String token,
String username,
String fullName,
String email)
throws RemoteException
FuncTestRpcHandler
setUserDetails in interface FuncTestRpcHandlerRemoteException - if the user was not found.
public boolean putStringMappingInCache(String token,
String cacheName,
String key,
String value)
throws Exception
FuncTestRpcHandler
putStringMappingInCache in interface FuncTestRpcHandlerException
public Hashtable getCacheStatistics(String token,
String cacheName)
throws Exception
FuncTestRpcHandler
getCacheStatistics in interface FuncTestRpcHandlercacheName - the key of the cache, rather than the "niceName"
Exception
public boolean flushAllCaches(String token)
throws Exception
FuncTestRpcHandler
flushAllCaches in interface FuncTestRpcHandlerException
public boolean enableWebSudo(String token,
boolean enabled)
throws Exception
FuncTestRpcHandler
enableWebSudo in interface FuncTestRpcHandlerException
public boolean setWebSudoTimeout(String token,
int timeout)
throws Exception
FuncTestRpcHandler
setWebSudoTimeout in interface FuncTestRpcHandlerException
public boolean startActivity(String key,
String user)
throws Exception
FuncTestRpcHandler
startActivity in interface FuncTestRpcHandlerException
public boolean setKeyboardShortcutPref(String token,
String username,
String enabled)
throws RemoteException
FuncTestRpcHandler
setKeyboardShortcutPref in interface FuncTestRpcHandlerRemoteException
public boolean setWatchOwnContentPref(String token,
String username,
String enabled)
throws RemoteException
FuncTestRpcHandler
setWatchOwnContentPref in interface FuncTestRpcHandlerRemoteException
public boolean setWatchSpace(String token,
String username,
String spaceKey,
String contentType,
String enabled)
throws RemoteException
FuncTestRpcHandler
setWatchSpace in interface FuncTestRpcHandlerRemoteException
public Vector getUsersForActivity(String key)
throws Exception
FuncTestRpcHandler
getUsersForActivity in interface FuncTestRpcHandlerException
public boolean setSharedMode(String token,
boolean set)
throws Exception
setSharedMode in interface FuncTestRpcHandlerException
public boolean setEnableJavascriptTop(String token,
boolean set)
FuncTestRpcHandler
setEnableJavascriptTop in interface FuncTestRpcHandler
public 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 #waitForEvent(String, String, String) to block until the event
is published.
registerEventListener in interface FuncTestRpcHandlerException
public boolean unregisterEventListener(String token,
String eventClassName)
throws Exception
FuncTestRpcHandler
unregisterEventListener in interface FuncTestRpcHandlerException
public boolean clearEventListeners(String token)
throws Exception
FuncTestRpcHandler
clearEventListeners in interface FuncTestRpcHandlerException
public boolean removeMailServer(String token,
String serverName)
throws Exception
FuncTestRpcHandler
removeMailServer in interface FuncTestRpcHandlertoken - the rpc authentication tokenserverName - the name of the server to be removed.
Exception
public String getLeastRecentTestAppenderLogMessage(String token,
String className)
getLeastRecentTestAppenderLogMessage in interface FuncTestRpcHandler
public boolean registerTestAppenderForClass(String token,
String className)
registerTestAppenderForClass in interface FuncTestRpcHandler
public boolean unregisterTestAppenderForClass(String token,
String className)
unregisterTestAppenderForClass in interface FuncTestRpcHandler
public boolean logTestMessageForClass(String token,
String className,
String message,
String level)
logTestMessageForClass in interface FuncTestRpcHandler
public String getLocalisedText(String token,
String messageKey)
FuncTestRpcHandler
getLocalisedText in interface FuncTestRpcHandlertoken - the rpc authentication tokenmessageKey - the i18n message key
public boolean removeUserUncleanly(String token,
String username)
throws Exception
FuncTestRpcHandler
removeUserUncleanly in interface FuncTestRpcHandlerException
public boolean doesDraftExist(String token,
String contentId,
String owner,
String draftType)
FuncTestRpcHandler
doesDraftExist 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 for
public Hashtable createDraft(String token,
Hashtable draft)
FuncTestRpcHandler
createDraft 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.
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)
FuncTestRpcHandler
updateDraft 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)
FuncTestRpcHandler
removeDrafts in interface FuncTestRpcHandlertoken - rpc authentication tokenusername - user to remove drafts for
public boolean clearQueue(String token,
String queueName)
FuncTestRpcHandler
clearQueue in interface FuncTestRpcHandler
public int getQueueSize(String token,
String queueName)
FuncTestRpcHandler
getQueueSize in interface FuncTestRpcHandler
public boolean addUserAnyCase(String token,
String username,
String email,
String fullname,
String password)
throws RemoteException
FuncTestRpcHandler
addUserAnyCase in interface FuncTestRpcHandlerNotPermittedException - if you do not have permissions to add the user.
RemoteException
public boolean addGroupAnyCase(String token,
String groupname)
throws RemoteException
FuncTestRpcHandler
addGroupAnyCase in interface FuncTestRpcHandlergroupname - the name of the group to add
RemoteException
public boolean changeSpaceCreatedDate(String token,
String spaceKey,
Date createdDate)
throws RemoteException
FuncTestRpcHandler
changeSpaceCreatedDate in interface FuncTestRpcHandlerspaceKey - the space key of the space to change the created date
RemoteException
public boolean changeCommentCreatedDate(String token,
String commentId,
Date createdDate)
throws RemoteException
FuncTestRpcHandler
changeCommentCreatedDate in interface FuncTestRpcHandlerRemoteException
public boolean changePageCreatedDate(String token,
String pageId,
Date createdDate)
throws RemoteException
FuncTestRpcHandler
changePageCreatedDate in interface FuncTestRpcHandlerpageId - the page id of the page to change the created date
RemoteException
public boolean changeAttachmentCreatedDate(String token,
String contentId,
String attachmentFileName,
Date createdDate)
throws RemoteException
FuncTestRpcHandler
changeAttachmentCreatedDate 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 date
RemoteException
public boolean changeBlogPostModificationDate(String token,
String blogId,
Date modificationDate)
throws RemoteException
FuncTestRpcHandler
changeBlogPostModificationDate in interface FuncTestRpcHandlerblogId - the id of the blog to modifymodificationDate - the last modification date to be set.
RemoteException
public boolean changePageModificationDate(String token,
String pageId,
Date modificationDate)
throws RemoteException
FuncTestRpcHandler
changePageModificationDate in interface FuncTestRpcHandlerpageId - the page id of the page to change the modification datemodificationDate - the last modification date to be set.
RemoteException
public int getVersionForPage(String token,
String pageId)
throws RemoteException
FuncTestRpcHandler
getVersionForPage in interface FuncTestRpcHandlerRemoteException
public boolean saveDateFormat(String token,
String dateFormat)
saveDateFormat in interface FuncTestRpcHandler
public boolean saveDateTimeFormat(String token,
String dateTimeFormat)
saveDateTimeFormat in interface FuncTestRpcHandler
public boolean addMailServer(String token,
String name,
String from,
String subjectPrefix,
String hostname,
int port)
addMailServer in interface FuncTestRpcHandler
public boolean addMailServer(String token,
String name,
String from,
String subjectPrefix,
String hostname,
int port,
String fromName)
addMailServer in interface FuncTestRpcHandler
public String convertMarkupToXhtml(String token,
String wikiMarkup,
String pageId)
FuncTestRpcHandler
convertMarkupToXhtml in interface FuncTestRpcHandler
public String convertXhtmlToMarkup(String token,
String xhtml,
String pageId)
FuncTestRpcHandler
convertXhtmlToMarkup in interface FuncTestRpcHandlerpublic void setFuncTestRpcImpl(FuncTestRpcHandler funcTestRpcImpl)
public boolean removeAllJohnsonEvents(String token)
FuncTestRpcHandler
removeAllJohnsonEvents in interface FuncTestRpcHandler
public boolean setCaptchaMode(String token,
boolean enable)
FuncTestRpcHandler
setCaptchaMode in interface FuncTestRpcHandler
public boolean setCaptchaDebugMode(String token,
boolean enable)
FuncTestRpcHandlerCaptchaManager.setDebugMode(boolean).
setCaptchaDebugMode in interface FuncTestRpcHandler
public boolean createJohnsonEvent(String token,
String message)
FuncTestRpcHandlerConfluenceJohnsonFilter.
createJohnsonEvent in interface FuncTestRpcHandlermessage - the description of the event to create
public Boolean setSystemProperty(String token,
String name,
String value)
FuncTestRpcHandler
setSystemProperty in interface FuncTestRpcHandlername - the name of the propertyvalue - the value of the property
public boolean clearIndex(String token)
FuncTestRpcHandler
clearIndex in interface FuncTestRpcHandler
public boolean resetGlobalPermissions(String token)
throws RemoteException
FuncTestRpcHandler
resetGlobalPermissions in interface FuncTestRpcHandlerRemoteExceptionSpacePermission.getDefaultGlobalPermissions()
public boolean restoreAbstractPage(String token,
String abstractPageId)
FuncTestRpcHandler
restoreAbstractPage in interface FuncTestRpcHandler
public String getIdOfPagePermission(String token,
String contentId,
String permissionType,
String username)
getIdOfPagePermission in interface FuncTestRpcHandler
public int createTestUsers(String token,
int count)
FuncTestRpcHandler
createTestUsers in interface FuncTestRpcHandler
public int removeTestUsers(String token,
int count)
FuncTestRpcHandler
removeTestUsers in interface FuncTestRpcHandler
public 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
FuncTestRpcHandler
createUserMacro 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 Browser
NotPermittedException
public boolean removeUserMacro(String token,
String name)
throws NotPermittedException
FuncTestRpcHandler
removeUserMacro in interface FuncTestRpcHandlerNotPermittedException
public boolean setApplicationConfigProperty(String token,
String propertyKey,
String propertyValue)
FuncTestRpcHandlerApplicationConfiguration instance.
setApplicationConfigProperty in interface FuncTestRpcHandler
public Object getApplicationConfigProperty(String token,
String propertyKey)
FuncTestRpcHandlerApplicationConfiguration instance.
getApplicationConfigProperty in interface FuncTestRpcHandlerpropertyKey
public boolean followUser(String token,
String userName,
boolean followUser)
throws RemoteException
FuncTestRpcHandler
followUser in interface FuncTestRpcHandlerfollowUser - true to follow a user, false to stop following
RemoteException
public boolean setUserStatus(String token,
String wikiStatus)
throws Exception
FuncTestRpcHandler
setUserStatus in interface FuncTestRpcHandlerwikiStatus - the status string in wiki markup.
Exception
public boolean synchroniseUserDirectories(String token)
throws Exception
FuncTestRpcHandler
synchroniseUserDirectories in interface FuncTestRpcHandlerException
public boolean setDirectoryPasswordEncoder(String token,
String directoryName,
String encoder)
throws Exception
FuncTestRpcHandler
setDirectoryPasswordEncoder in interface FuncTestRpcHandlerExceptionpublic int getNumberOfIndexTasksInQueue(String token)
FuncTestRpcHandler
getNumberOfIndexTasksInQueue in interface FuncTestRpcHandler
public boolean addExistingProfilePicture(String token,
String userName,
String fileName)
throws Exception
FuncTestRpcHandler
addExistingProfilePicture in interface FuncTestRpcHandleruserName - the user name of the profilefileName - file name of the picture
Exception
public boolean setBooleanUserPreference(String token,
String userName,
String preferenceKey,
String value)
throws RemoteException
FuncTestRpcHandler
setBooleanUserPreference 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 preference
RemoteException
public boolean setStringUserPreference(String token,
String userName,
String preferenceKey,
String value)
throws RemoteException
FuncTestRpcHandler
setStringUserPreference in interface FuncTestRpcHandleruserName - the user name to set the preference forpreferenceKey - the key of the preference to setvalue - a string to set as the preference
RemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||