Package de.xima.fc.importer.project
Class ProjectImporter
- java.lang.Object
-
- de.xima.fc.importer.project.ProjectImporter
-
- All Implemented Interfaces:
Serializable
public class ProjectImporter extends Object implements Serializable
Importer for XFCProjekts- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ProjectImporter(IEntityContext ec, InputStream is, Mandant client)ProjectImporter(IEntityContext ec, InputStream is, Mandant client, boolean withAlternativeProvider)ProjectImporter(IEntityContext ec, InputStream is, Projekt override, boolean withAlternativeProvider)ProjectImporter(IEntityContext ec, List<DeserializedEntity> entities, Mandant client)Deprecated.
-
Method Summary
-
-
-
Constructor Detail
-
ProjectImporter
public ProjectImporter(IEntityContext ec, InputStream is, Mandant client) throws Exception
- Throws:
Exception
-
ProjectImporter
public ProjectImporter(IEntityContext ec, InputStream is, Mandant client, boolean withAlternativeProvider) throws Exception
- Throws:
Exception
-
ProjectImporter
public ProjectImporter(IEntityContext ec, InputStream is, Projekt override, boolean withAlternativeProvider) throws Exception
- Throws:
Exception
-
ProjectImporter
@Deprecated public ProjectImporter(IEntityContext ec, List<DeserializedEntity> entities, Mandant client) throws Exception
Deprecated.- Throws:
Exception
-
-
Method Detail
-
doImport
public EntityImportResult doImport(IEntityContext ec, IUser user) throws Exception
Imports the given project and its dependencies.- Parameters:
ec-IEntityContextto be used. The entity context needs to have the user that is importing the project and its dependenciesuser-IUserperforming the import- Returns:
EntityImportResult- Throws:
Exception- if something goes wrong during import
-
doImport
@Deprecated public EntityImportResult doImport(IEntityContext ec) throws Exception
Deprecated.UsedoImport(IEntityContext, IUser)insteadImports the given project and its dependencies.- Parameters:
ec-IEntityContextto be used. The entity context needs to have the user that is importing the project and its dependencies- Returns:
EntityImportResult- Throws:
Exception- if something goes wrong during import
-
doImport
@Deprecated public EntityImportResult doImport(Benutzer user) throws Exception
Deprecated.UsedoImport(IEntityContext)instead- Throws:
Exception
-
finishImport
@Deprecated public void finishImport(IEntityContext ec) throws Exception
Deprecated.- Throws:
Exception
-
getAllConfigs
public List<IEntityImportConfig<?>> getAllConfigs()
-
getAllConfigsFlat
public List<IEntityImportConfig<?>> getAllConfigsFlat()
-
getAlternativeProvider
public EntityAlternativeProvider getAlternativeProvider()
-
getFormRecordsToUpdateCount
public int getFormRecordsToUpdateCount()
-
getFormVersionConfig
public FormVersionImportConfig getFormVersionConfig()
-
getProjectConfig
public ProjectImportConfig getProjectConfig()
-
getPromptConnectionImportSpec
public PromptConnectionImportSpec getPromptConnectionImportSpec(PromptObjectIdentifier connectionId)
-
getReferenceConfigs
public List<IEntityImportConfig<?>> getReferenceConfigs()
-
getDatatablesWithUnresolvableDatabaseConnection
public List<DatatableImportConfig> getDatatablesWithUnresolvableDatabaseConnection(IEntityContext ec)
Returns the external datatables whose database connection neither exists in the client nor is being imported nor was replaced by an alternative. These datatables will be created in the system database.- Parameters:
ec- entity context- Returns:
- datatables to be created in the system database instead of the external database
-
getStateConfigs
public List<StateImportConfig> getStateConfigs()
-
getStateMapping
public List<StateMapperModel> getStateMapping()
-
getWorkflowStates
public List<WorkflowState> getWorkflowStates()
-
removeProjectDependency
public IEntityImportConfig<?> removeProjectDependency(UUID uuid, Class<? extends de.xima.cmn.dao.interfaces.IEntity<Long>> clazz)
-
updateDependencies
@Deprecated public void updateDependencies(IEntityContext ec, de.xima.cmn.dao.interfaces.IEntity<Long> oldEntity, de.xima.cmn.dao.interfaces.IEntity<Long> newEntity) throws Exception
Deprecated.- Throws:
Exception
-
withFormActive
public ProjectImporter withFormActive(boolean active)
-
withFormDesc
public ProjectImporter withFormDesc(String formDesc)
-
withFormGroup
public ProjectImporter withFormGroup(String groupName)
-
withFormName
public ProjectImporter withFormName(String formName)
-
withFormTags
public ProjectImporter withFormTags(List<String> tagStrings)
-
withProjectScope
public ProjectImporter withProjectScope(String projectScope)
-
getPromptQueryImportSpecs
public List<PromptQueryImportSpec> getPromptQueryImportSpecs()
-
getPromptConnectionImportSpecs
public List<PromptConnectionImportSpec> getPromptConnectionImportSpecs()
-
getTenantResourceImportSpecs
public List<TenantResourceImportSpec> getTenantResourceImportSpecs()
-
getTenantTemplateImportSpecs
public List<TenantTemplateImportSpec> getTenantTemplateImportSpecs()
-
-