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 public class CloneService extends CayenneService
Deprecated.Provides a utility to clone the whole client data or forms.
-
-
Field Summary
Fields Modifier and Type Field Description protected List<DocumentType>
newDocumentTypes
Deprecated.protected List<String>
newFormCodes
Deprecated.protected List<MetadataTag>
newMetadataTags
Deprecated.protected List<PropertyType>
newPropertyTypes
Deprecated.
-
Constructor Summary
Constructors Constructor Description CloneService()
Deprecated.Create a clone service instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
cloneClient(String fromClientId, String toClientId, boolean importForms)
Deprecated.Clone a client to another client.Form
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 Detail
-
newPropertyTypes
protected List<PropertyType> newPropertyTypes
Deprecated.
-
newMetadataTags
protected List<MetadataTag> newMetadataTags
Deprecated.
-
newDocumentTypes
protected List<DocumentType> newDocumentTypes
Deprecated.
-
-
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 fromtoClientId
- the client id to copy toimportForms
- 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 idtoClientId
- 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.
-
-