Class PEDomainsManager

All Implemented Interfaces:
DomainsManager

public class PEDomainsManager extends RepositoryManager implements DomainsManager
  • Field Details

    • PROFILEPROPERTY_DOMAINXML_STYLESHEETS

      public static final String PROFILEPROPERTY_DOMAINXML_STYLESHEETS
      See Also:
    • PROFILEPROPERTY_DOMAINXML_TOKENVALUES

      public static final String PROFILEPROPERTY_DOMAINXML_TOKENVALUES
      See Also:
  • Constructor Details

    • PEDomainsManager

      public PEDomainsManager()
  • Method Details

    • getDomainFlags

      public BitSet getDomainFlags()
      Description copied from interface: DomainsManager
      In 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:
      getDomainFlags in interface DomainsManager
      Returns:
      flags toggling SE/EE specific behavior.
    • validateDomain

      public void validateDomain(DomainConfig domainConfig, boolean domainExists) throws DomainException
      Description copied from interface: DomainsManager
      Changes the master password for the domain
      Specified by:
      validateDomain in interface DomainsManager
      Throws:
      DomainException
    • validateMasterPassword

      public void validateMasterPassword(DomainConfig domainConfig) throws DomainException
      Specified by:
      validateMasterPassword in interface DomainsManager
      Throws:
      DomainException
    • deleteDomain

      public void deleteDomain(DomainConfig domainConfig) throws DomainException
      Description copied from interface: DomainsManager
      Deletes a domain identified by the given name. (Should we stop the DAS and instances administered by this domain before deleting the domain?)
      Specified by:
      deleteDomain in interface DomainsManager
      Parameters:
      domainConfig -
      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:
      listDomains in interface DomainsManager
      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: DomainsManager
      SE/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:
      getExtraPasswordOptions in interface DomainsManager
      Throws:
      DomainException