Class PEDomainsManager
- java.lang.Object
-
- com.sun.enterprise.admin.servermgmt.KeystoreManager
-
- com.sun.enterprise.admin.servermgmt.MasterPasswordFileManager
-
- com.sun.enterprise.admin.servermgmt.RepositoryManager
-
- com.sun.enterprise.admin.servermgmt.pe.PEDomainsManager
-
- All Implemented Interfaces:
DomainsManager
public class PEDomainsManager extends RepositoryManager implements DomainsManager
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.sun.enterprise.admin.servermgmt.RepositoryManager
RepositoryManager.RepositoryManagerMessages
-
Nested classes/interfaces inherited from class com.sun.enterprise.admin.servermgmt.KeystoreManager
KeystoreManager.KeytoolExecutor
-
-
Field Summary
Fields Modifier and Type Field Description static StringPROFILEPROPERTY_DOMAINXML_STYLESHEETSstatic StringPROFILEPROPERTY_DOMAINXML_TOKENVALUES-
Fields inherited from class com.sun.enterprise.admin.servermgmt.RepositoryManager
_messages, CERTUTIL_CMD, DEBUG, NEW_LINE
-
Fields inherited from class com.sun.enterprise.admin.servermgmt.KeystoreManager
_fileLayout, CERTIFICATE_ALIAS, DEFAULT_MASTER_PASSWORD, INSTANCE_SECURE_ADMIN_ALIAS
-
-
Constructor Summary
Constructors Constructor Description PEDomainsManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchangeMasterPassword(DomainConfig config)Changes the master password for the domainprotected voidcreateJBIInstance(String instanceName, DomainConfig domainConfig)protected voidcreateScripts(DomainConfig domainConfig)voiddeleteDomain(DomainConfig domainConfig)Deletes a domain identified by the given name.protected FilegetDomainDir(DomainConfig domainConfig)BitSetgetDomainFlags()In SE/EE we need an admin user/password that the DAS can use to authenticate to Node Agents and servers in the domain.protected static StringgetDomainPasswordClear(DomainConfig domainConfig)Returns the domain user's password in cleartext from the domainConfig.protected FilegetDomainRoot(DomainConfig domainConfig)protected static StringgetDomainUser(DomainConfig domainConfig)Returns the domain user from the domainConfig.String[]getExtraPasswordOptions(DomainConfig config)SE/EE supports NSS as its native SSL database.protected static StringgetMasterPasswordClear(DomainConfig domainConfig)protected static StringgetNewMasterPasswordClear(DomainConfig domainConfig)String[]listDomains(DomainConfig domainConfig)Lists all the domains.protected static booleansaveMasterPassword(DomainConfig domainConfig)voidvalidateDomain(DomainConfig domainConfig, boolean domainExists)Changes the master password for the domainvoidvalidateMasterPassword(DomainConfig domainConfig)-
Methods inherited from class com.sun.enterprise.admin.servermgmt.RepositoryManager
changePasswordAliasKeystorePassword, checkRepository, checkRepository, checkRepository, createHttpBCInstallRoot, createJavaEESEInstallRoot, createJBIInstance, createMQInstance, createTimerDbn, createTimerWal, createWSDLSLInstallRoot, deleteRepository, deleteRepository, generateFromTemplate, getClearPasswordForAlias, getConfigForRepositoryStatus, getInteractiveOptions, getMessages, getRepositoryDir, getRepositoryRootDir, isNSSSupportAvailable, isValidRepository, isValidRepository, listRepository, repositoryExists, setMessages, setPermissions, validateMasterPassword
-
Methods inherited from class com.sun.enterprise.admin.servermgmt.MasterPasswordFileManager
changeMasterPasswordInMasterPasswordFile, changeMasterPasswordInMasterPasswordFile, createMasterPasswordFile, deleteMasterPasswordFile, readMasterPasswordFile
-
Methods inherited from class com.sun.enterprise.admin.servermgmt.KeystoreManager
changeKeystorePassword, changeS1ASAliasPassword, changeSSLCertificateDatabasePassword, chmod, copyCertificates, createKeyStore, getCertificateDN, getDASCertDN, getFileLayout, getInstanceCertDN
-
-
-
-
Field Detail
-
PROFILEPROPERTY_DOMAINXML_STYLESHEETS
public static final String PROFILEPROPERTY_DOMAINXML_STYLESHEETS
- See Also:
- Constant Field Values
-
PROFILEPROPERTY_DOMAINXML_TOKENVALUES
public static final String PROFILEPROPERTY_DOMAINXML_TOKENVALUES
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDomainFlags
public BitSet getDomainFlags()
Description copied from interface:DomainsManagerIn SE/EE we need an admin user/password that the DAS can use to authenticate to Node Agents and servers in the domain. This is not the case in PE; hence this flag -- DomainConfig.K_FLAG_START_DOMAIN_NEEDS_ADMIN_USER In SE/EE we need an extra non secure http port to host the Lockhart components which is controlled by -- DomainConfig.K_FLAG_CREATE_DOMAIN_NEEDS_ALTERNATE_ADMIN_PORT- Specified by:
getDomainFlagsin interfaceDomainsManager- Returns:
- flags toggling SE/EE specific behavior.
-
validateDomain
public void validateDomain(DomainConfig domainConfig, boolean domainExists) throws DomainException
Description copied from interface:DomainsManagerChanges the master password for the domain- Specified by:
validateDomainin interfaceDomainsManager- Throws:
DomainException
-
validateMasterPassword
public void validateMasterPassword(DomainConfig domainConfig) throws DomainException
- Specified by:
validateMasterPasswordin interfaceDomainsManager- Throws:
DomainException
-
createJBIInstance
protected void createJBIInstance(String instanceName, DomainConfig domainConfig) throws DomainException
- Throws:
DomainException
-
deleteDomain
public void deleteDomain(DomainConfig domainConfig) throws DomainException
Description copied from interface:DomainsManagerDeletes a domain identified by the given name. (Should we stop the DAS and instances administered by this domain before deleting the domain?)- Specified by:
deleteDomainin interfaceDomainsManager- Throws:
DomainException- This exception is thrown if-
- the domain doesnot exist. - an exception occurred while deleting the domain.
-
listDomains
public String[] listDomains(DomainConfig domainConfig) throws DomainException
Lists all the domains.- Specified by:
listDomainsin interfaceDomainsManager- Throws:
DomainException
-
createScripts
protected void createScripts(DomainConfig domainConfig) throws DomainException
- Throws:
DomainException
-
getDomainDir
protected File getDomainDir(DomainConfig domainConfig)
-
getDomainRoot
protected File getDomainRoot(DomainConfig domainConfig)
-
getDomainUser
protected static String getDomainUser(DomainConfig domainConfig)
Returns the domain user from the domainConfig.- Parameters:
domainConfig- that represents the domain configuration- Returns:
- String representing the domain user if the given map contains it, null otherwise
-
getDomainPasswordClear
protected static String getDomainPasswordClear(DomainConfig domainConfig)
Returns the domain user's password in cleartext from the domainConfig.- Parameters:
domainConfig- that represents the domain configuration- Returns:
- String representing the domain user password if the given map contains it, null otherwise
-
getMasterPasswordClear
protected static String getMasterPasswordClear(DomainConfig domainConfig)
-
getNewMasterPasswordClear
protected static String getNewMasterPasswordClear(DomainConfig domainConfig)
-
saveMasterPassword
protected static boolean saveMasterPassword(DomainConfig domainConfig)
-
changeMasterPassword
public void changeMasterPassword(DomainConfig config) throws DomainException
Changes the master password for the domain- Throws:
DomainException
-
getExtraPasswordOptions
public String[] getExtraPasswordOptions(DomainConfig config) throws DomainException
Description copied from interface:DomainsManagerSE/EE supports NSS as its native SSL database. NSS is capable of supporting multiple slots (e.g. for different SSL hardware devices, smartcards, etc). Each device needs a specific password which the CLI must prompt for.- Specified by:
getExtraPasswordOptionsin interfaceDomainsManager- Throws:
DomainException
-
-