public class UpgradeTask51006PersistAnonymousAccessStatus extends AbstractUpgradeTask
FileBasedPersister.ADMIN_CONFIG_FILE
file on Bamboo home directory.
This is accessed by AdministrationConfigurationAccessor
.
The configuration setting on file was declared in the file with the default value - enabled for Server, disabled for Cloud - but was never updated
when the user changed the setting though Global Permissions view.
This upgrade tasks persist the existing configuration, and was implemented as part of the NPS feature wor,
as NPS survey is not displayed if anonymous access is on.Modifier and Type | Field and Description |
---|---|
protected static String |
ROLE_ANONYMOUS |
errors
Modifier | Constructor and Description |
---|---|
protected |
UpgradeTask51006PersistAnonymousAccessStatus() |
Modifier and Type | Method and Description |
---|---|
void |
doUpgrade()
Perform the upgrade.
|
protected boolean |
isAnonymousAccessAllowed(String permissionName,
String authority) |
protected void |
persistAnonymousAccessConfiguration(boolean isEnabled) |
getBuildNumber, getErrors, getShortDescription
protected static final String ROLE_ANONYMOUS
protected UpgradeTask51006PersistAnonymousAccessStatus()
public void doUpgrade() throws Exception
UpgradeTask
Exception
- to signalize error during upgrade processprotected boolean isAnonymousAccessAllowed(String permissionName, String authority)
protected void persistAnonymousAccessConfiguration(boolean isEnabled)
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.