Package com.avoka.fc.core.service
Class CloneService
java.lang.Object
com.avoka.fc.core.service.BaseService
com.avoka.fc.core.service.CayenneService
com.avoka.fc.core.service.CloneService
Deprecated.
Provides a utility to clone the whole client data or forms.
-
Field Summary
Modifier and TypeFieldDescriptionprotected List<DocumentType>
Deprecated.Deprecated.protected List<MetadataTag>
Deprecated.protected List<PropertyType>
Deprecated. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cloneClient
(String fromClientId, String toClientId, boolean importForms) Deprecated.Clone a client to another client.cloneSingleForm
(String oldFormId, String toClientId) Deprecated.Given a formId, create a copy and attach to given client.protected DocumentType
getDocumentType
(DocumentType oldDocumentType) Deprecated.protected MetadataTag
getMetadataTag
(MetadataTag oldMetadataTag) Deprecated.protected PropertyType
getPropertyType
(PropertyType oldPropertyType) Deprecated.Methods inherited from class com.avoka.fc.core.service.CayenneService
commitChanges, deleteObject, deleteObjects, findObject, getDataContext, getDataDomain, getObjectForPK, getObjectStore, newObject, performNamedQuery, performNamedQuery, performNamedQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performQuery, performQuery, refetchEntity, refetchObject, registerNewObject, rollbackChanges, toMap, toMap
Methods inherited from class com.avoka.fc.core.service.BaseService
getLogger
-
Field Details
-
newPropertyTypes
Deprecated. -
newMetadataTags
Deprecated. -
newDocumentTypes
Deprecated. -
newFormCodes
Deprecated.
-
-
Constructor Details
-
CloneService
public CloneService()Deprecated.Create a clone service instance.
-
-
Method Details
-
cloneClient
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 fromtoClientId
- the client id to copy toimportForms
- whether to clone all the forms
-
cloneSingleForm
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 idtoClientId
- the client id- Returns:
- the copied form reference
-
getPropertyType
Deprecated. -
getMetadataTag
Deprecated. -
getDocumentType
Deprecated.
-