|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FuncTestRpcHandler
Method Summary | |
---|---|
boolean |
addGroupAnyCase(java.lang.String token,
java.lang.String groupname)
Allows addition of a group without enforcing that the name be all lower case. |
boolean |
addMailServer(java.lang.String token,
java.lang.String name,
java.lang.String from,
java.lang.String subjectPrefix,
java.lang.String hostname,
int port)
|
boolean |
addUserAnyCase(java.lang.String token,
java.lang.String username,
java.lang.String email,
java.lang.String fullname,
java.lang.String password)
Allows addition of a user without enforcing that the username be all lower case. |
boolean |
changeBlogPostModifiedDate(java.lang.String token,
java.lang.String blogId,
java.util.Date modifiedDate)
Change the modified date of a blog post |
boolean |
changeCommentCreatedDate(java.lang.String token,
java.lang.String commentId,
java.util.Date createdDate)
Change the created date of a comment |
java.lang.String |
changeLoggerLevel(java.lang.String token,
java.lang.String loggerName,
java.lang.String level)
Change the level of the specified logger. |
boolean |
changePageCreatedDate(java.lang.String token,
java.lang.String pageId,
java.util.Date createdDate)
Change the created date of a page |
boolean |
changePageModificationDate(java.lang.String token,
java.lang.String pageId,
java.util.Date modificationDate)
Change the modification date of a page |
boolean |
changeSpaceCreatedDate(java.lang.String token,
java.lang.String spaceKey,
java.util.Date createdDate)
Change the created date of a space |
boolean |
clearQueue(java.lang.String token,
java.lang.String queueName)
Removes all items from the specified queue |
java.lang.String |
convertMarkupToXhtml(java.lang.String token,
java.lang.String wikiMarkup,
java.lang.String pageId)
Render a page as XHTML. |
java.lang.String |
convertXhtmlToMarkup(java.lang.String token,
java.lang.String xhtml,
java.lang.String pageId)
Convert XHTML to WikiMarkup. |
boolean |
createDraft(java.lang.String token,
java.lang.String draftOwner,
java.lang.String draftType,
java.lang.String title,
java.lang.String content)
Creates a draft for the draft owner and draft type with the specified title and content. |
boolean |
createJohnsonEvent(java.lang.String token,
java.lang.String message)
Creates a Johnson event inside Confluence. |
boolean |
disconnectGroup(java.lang.String token,
java.lang.String groupName)
Disconnect a group from Confluence. |
boolean |
disconnectUser(java.lang.String token,
java.lang.String username)
Disconnect a user from Confluence. |
boolean |
doesDraftExist(java.lang.String token,
java.lang.String contentId,
java.lang.String owner,
java.lang.String draftType)
Determines if a draft of the specified type and belonging to the specified owner exists. |
boolean |
flushAllCaches(java.lang.String token)
Flushes all the caches. |
java.lang.String |
getConfiguredThemeForSpace(java.lang.String token,
java.lang.String spaceKey)
Get the key of the configured theme for a space, whether or not that theme exists. |
java.util.Vector |
getContentPropertyKeys(java.lang.String token,
java.lang.String entityId)
Get the content property keys for a content entity given its id |
java.lang.String |
getGlobalConfiguredTheme(java.lang.String token)
Get the key of the configured global theme, whether or not that theme exists. |
java.lang.String |
getLeastRecentTestAppenderLogMessage(java.lang.String token,
java.lang.String className)
|
java.lang.String |
getLocalisedText(java.lang.String token,
java.lang.String messageKey)
Get the localised string for given the message key in the logged-in user's locale. |
java.lang.String |
getPersonalInformationId(java.lang.String token,
java.lang.String username)
Gets the personal information id for a given username |
int |
getQueueSize(java.lang.String token,
java.lang.String queueName)
Returns the size of the task queue with the specified name. |
java.util.Vector |
getRecentEvents(java.lang.String token)
Returns a vector of class names from the last 10 events fired. |
java.util.Vector |
getUsersForActivity(java.lang.String key)
Call getUsersForActivity on the heartbeatManager bean |
int |
getVersionForPage(java.lang.String token,
java.lang.String pageId)
Get the version number for the page with pageId |
boolean |
isCurrentApplicationSet(java.lang.String token)
Check whether or not the trustedApplicationManager has its currentApplication set. |
boolean |
isSpringComponentPresent(java.lang.String token,
java.lang.String name)
Returns true if a Spring component with the given name exists in the application context. |
boolean |
logMessage(java.lang.String token,
java.lang.String destination,
java.lang.String message)
Log a message to the server's console. |
boolean |
logTestMessageForClass(java.lang.String token,
java.lang.String className,
java.lang.String message,
java.lang.String level)
|
boolean |
massCreateAttachments(java.lang.String token,
java.lang.String pageId,
java.lang.String prefix,
java.lang.String numAttachments)
Create a whole series of attachments on a single page. |
boolean |
nukeSpacesAndFlushEverything(java.lang.String token)
Kill all the spaces and flush all the queues and caches. |
boolean |
nukeUserAndGroupDependentObjects(java.lang.String token)
Remove the dependencies of all users and groups, except the default dependencies of the default groups and the current user. |
boolean |
pauseJob(java.lang.String token,
java.lang.String jobName)
Pauses a named job in the quartz scheduler |
boolean |
putStringMappingInCache(java.lang.String token,
java.lang.String cacheName,
java.lang.String key,
java.lang.String value)
Map a key to a value for a given cache. |
boolean |
registerTestAppenderForClass(java.lang.String token,
java.lang.String className)
|
boolean |
removeAllGroupsExceptDefaults(java.lang.String token)
Remove all groups aside from the default Confluence groups |
boolean |
removeAllJohnsonEvents(java.lang.String token)
Removes all Johnson events from Confluence |
boolean |
removeAllOtherUsers(java.lang.String token)
Remove all users except the current user. |
boolean |
removeBandanaKey(java.lang.String token,
java.lang.String space,
java.lang.String key)
Remove a key from Bandana |
boolean |
removeDrafts(java.lang.String token,
java.lang.String username)
Removes all drafts owned by the specified User. |
boolean |
removeMailServer(java.lang.String token,
java.lang.String serverName)
Remove the named mail server. |
boolean |
removeUserUncleanly(java.lang.String token,
java.lang.String username)
Remove a User without removing the things that refer to that user. |
boolean |
resetTheme(java.lang.String token)
Reset the global theme to the default theme. |
boolean |
resumeJob(java.lang.String token,
java.lang.String jobName)
Resumes a named job in the quartz scheduler |
boolean |
saveDateFormat(java.lang.String token,
java.lang.String dateFormat)
|
boolean |
saveDateTimeFormat(java.lang.String token,
java.lang.String dateTimeFormat)
|
boolean |
setCaptchaMode(java.lang.String token,
boolean enable)
Sets the captcha manager |
boolean |
setContentTextProperty(java.lang.String token,
java.lang.String entityId,
java.lang.String key,
java.lang.String value)
Sets a text content property for a content entity given its id |
boolean |
setLocaleForUser(java.lang.String token,
java.lang.String username,
java.lang.String locale)
Sets the locale preference for the user to the given named locale. |
boolean |
setSharedMode(java.lang.String token,
boolean set)
|
boolean |
shutdownQuartz(java.lang.String token)
Shutdown the quartz scheduler to ensure single threadedness for testing |
boolean |
startActivity(java.lang.String key,
java.lang.String user)
Call startActivity on the heartbeatManager bean |
boolean |
triggerJob(java.lang.String token,
java.lang.String jobName)
Triggers a named job in the quartz scheduler synchronously. |
boolean |
unregisterTestAppenderForClass(java.lang.String token,
java.lang.String className)
|
boolean |
updateDraft(java.lang.String token,
java.lang.String draftOwner,
java.lang.String draftType,
java.lang.String title,
java.lang.String content)
Updates a draft located using the draft owner and draft type. |
boolean |
waitForEvent(java.lang.String token,
java.lang.String eventClassName,
int timeout)
Waits for an event to occur and returns when it has finished. |
Method Detail |
---|
boolean logMessage(java.lang.String token, java.lang.String destination, java.lang.String message) throws RemoteException
token
- The token idenfitying the user.destination
- The destination of the message to be loggedmessage
- The text message to be logged to the console
RemoteException
java.lang.String changeLoggerLevel(java.lang.String token, java.lang.String loggerName, java.lang.String level) throws RemoteException
Change the level of the specified logger.
The level parameter can be one of -
token
- 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
boolean nukeSpacesAndFlushEverything(java.lang.String token) throws RemoteException
RemoteException
boolean nukeUserAndGroupDependentObjects(java.lang.String token) throws RemoteException
RemoteException
boolean removeAllOtherUsers(java.lang.String token) throws RemoteException
RemoteException
boolean removeAllGroupsExceptDefaults(java.lang.String token) throws RemoteException
RemoteException
boolean disconnectUser(java.lang.String token, java.lang.String username) throws RemoteException
RemoteException
boolean disconnectGroup(java.lang.String token, java.lang.String groupName) throws RemoteException
RemoteException
boolean isCurrentApplicationSet(java.lang.String token) throws NotPermittedException
NotPermittedException
boolean massCreateAttachments(java.lang.String token, java.lang.String pageId, java.lang.String prefix, java.lang.String numAttachments) throws java.lang.Exception
java.lang.Exception
boolean resetTheme(java.lang.String token) throws java.lang.Exception
java.lang.Exception
java.lang.String getGlobalConfiguredTheme(java.lang.String token) throws java.lang.Exception
java.lang.Exception
java.lang.String getConfiguredThemeForSpace(java.lang.String token, java.lang.String spaceKey) throws java.lang.Exception
java.lang.Exception
java.util.Vector getRecentEvents(java.lang.String token) throws java.lang.Exception
java.lang.Exception
boolean isSpringComponentPresent(java.lang.String token, java.lang.String name)
boolean pauseJob(java.lang.String token, java.lang.String jobName) throws java.lang.Exception
java.lang.Exception
boolean resumeJob(java.lang.String token, java.lang.String jobName) throws java.lang.Exception
java.lang.Exception
boolean triggerJob(java.lang.String token, java.lang.String jobName) throws java.lang.Exception
java.lang.Exception
boolean waitForEvent(java.lang.String token, java.lang.String eventClassName, int timeout) throws java.lang.Exception
eventClassName
- the fully qualified classname of the event to wait for.timeout
- number of milliseconds to wait for the event before giving up completely.
java.lang.Exception
boolean shutdownQuartz(java.lang.String token) throws java.lang.Exception
java.lang.Exception
boolean removeBandanaKey(java.lang.String token, java.lang.String space, java.lang.String key)
java.util.Vector getContentPropertyKeys(java.lang.String token, java.lang.String entityId)
boolean setContentTextProperty(java.lang.String token, java.lang.String entityId, java.lang.String key, java.lang.String value)
java.lang.String getPersonalInformationId(java.lang.String token, java.lang.String username)
boolean setLocaleForUser(java.lang.String token, java.lang.String username, java.lang.String locale) throws RemoteException
RemoteException
boolean putStringMappingInCache(java.lang.String token, java.lang.String cacheName, java.lang.String key, java.lang.String value) throws java.lang.Exception
java.lang.Exception
boolean flushAllCaches(java.lang.String token) throws java.lang.Exception
java.lang.Exception
boolean startActivity(java.lang.String key, java.lang.String user) throws java.lang.Exception
java.lang.Exception
java.util.Vector getUsersForActivity(java.lang.String key) throws java.lang.Exception
java.lang.Exception
boolean setSharedMode(java.lang.String token, boolean set) throws java.lang.Exception
java.lang.Exception
boolean removeUserUncleanly(java.lang.String token, java.lang.String username) throws java.lang.Exception
java.lang.Exception
boolean doesDraftExist(java.lang.String token, java.lang.String contentId, java.lang.String owner, java.lang.String draftType)
token
- 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
boolean createDraft(java.lang.String token, java.lang.String draftOwner, java.lang.String draftType, java.lang.String title, java.lang.String content)
token
- rpc authentication tokendraftOwner
- owner/author of the draftdraftType
- type of content this draft is fortitle
- update draft to this titlecontent
- update this draft to this content
boolean updateDraft(java.lang.String token, java.lang.String draftOwner, java.lang.String draftType, java.lang.String title, java.lang.String content)
token
- rpc authentication tokendraftOwner
- owner/author of the draftdraftType
- type of content this draft is fortitle
- update draft to this titlecontent
- update this draft to this content
boolean removeDrafts(java.lang.String token, java.lang.String username)
token
- rpc authentication tokenusername
- user to remove drafts for
boolean clearQueue(java.lang.String token, java.lang.String queueName)
int getQueueSize(java.lang.String token, java.lang.String queueName)
boolean removeMailServer(java.lang.String token, java.lang.String serverName)
token
- the rpc authentication tokenserverName
- the name of the server to be removed.
java.lang.String getLeastRecentTestAppenderLogMessage(java.lang.String token, java.lang.String className)
boolean registerTestAppenderForClass(java.lang.String token, java.lang.String className)
boolean unregisterTestAppenderForClass(java.lang.String token, java.lang.String className)
boolean logTestMessageForClass(java.lang.String token, java.lang.String className, java.lang.String message, java.lang.String level)
java.lang.String getLocalisedText(java.lang.String token, java.lang.String messageKey)
token
- the rpc authentication tokenmessageKey
- the i18n message key
boolean addUserAnyCase(java.lang.String token, java.lang.String username, java.lang.String email, java.lang.String fullname, java.lang.String password) throws RemoteException
NotPermittedException
- if you do not have permissions to add the user.
RemoteException
boolean addGroupAnyCase(java.lang.String token, java.lang.String groupname) throws RemoteException
groupname
- the name of the group to add
RemoteException
boolean changeSpaceCreatedDate(java.lang.String token, java.lang.String spaceKey, java.util.Date createdDate) throws RemoteException
spaceKey
- the space key of the space to change the created date
RemoteException
boolean changeCommentCreatedDate(java.lang.String token, java.lang.String commentId, java.util.Date createdDate) throws RemoteException
RemoteException
boolean changePageCreatedDate(java.lang.String token, java.lang.String pageId, java.util.Date createdDate) throws RemoteException
pageId
- the page id of the page to change the created date
RemoteException
boolean changeBlogPostModifiedDate(java.lang.String token, java.lang.String blogId, java.util.Date modifiedDate) throws RemoteException
token
- blogId
- the id of the blog to modifymodifiedDate
- the last modification date to be set.
RemoteException
boolean changePageModificationDate(java.lang.String token, java.lang.String pageId, java.util.Date modificationDate) throws RemoteException
token
- pageId
- the page id of the page to change the modification datemodificationDate
- the last modification date to be set.
RemoteException
int getVersionForPage(java.lang.String token, java.lang.String pageId) throws RemoteException
RemoteException
boolean saveDateFormat(java.lang.String token, java.lang.String dateFormat)
boolean saveDateTimeFormat(java.lang.String token, java.lang.String dateTimeFormat)
boolean addMailServer(java.lang.String token, java.lang.String name, java.lang.String from, java.lang.String subjectPrefix, java.lang.String hostname, int port)
java.lang.String convertMarkupToXhtml(java.lang.String token, java.lang.String wikiMarkup, java.lang.String pageId)
java.lang.String convertXhtmlToMarkup(java.lang.String token, java.lang.String xhtml, java.lang.String pageId)
boolean createJohnsonEvent(java.lang.String token, java.lang.String message)
ConfluenceJohnsonFilter
.
message
- the description of the event to createboolean removeAllJohnsonEvents(java.lang.String token)
boolean setCaptchaMode(java.lang.String token, boolean enable)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |