Class CloneService

    • Constructor Detail

      • CloneService

        public CloneService()
        Deprecated.
        Create a clone service instance.
    • Method Detail

      • cloneClient

        public void cloneClient​(String fromClientId,
                                String toClientId,
                                boolean importForms)
        Deprecated.
        Clone a client to another client. It clone everything associated with the client to another. Note that this method contains database transactions.
        Parameters:
        fromClientId - the client id to copy from
        toClientId - the client id to copy to
        importForms - whether to clone all the forms
      • cloneSingleForm

        public Form cloneSingleForm​(String oldFormId,
                                    String toClientId)
        Deprecated.
        Given a formId, create a copy and attach to given client. (not committed). Note that this method contains database transactions.
        Parameters:
        oldFormId - a form id
        toClientId - the client id
        Returns:
        the copied form reference