Class SecureAdminUpgradeHelper
- java.lang.Object
-
- com.sun.enterprise.security.admin.cli.SecureAdminUpgradeHelper
-
- Direct Known Subclasses:
SecureAdminConfigUpgrade,SecureAdminStartupCheck
@Service @PerLookup public class SecureAdminUpgradeHelper extends Object
Common logic for formal upgrade (i.e., start-domain --upgrade) and silent upgrade (starting a newer version of GlassFish using an older version's domain.xml).- Author:
- Tim Quinn
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringDAS_CONFIG_NAMEprotected Domaindomainprotected org.glassfish.hk2.api.ServiceLocatorhabitatprotected com.sun.enterprise.module.bootstrap.StartupContextstartupContext
-
Constructor Summary
Constructors Constructor Description SecureAdminUpgradeHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcommit()protected voidensureDASConfigReady()protected voidensureNonDASConfigsReady()protected voidensureSecureAdminReady()protected voidrollback()protected SecureAdminsecureAdmin()protected SecureAdminHelpersecureAdminHelper()protected StringspecialAdminIndicator()protected SSLUtilssslUtils()protected StringstartupArg(String argName)protected Transactiontransaction()protected DomainwritableDomain()protected SecureAdminwritableSecureAdmin()
-
-
-
Field Detail
-
DAS_CONFIG_NAME
protected static final String DAS_CONFIG_NAME
- See Also:
- Constant Field Values
-
domain
@Inject protected Domain domain
-
habitat
@Inject protected org.glassfish.hk2.api.ServiceLocator habitat
-
startupContext
@Inject protected com.sun.enterprise.module.bootstrap.StartupContext startupContext
-
-
Method Detail
-
transaction
protected final Transaction transaction()
-
commit
protected final void commit() throws RetryableException, TransactionFailure- Throws:
RetryableExceptionTransactionFailure
-
rollback
protected final void rollback()
-
specialAdminIndicator
protected final String specialAdminIndicator()
-
secureAdmin
protected final SecureAdmin secureAdmin() throws TransactionFailure
- Throws:
TransactionFailure
-
writableDomain
protected final Domain writableDomain() throws TransactionFailure
- Throws:
TransactionFailure
-
writableSecureAdmin
protected final SecureAdmin writableSecureAdmin() throws TransactionFailure
- Throws:
TransactionFailure
-
secureAdminHelper
protected final SecureAdminHelper secureAdminHelper()
-
sslUtils
protected final SSLUtils sslUtils()
-
ensureSecureAdminReady
protected final void ensureSecureAdminReady() throws TransactionFailure, IOException, KeyStoreException
-
ensureNonDASConfigsReady
protected final void ensureNonDASConfigsReady() throws TransactionFailure- Throws:
TransactionFailure
-
ensureDASConfigReady
protected final void ensureDASConfigReady()
-
-