Class RootZoneManager

java.lang.Object
com.verisign.epp.rootzone.util.RootZoneManager

public abstract class RootZoneManager extends Object
Emulates the Root Zone Management System. Stores a mapping between RequestId and Change Request object. Sequential Create, Update, and Info commands should yield realistic results.
  • Constructor Details

    • RootZoneManager

      public RootZoneManager()
  • Method Details

    • addChangeRequest

      public static boolean addChangeRequest(EPPChangeRequest request)
      Adds the ChangeRequest object to the RootZoneManager
      Parameters:
      request - ChangeRequest object to add
      Returns:
      true if and only if the record was inserted correctly. false if the record already exists
    • addChangeAction

      public static boolean addChangeAction(EPPChangeRequest request, EPPChangeAction action)
      Adds the ChangeAction object to the specified ChangeRequest
      Parameters:
      request - EPPChangeRequest on which to append
      action - ChangeAction object to add
      Returns:
      true if and only if the record was inserted false if the ChangeRequest does not exist
    • addChangeAction

      public static boolean addChangeAction(String requestId, EPPChangeAction action)
      Adds the ChangeAction object to the specified ChangeRequest
      Parameters:
      requestId - ChangeRequestId on which to append
      action - ChangeAction object to add
      Returns:
      true if and only if the record was inserted false if the ChangeRequest does not exist
    • findChangeRequest

      public static EPPChangeRequest findChangeRequest(String requestId)
      Retrieve the ChangeRequest object to the specified Change RequestId
      Parameters:
      requestId - Change RequestId to retrieve
      Returns:
      EPPChangeRequest object
    • updateChangeRequest

      public static boolean updateChangeRequest(String requestId, EPPChangeUpdateAttributes attrs)
      Update the ChangeRequest object with the specified Change RequestId
      Parameters:
      requestId - Change RequestId to update
      attrs - Change request attributes
      Returns:
      true if and only if the record was updated false if the ChangeRequest does not exist
    • clearChangeRequest

      public static boolean clearChangeRequest(String requestId)
      Clear the ChangeRequest object with the specified Change RequestId
      Parameters:
      requestId - Change RequestId to clear
      Returns:
      true if and only if the record was updated false if the ChangeRequest does not exist
    • submitChangeRequest

      public static boolean submitChangeRequest(String requestId)
      Submit the ChangeRequest object with the specified Change RequestId
      Parameters:
      requestId - Change RequestId to submit
      Returns:
      true if and only if the record was updated false if the ChangeRequest does not exist
    • withdrawChangeRequest

      public static boolean withdrawChangeRequest(String requestId)
      Withdraw the ChangeRequest object with the specified Change RequestId
      Parameters:
      requestId - Change RequestId to withdraw
      Returns:
      true if and only if the record was updated false if the ChangeRequest does not exist
    • deleteChangeRequest

      public static boolean deleteChangeRequest(String requestId)
      Delete the ChangeRequest object with the specified Change RequestId
      Parameters:
      requestId - Change RequestId to delete
      Returns:
      true if and only if the record was delete false if the ChangeRequest does not exist
    • checkChangeRequest

      public static EPPChangeCheckData checkChangeRequest(String requestId)
      Check the ChangeRequest object with the specified Change RequestId
      Parameters:
      requestId - Change RequestId to check
      Returns:
      true if and only if the record exists false if the ChangeRequest does not exist