Package mc.core.domain.channel.dobj
Class ImportProfileDO
java.lang.Object
mc.core.system.base.BaseBean
mc.core.domain.base.dobj.AbstractBaseDO<T>
mc.core.domain.base.dobj.AbstractEntityBaseDO<T>
mc.core.domain.base.dobj.AbstractComplexEntityDO<ImportProfile>
mc.core.domain.channel.dobj.ImportProfileDO
- All Implemented Interfaces:
IBaseDO<ImportProfile>
-
Nested Class Summary
Nested classes/interfaces inherited from class mc.core.domain.base.dobj.AbstractBaseDO
AbstractBaseDO.Initializer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy(ImportProfile importProfile) Subclass of ComplexEntity passed to this method must implement a constructor that takes as sole argument an instance of this class, otherwise an ApplicationException is thrown.copy(ImportProfile importProfile, Collection targetCollection) voiddelete(ImportProfile importProfile, boolean force) NOTE: when overriding this method and you delete any other objects you need to call validateNotUsed before in case flag force is false!voidperformImport(ImportProfile importProfile, String fileId, String fileName) voidremoveImportMap(ImportProfile importProfile, ImportProfileMap importMap) save(ImportProfile importProfile, DataMap dataMap) map data to entity if any, validate and savevoidsetImportFile(ImportProfile importProfile, InputStream fileStream, String filename) Methods inherited from class mc.core.domain.base.dobj.AbstractComplexEntityDO
addDefaultSearchCriteria, assertPermission, assertPermission, attributes, copyDataSync, copyToCollection, doRecursiveActionAsync, edit, entityProfileApply, entityProfileApply, filter, getCollectionHierarchies, getCollectionsAll, getFromExternalKey, getFromKeySearchFilter, getUserRole, insert, lifecycle, newComplexEntityEvent, onChange, parameter, permissions, prepareSearchFilter, relations, secondaryCollectionAdd, secondaryCollectionCopy, secondaryCollectionMove, secondaryCollectionRemove, setRightInheritanceDisabled, states, translate, versions, watchesMethods inherited from class mc.core.domain.base.dobj.AbstractEntityBaseDO
getFromInternalDescription, sendEvent, sendEventMethods inherited from class mc.core.domain.base.dobj.AbstractBaseDO
delete, getAll, getAllActive, getEntityDisplay, getFromId, getFromKey, getOne, map, map, save, validator
-
Constructor Details
-
ImportProfileDO
public ImportProfileDO()
-
-
Method Details
-
save
Description copied from interface:IBaseDOmap data to entity if any, validate and save- Specified by:
savein interfaceIBaseDO<ImportProfile>- Overrides:
savein classAbstractEntityBaseDO<ImportProfile>- Parameters:
importProfile- mandatorydataMap- optional- Returns:
- mapped entity
- Throws:
ApplicationException
-
delete
Description copied from class:AbstractBaseDONOTE: when overriding this method and you delete any other objects you need to call validateNotUsed before in case flag force is false!- Overrides:
deletein classAbstractComplexEntityDO<ImportProfile>- Parameters:
importProfile- mandatoryforce- if true delete without usage check, which can result in db constraints error unless references are taken care of- Throws:
ApplicationException
-
copy
Description copied from class:AbstractComplexEntityDOSubclass of ComplexEntity passed to this method must implement a constructor that takes as sole argument an instance of this class, otherwise an ApplicationException is thrown. The copy constructor should set all properties that must be copied but not the dependent objects such as entityToAttributes.- Overrides:
copyin classAbstractComplexEntityDO<ImportProfile>- Parameters:
importProfile- ComplexEntity, mandatory- Returns:
- copy
- Throws:
ApplicationException
-
copy
public ImportProfile copy(ImportProfile importProfile, Collection targetCollection) throws ApplicationException - Throws:
ApplicationException
-
performImport
public void performImport(ImportProfile importProfile, String fileId, String fileName) throws ApplicationException - Throws:
ApplicationException
-
removeImportMap
public void removeImportMap(ImportProfile importProfile, ImportProfileMap importMap) throws ApplicationException - Throws:
ApplicationException
-
setImportFile
public void setImportFile(ImportProfile importProfile, InputStream fileStream, String filename) throws ApplicationException - Throws:
ApplicationException
-