Class SecureAdminCommand

  • All Implemented Interfaces:
    AdminCommand
    Direct Known Subclasses:
    DisableSecureAdminCommand, EnableSecureAdminCommand

    public abstract class SecureAdminCommand
    extends Object
    implements AdminCommand
    Provides common behavior for the enable and disable secure admin commands.

    This class, and the concrete subclasses EnableSecureAdminCommand and DisableSecureAdminComment, define what must be done in terms of steps. Each step has enable work and disable work. This class builds arrays of steps, one array which operates at the domain level and one which operates at the config level. The enable work of these steps is run in order through the array to fully enable secure admin, and the disable work of these steps are run in REVERSE order to fully disable secure admin.

    I have defined the steps and their enable and disable work here, together in some inner classes, rather than separately in the EnableSecureAdminCommand and DisableSecureAdminCommand classes to try to keep common details together. The concrete subclasses can override a few methods, in particular overriding methods which return an Iterator over the steps to be performed. This way we have a single array of all the steps, with each class returning a forward-running or reverse-running iterator over those steps.

    Author:
    Tim Quinn
    • Constructor Detail

      • SecureAdminCommand

        public SecureAdminCommand()