com.atlassian.confluence.it.admin
Class EditSecurityConfiguration

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

public class EditSecurityConfiguration
extends Object


Method Summary
 ViewSecurityConfiguration cancel()
           
static EditSecurityConfiguration editConfigurationFromAnywhere(net.sourceforge.jwebunit.junit.WebTester webTester)
          Factory method to visit the edit configuration screen from anywhere.
protected static EditSecurityConfiguration editConfigurationFromView(net.sourceforge.jwebunit.junit.WebTester webTester)
          Factory method to visit the edit configuration screen from the view page.
 String getExpectedRssTimeoutInvalidMessage()
           
 String getExpectedTitle()
           
 int getLoginAttemptsThreshold()
           
 int getMaxRssItems()
           
 int getRssTimeout()
           
 String getRssTimeoutError()
           
 boolean isAddWildcardsToUserAndGroupSearchesEnabled()
           
 boolean isAntiXssModeEnabled()
           
 boolean isEventedSecurityCheckEnabled()
           
 boolean isExternalUserManagementEnabled()
           
 boolean isPublicSignupEnabled()
           
 boolean isShowSystemInfoIn500PageEnabled()
           
 boolean isSpaceStylesEnabled()
           
 boolean isWebSudoEnabled()
           
 boolean isXsrfAddCommmentsEnabled()
           
 EditSecurityConfiguration setAddWildcardsToUserAndGroupSearchesEnabled(boolean enabled)
           
 EditSecurityConfiguration setAnonymousRemoteApiEnabled(boolean enabled)
           
 EditSecurityConfiguration setAntiXssModeEnabled(boolean enabled)
           
 EditSecurityConfiguration setElevatedSecurityCheckEnabled(boolean enabled)
           
 EditSecurityConfiguration setEmailAddressVisibility(String setting)
           
 EditSecurityConfiguration setExternalUserManagement(boolean enabled)
           
 EditSecurityConfiguration setLoginAttemptsThreshold(int loginAttemptsThreshold)
           
 EditSecurityConfiguration setMaxRssItems(int max)
           
 EditSecurityConfiguration setPublicSignupEnabled(boolean enabled)
           
 EditSecurityConfiguration setRssTimeout(int timeout)
           
 EditSecurityConfiguration setRssTimeoutString(String timeout)
           
 EditSecurityConfiguration setShowSystemInfoIn500PageEnabled(boolean enabled)
           
 EditSecurityConfiguration setSpaceStylesEnabled(boolean enabled)
           
 EditSecurityConfiguration setWebSudoEnabled(boolean enabled)
           
 EditSecurityConfiguration setWebSudoTimeout(long timeout)
           
 EditSecurityConfiguration setXsrfAddCommentsEnabled(boolean enabled)
           
 void submit()
          Submit and don't construct a new state.
 EditSecurityConfiguration submitAndReEdit()
          Submit and immediately click edit so that more editing can be done.
 ViewSecurityConfiguration submitAndView()
           
 EditSecurityConfiguration submitExpectingErrors()
          Submit, expecting that we'll be taken back to the edit page and that there will be errors shown.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

editConfigurationFromAnywhere

public static EditSecurityConfiguration editConfigurationFromAnywhere(net.sourceforge.jwebunit.junit.WebTester webTester)
Factory method to visit the edit configuration screen from anywhere.

Parameters:
webTester - must be logged in as a user with administrative privileges.
Returns:
a new EditSecurityConfiguration ready to use.

editConfigurationFromView

protected static EditSecurityConfiguration editConfigurationFromView(net.sourceforge.jwebunit.junit.WebTester webTester)
Factory method to visit the edit configuration screen from the view page.

Parameters:
webTester - must be logged in as a user with administrative privileges and already on the View Security Config page.
Returns:
a new EditSecurityConfiguration ready to use.

getExpectedTitle

public String getExpectedTitle()

submitAndReEdit

public EditSecurityConfiguration submitAndReEdit()
Submit and immediately click edit so that more editing can be done.


submitAndView

public ViewSecurityConfiguration submitAndView()

submitExpectingErrors

public EditSecurityConfiguration submitExpectingErrors()
Submit, expecting that we'll be taken back to the edit page and that there will be errors shown.


submit

public void submit()
Submit and don't construct a new state. Useful in tearDowns when you aren't going to want to do anything with the result.


cancel

public ViewSecurityConfiguration cancel()

setWebSudoEnabled

public EditSecurityConfiguration setWebSudoEnabled(boolean enabled)

setWebSudoTimeout

public EditSecurityConfiguration setWebSudoTimeout(long timeout)

setAntiXssModeEnabled

public EditSecurityConfiguration setAntiXssModeEnabled(boolean enabled)

setExternalUserManagement

public EditSecurityConfiguration setExternalUserManagement(boolean enabled)

isAntiXssModeEnabled

public boolean isAntiXssModeEnabled()

isExternalUserManagementEnabled

public boolean isExternalUserManagementEnabled()

isAddWildcardsToUserAndGroupSearchesEnabled

public boolean isAddWildcardsToUserAndGroupSearchesEnabled()

setAddWildcardsToUserAndGroupSearchesEnabled

public EditSecurityConfiguration setAddWildcardsToUserAndGroupSearchesEnabled(boolean enabled)

isPublicSignupEnabled

public boolean isPublicSignupEnabled()

setPublicSignupEnabled

public EditSecurityConfiguration setPublicSignupEnabled(boolean enabled)

isSpaceStylesEnabled

public boolean isSpaceStylesEnabled()

setSpaceStylesEnabled

public EditSecurityConfiguration setSpaceStylesEnabled(boolean enabled)

isShowSystemInfoIn500PageEnabled

public boolean isShowSystemInfoIn500PageEnabled()

setShowSystemInfoIn500PageEnabled

public EditSecurityConfiguration setShowSystemInfoIn500PageEnabled(boolean enabled)

getMaxRssItems

public int getMaxRssItems()

setMaxRssItems

public EditSecurityConfiguration setMaxRssItems(int max)

getRssTimeout

public int getRssTimeout()

setRssTimeout

public EditSecurityConfiguration setRssTimeout(int timeout)

setRssTimeoutString

public EditSecurityConfiguration setRssTimeoutString(String timeout)

getRssTimeoutError

public String getRssTimeoutError()

getExpectedRssTimeoutInvalidMessage

public String getExpectedRssTimeoutInvalidMessage()

setEmailAddressVisibility

public EditSecurityConfiguration setEmailAddressVisibility(String setting)

setAnonymousRemoteApiEnabled

public EditSecurityConfiguration setAnonymousRemoteApiEnabled(boolean enabled)

isEventedSecurityCheckEnabled

public boolean isEventedSecurityCheckEnabled()

setElevatedSecurityCheckEnabled

public EditSecurityConfiguration setElevatedSecurityCheckEnabled(boolean enabled)

getLoginAttemptsThreshold

public int getLoginAttemptsThreshold()

setLoginAttemptsThreshold

public EditSecurityConfiguration setLoginAttemptsThreshold(int loginAttemptsThreshold)

isXsrfAddCommmentsEnabled

public boolean isXsrfAddCommmentsEnabled()

setXsrfAddCommentsEnabled

public EditSecurityConfiguration setXsrfAddCommentsEnabled(boolean enabled)

isWebSudoEnabled

public boolean isWebSudoEnabled()


Copyright © 2003-2011 Atlassian. All Rights Reserved.