Package mc.core.model.channel
Class ImportProfile
java.lang.Object
mc.core.model.base.EntityBase
mc.core.model.base.ComplexEntity
mc.core.model.channel.ProfileBase
mc.core.model.channel.ImportProfile
- All Implemented Interfaces:
Serializable,IBaseEntity,ICollectionManaged,ICoreEntity,IEntity,IRightManaged,ISortableEntity,IChannelMapHolder<ImportProfileMap>,ISchedulable
@Entity
public class ImportProfile
extends ProfileBase
implements IRightManaged, ICollectionManaged, IChannelMapHolder<ImportProfileMap>
Entity to define a type of import that can be run repeatedly, each run being represented by entity Import.
ImportProfile is always associated with an ImportProfileType that holds the configuration for this ImportProfile.
rightsForNewEntities: optional, if entities are created by this import define the permissions that
should be granted on these entities for the principals given by
principalsForNewEntities. Importing user will get
the maximum rights.locale: locale in which this import is performed, is stored with all locale dependent data- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class mc.core.model.base.ComplexEntity
ComplexEntity.ComplexEntityComparator, ComplexEntity.ParamNested classes/interfaces inherited from class mc.core.model.base.EntityBase
EntityBase.EntityComparator -
Field Summary
Fields inherited from class mc.core.model.base.EntityBase
INTDESC_COLUMN_LENGTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddImportMap(ImportProfileMap importMap) give the maximum list of RightTypes that apply for this class.getChannelMap(boolean useType) ProfileBase contractIChannelMapHolder contractIChannelMapHolder contractImportProfile for flatFile only has one map.getType()override in derived classes, return null if ComplexEntity-subclass is not type managed.booleanFlag that indicates if the entities have a root collection per type or if there is only one global root collection.voidsetImportProfileMaps(List<ImportProfileMap> importMaps) voidsetImportProfileType(ImportProfileType importProfileType) voidsetImports(List<Import> imports) voidvoidsetPrincipalsForNewEntities(List<Principal> principalsForNewEntities) voidsetRightsForNewEntities(List<Right> rightsForNewEntities) voidsetType(ComplexTypeEntity type) override in derived classes if ComplexEntity-subclass is type managed, else do nothing.
be used by entity mapperMethods inherited from class mc.core.model.channel.ProfileBase
addPricelist, getEncoding, getHasVersions, getLastModificationDateTime, getLastVersion, getMaxVersionCount, getPeriod, getScheduleExpression, getStartTime, getStartTimehour, getStartTimeminute, getTerritory, getWorkflowType, isFlatFile, isTimerWorkflow, setEncoding, setHasVersions, setLastModificationDateTime, setLastVersion, setMaxVersionCount, setPeriod, setPricelists, setScheduleExpression, setStartTime, setStartTimehour, setStartTimeminute, setTerritory, setTimerWorkflowMethods inherited from class mc.core.model.base.ComplexEntity
addState, getAttributes, getCollections, getCollections, getCollectionToCEs, getDateCreated, getDateModified, getEntityData, getEntityDatas, getEntityFilters, getEntityOwner, getExternalKey, getFileId, getFilename, getHasObjectRights, getId, getInternalDescription, getLifeCycleFlag, getMasterId, getMasterLocale, getMemos, getParameter, getParameters, getParameterValue, getPermissions, getRelatedEntities, getState, getStateGroupTypes, getStates, getStatesToRemove, getVersions, getWatches, isArchived, isDeleted, isRightInheritanceDisabled, isSecondaryCollection, isVisible, setAttributes, setCollectionToCEs, setDateCreated, setDateModified, setEntityDatas, setEntityFilters, setEntityOwner, setExternalKey, setFileId, setFilename, setId, setLifeCycleFlag, setMasterId, setMasterLocale, setMemos, setParameters, setPermissions, setRelatedEntities, setRightInheritanceDisabled, setStates, setVersions, setWatchesMethods inherited from class mc.core.model.base.EntityBase
equals, getCollection, getDescription, getDescription, getFlag, getIsSystem, getName, getName, getNamespace, getPrio, hashCode, setCollection, setDescription, setDescription, setFlag, setInternalDescription, setIsSystem, setName, setName, setNamespace, setPrio, toStringMethods inherited from interface mc.core.model.base.IBaseEntity
getId, setIdMethods inherited from interface mc.core.model.channel.IChannelMapHolder
getChannelMap, isFlatFileMethods inherited from interface mc.core.model.base.ICollectionManaged
getCollection, setCollectionMethods inherited from interface mc.core.model.base.IEntity
getDescription, getInternalDescription, getName, getPrio, setInternalDescriptionMethods inherited from interface mc.core.model.base.IRightManaged
getHasObjectRights, getPermissions
-
Constructor Details
-
ImportProfile
public ImportProfile() -
ImportProfile
-
-
Method Details
-
getImportProfileType
-
setImportProfileType
-
setType
Description copied from class:ComplexEntityoverride in derived classes if ComplexEntity-subclass is type managed, else do nothing.
be used by entity mapper- Overrides:
setTypein classComplexEntity
-
getPrincipalsForNewEntities
-
setPrincipalsForNewEntities
-
getRightsForNewEntities
-
setRightsForNewEntities
-
getPricelists
- Overrides:
getPricelistsin classProfileBase
-
getLocale
-
setLocale
-
getImportProfileMaps
-
setImportProfileMaps
-
addImportMap
-
getImports
-
setImports
-
getAllowedRightTypes
Description copied from interface:IRightManagedgive the maximum list of RightTypes that apply for this class.- Specified by:
getAllowedRightTypesin interfaceIRightManaged- Returns:
- array of enum RightType
-
getType
Description copied from class:ComplexEntityoverride in derived classes, return null if ComplexEntity-subclass is not type managed.- Specified by:
getTypein interfaceICollectionManaged- Specified by:
getTypein classComplexEntity
-
getProfileType
- Specified by:
getProfileTypein classProfileBase
-
isRootPerType
public boolean isRootPerType()Description copied from interface:ICollectionManagedFlag that indicates if the entities have a root collection per type or if there is only one global root collection. if rootPerType true it can only apply to entities that have a type, i.e. ComplexEntities.- Specified by:
isRootPerTypein interfaceICollectionManaged
-
getImportMap
ImportProfile for flatFile only has one map.
CAUTION: fallback to map of ImportProfileType. do not use returned map for editing!- Returns:
- first ImportProfileMap if any, else first ImportProfileTypeMap if any
-
getChannelMap
ProfileBase contract- Specified by:
getChannelMapin classProfileBase
-
getChannelMaps
IChannelMapHolder contract- Specified by:
getChannelMapsin interfaceIChannelMapHolder<ImportProfileMap>- Returns:
- list of channel maps if any or empty list. no fallback from profile to type
-
getChannelMapInstance
IChannelMapHolder contract- Specified by:
getChannelMapInstancein interfaceIChannelMapHolder<ImportProfileMap>- Returns:
- a new instance of the appropriate subclass of ChannelMapBase and set this as channelMapHolder
-