Package mc.core.model.channel
Class ProfileBase
java.lang.Object
mc.core.model.base.EntityBase
mc.core.model.base.ComplexEntity
mc.core.model.channel.ProfileBase
- All Implemented Interfaces:
Serializable,IBaseEntity,ICoreEntity,IEntity,ISortableEntity,ISchedulable
- Direct Known Subclasses:
ImportProfile,PublicationProfile
Common abstract baseclass for publication and import profile.
hasVersions: set to true if Publications or Imports of this profile are to be archived. By default they
are overwritten.lastVersion: gives the version number of most recent publication or import. Currently the version number
is an integermaxVersionCount: gives how many old versions are to be archived. Only relevant when
hasVersion is set to true. Default is 5.encoding: encoding used to read or write filepricelists: if pricelist dependent prices are to be imported or exported. For import gives the
pricelists to assign the prices (must either be only one pricelist or the pricelists must be identifiably from data
in import. For export gives the pricelist(s) of which the prices are to be exportedlastModificationDateTime: last time a publication or import has been performed. Is not changed upon
editing of the profile itselfterritory: optional, for territory dependent Attributes: only those for the given territory are ex- or
importedfilters: optional, select only data matching with filters assigned to EntityToAttributes or
EntityToEntities. Currently not used.- 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 TypeMethodDescriptionvoidaddPricelist(Pricelist pricelist) abstract ChannelMapBasegetChannelMap(boolean useType) get channel map from profile, or optionally from type if profile has no map.booleanlongabstract ProfileTypeBasefinal WorkflowTypeto fulfill ISchedulable contract: return workflowType from profile typefinal booleanto fulfill IChannelMapHolder contract: return isFlatfile from profile typebooleanvoidsetEncoding(String encoding) voidsetHasVersions(boolean hasVersions) voidsetLastModificationDateTime(Calendar lastModificationDateTime) voidsetLastVersion(String lastVersion) voidsetMaxVersionCount(Integer maxVersionCount) voidsetPeriod(long periodInSec) voidsetPricelists(List<Pricelist> pricelists) voidsetScheduleExpression(String scheduleExpression) voidsetStartTime(Calendar start) voidsetStartTimehour(Integer startTimehour) voidsetStartTimeminute(Integer startTimeminute) voidsetTerritory(Territory territory) voidsetTimerWorkflow(boolean timerWorkflow) Methods 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, getType, 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, setType, 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, setId
-
Constructor Details
-
ProfileBase
public ProfileBase() -
ProfileBase
-
-
Method Details
-
getPricelists
-
setPricelists
-
addPricelist
-
getHasVersions
public boolean getHasVersions() -
setHasVersions
public void setHasVersions(boolean hasVersions) -
getLastVersion
-
setLastVersion
-
getLastModificationDateTime
-
setLastModificationDateTime
-
getMaxVersionCount
-
setMaxVersionCount
-
getEncoding
-
setEncoding
-
getTerritory
-
setTerritory
-
getPeriod
public long getPeriod()- Specified by:
getPeriodin interfaceISchedulable- Returns:
- execution interval in seconds
- See Also:
-
setPeriod
public void setPeriod(long periodInSec) - Parameters:
periodInSec- long, execution interval in seconds
-
getScheduleExpression
- Specified by:
getScheduleExpressionin interfaceISchedulable- Returns:
- schedule expression in cron syntax
- See Also:
-
setScheduleExpression
-
getStartTime
- Specified by:
getStartTimein interfaceISchedulable- Returns:
- start time as calendar
- See Also:
-
setStartTime
-
isTimerWorkflow
public boolean isTimerWorkflow()- Specified by:
isTimerWorkflowin interfaceISchedulable- Returns:
- true if timer flag is enabled
-
setTimerWorkflow
public void setTimerWorkflow(boolean timerWorkflow) -
getStartTimehour
-
getStartTimeminute
-
setStartTimeminute
-
setStartTimehour
-
getProfileType
-
getChannelMap
get channel map from profile, or optionally from type if profile has no map. implemented in derived classes -
getWorkflowType
to fulfill ISchedulable contract: return workflowType from profile type- Specified by:
getWorkflowTypein interfaceISchedulable- Returns:
- the workflow type responsive to execute this schedulable object
-
isFlatFile
public final boolean isFlatFile()to fulfill IChannelMapHolder contract: return isFlatfile from profile type
-