Class AbstractMigrationAction

java.lang.Object
org.apache.struts2.ActionSupport
com.atlassian.bamboo.ww2.BambooActionSupport
com.atlassian.bamboo.configuration.GlobalAdminAction
com.atlassian.bamboo.ww2.actions.admin.migration.AbstractMigrationAction
All Implemented Interfaces:
JsonStreamingAction, ErrorCollection, BambooSessionAware, NavigationAware, DomainObjectSecurityAware, GlobalAdminSecurityAware, GlobalReadSecurityAware, ReturnUrlAware, UserAware, com.atlassian.core.i18n.I18nTextProvider, Serializable, org.apache.struts2.action.Action, org.apache.struts2.interceptor.ValidationAware, org.apache.struts2.locale.LocaleProvider, org.apache.struts2.text.TextProvider, org.apache.struts2.Validateable
Direct Known Subclasses:
Backup, Export, Import

public abstract class AbstractMigrationAction extends GlobalAdminAction
See Also:
  • Constructor Details

    • AbstractMigrationAction

      public AbstractMigrationAction()
  • Method Details

    • isPathManipulationAllowed

      public boolean isPathManipulationAllowed()
    • getCanonicalFileName

      @NotNull protected @NotNull String getCanonicalFileName(@NotNull @NotNull String path, @NotNull @NotNull String filename)
    • getDefaultMigrationLocation

      public abstract String getDefaultMigrationLocation()
    • validateFileExists

      protected boolean validateFileExists(@NotNull @NotNull String path, @NotNull @NotNull String pathField)
    • validateDirectoryExists

      protected boolean validateDirectoryExists(@NotNull @NotNull String path, @NotNull @NotNull String pathField)
    • validateMigrationLocation

      protected boolean validateMigrationLocation(@NotNull @NotNull String path, @NotNull @NotNull String pathField, @NotNull @NotNull String filename, @NotNull @NotNull String fileField)
    • validatePathIfSetByUser

      protected void validatePathIfSetByUser(String path, String fieldName)