com.atlassian.confluence.it.admin
Class AdminConsole

java.lang.Object
  extended by com.atlassian.confluence.it.admin.AdminConsole

public class AdminConsole
extends java.lang.Object


Method Summary
 void addSmtpServer(java.lang.String serverName, java.lang.String from, java.lang.String subjectPrefix, java.lang.String hostname, int port)
          Adds a SMTP server to the Confluence configuration
 void editLayout(java.lang.String decoratorName, java.lang.String value)
           
 boolean enableAntiXssMode(boolean enable)
          Enables or disables the auto HTML encoding
 void enableCaptcha(boolean enable)
          Configures captcha for all users, including administrator
static AdminConsole getAdminConsole(net.sourceforge.jwebunit.junit.WebTester webTester)
           
 boolean isAntiXssModeEnabled()
           
 boolean migrateAttachmentStorageToDatabase(boolean nonBackgroundTask)
           
 boolean migrateAttachmentStorageToFileSystem(boolean nonBackgroundTask)
           
 void removeAllSmtpServers()
          Removes all configured SMTP servers from the Confluence configuration
 void resetGlobalLogo()
           
 void resetLayout(java.lang.String decoratorName)
           
 void setGlobalLogo(java.io.File logo)
           
 void updateLicense(License license)
          Change the system's license.
 void viewAdminConsole()
          View the admin console via direct URL request.
 void viewAttachmentStorage()
           
 void viewGlobalLogo()
           
 void viewLayoutsPage()
           
 void viewSystemInformation()
           
 void viewUser(User user)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAdminConsole

public static AdminConsole getAdminConsole(net.sourceforge.jwebunit.junit.WebTester webTester)

viewAdminConsole

public void viewAdminConsole()
View the admin console via direct URL request.


enableCaptcha

public void enableCaptcha(boolean enable)
Configures captcha for all users, including administrator

Parameters:
enable - true to enable captcha, false to disable captcha

enableAntiXssMode

public boolean enableAntiXssMode(boolean enable)
Enables or disables the auto HTML encoding

Returns:
true if auto HTML encoding was enabled, false otherwise

isAntiXssModeEnabled

public boolean isAntiXssModeEnabled()

setGlobalLogo

public void setGlobalLogo(java.io.File logo)

resetGlobalLogo

public void resetGlobalLogo()

viewGlobalLogo

public void viewGlobalLogo()

addSmtpServer

public void addSmtpServer(java.lang.String serverName,
                          java.lang.String from,
                          java.lang.String subjectPrefix,
                          java.lang.String hostname,
                          int port)
Adds a SMTP server to the Confluence configuration

Parameters:
serverName - description of the server for Confluence
from - emails sent via this server will have this value in the from header
subjectPrefix - this prefix will be appended to all mail sent via this server
hostname - the host name of the server to connect to
port - the port of the server to connect to

removeAllSmtpServers

public void removeAllSmtpServers()
Removes all configured SMTP servers from the Confluence configuration


viewAttachmentStorage

public void viewAttachmentStorage()

migrateAttachmentStorageToDatabase

public boolean migrateAttachmentStorageToDatabase(boolean nonBackgroundTask)

migrateAttachmentStorageToFileSystem

public boolean migrateAttachmentStorageToFileSystem(boolean nonBackgroundTask)

viewUser

public void viewUser(User user)

viewSystemInformation

public void viewSystemInformation()

viewLayoutsPage

public void viewLayoutsPage()

editLayout

public void editLayout(java.lang.String decoratorName,
                       java.lang.String value)

resetLayout

public void resetLayout(java.lang.String decoratorName)

updateLicense

public void updateLicense(License license)
Change the system's license. Remember to set it back to the default afterwards.



Copyright © 2003-2009 Atlassian Pty Ltd. All Rights Reserved.