Class CloneService


@Deprecated public class CloneService extends CayenneService
Deprecated.
Provides a utility to clone the whole client data or forms.
See Also:
  • Field Details

    • newPropertyTypes

      protected List<PropertyType> newPropertyTypes
      Deprecated.
    • newMetadataTags

      protected List<MetadataTag> newMetadataTags
      Deprecated.
    • newDocumentTypes

      protected List<DocumentType> newDocumentTypes
      Deprecated.
    • newFormCodes

      protected List<String> newFormCodes
      Deprecated.
  • Constructor Details

    • CloneService

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

    • 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
    • getPropertyType

      protected PropertyType getPropertyType(PropertyType oldPropertyType)
      Deprecated.
    • getMetadataTag

      protected MetadataTag getMetadataTag(MetadataTag oldMetadataTag)
      Deprecated.
    • getDocumentType

      protected DocumentType getDocumentType(DocumentType oldDocumentType)
      Deprecated.