Package mc.core.model.channel
Class PublicationProfile
java.lang.Object
mc.core.model.base.EntityBase
mc.core.model.base.ComplexEntity
mc.core.model.channel.ProfileBase
mc.core.model.channel.PublicationProfile
- All Implemented Interfaces:
Serializable,IBaseEntity,ICollectionManaged,ICoreEntity,IEntity,IRightManaged,ISortableEntity,IStateManaged,ITypeManaged,IChannelMapHolder<PublicationProfileMap>,ISchedulable
@Entity
public class PublicationProfile
extends ProfileBase
implements IStateManaged, IRightManaged, ICollectionManaged, IChannelMapHolder<PublicationProfileMap>
Entity to define a type of publication that can be run repeatedly, each run being represented by entity Publication.
PublicationProfile is always associated with a PublicationProfileType that holds the configuration for this
PublicationProfile.
PubliationProfiles are grouped in collections, are right managed if so configured by PublicationProfileType and can have attributes of subtype PRESENTATION to fine tune display in publication.
navigationHrcs: give the NavigationHrc that contain and structure the Nodes that
should be exportedpublicationMaps: contain the publication filters, which entities are to be exported and what of their
dataclassificationHrc: gives the hierarchy of which the classifications are to be exported and their
assignments to the Nodes with their attributes and values.publicationProfileLocales: define primary locale and optional additional locales, each with optional
replacement locales. There must one and only one PublicationProfileLocale marked as primary. Primary locale is the
locale in which is all locale dependent content published. If no content in primary locale exists the replacement
locale is used if given. Additional locales provided the possibility for multilingual publications.PubliationProfiles are grouped in collections, are right managed if so configured by PublicationProfileType and can have attributes of subtype PRESENTATION to fine tune display in publication.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumno property fields, used as parameter constant and label keyNested classes/interfaces inherited from class mc.core.model.base.ComplexEntity
ComplexEntity.ComplexEntityComparatorNested 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 TypeMethodDescriptionvoidaddNavigationHrc(NavigationHrc navigationHrc, int prio) voidvoidaddPublicationProfileLocale(PublicationProfileLocale profileLocale) give the maximum list of RightTypes that apply for this class.getChannelMap(boolean useType) ProfileBase contractIChannelMapHolder contractIChannelMapHolder contractPublicationProfile for flatFile only has one map.getType()override in derived classes, return null if ComplexEntity-subclass is not type managed.booleanbooleanbooleanFlag that indicates if the entities have a root collection per type or if there is only one global root collection.booleanvoidsetClassificationHrc(ClassificationHrc classificationHrc) voidsetDeltaPublication(boolean deltaPublication) voidsetPublicationMaps(List<PublicationProfileMap> exportMaps) voidsetPublicationProfileLocales(List<PublicationProfileLocale> publicationProfileLocales) voidsetPublicationProfileType(PublicationProfileType publicationProfileType) voidsetPublications(List<Publication> publications) voidsetSearchResultPublication(boolean searchResultPublication) 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, getPermissionsMethods inherited from interface mc.core.model.base.IStateManaged
getState, getStateGroupTypes, getStates
-
Constructor Details
-
PublicationProfile
public PublicationProfile() -
PublicationProfile
-
-
Method Details
-
getPublicationProfileType
-
setPublicationProfileType
-
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
-
getPricelists
- Overrides:
getPricelistsin classProfileBase
-
getPublicationMaps
-
setPublicationMaps
-
addPublicationMap
-
getClassificationHrc
-
setClassificationHrc
-
getPublicationProfileLocales
-
setPublicationProfileLocales
-
addPublicationProfileLocale
-
getPublications
-
setPublications
-
isDeltaPublication
public boolean isDeltaPublication() -
setDeltaPublication
public void setDeltaPublication(boolean deltaPublication) -
isSearchResultPublication
public boolean isSearchResultPublication() -
setSearchResultPublication
public void setSearchResultPublication(boolean searchResultPublication) -
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 interfaceITypeManaged- 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
-
getPublicationMap
PublicationProfile for flatFile only has one map.
CAUTION: fallback to map of PubProfileType. do not use returned map for editing!- Returns:
- first PublicationProfileMap if any, else first PublicationProfileTypeMap if any
-
getChannelMap
ProfileBase contract- Specified by:
getChannelMapin classProfileBase
-
getChannelMaps
IChannelMapHolder contract- Specified by:
getChannelMapsin interfaceIChannelMapHolder<PublicationProfileMap>- Returns:
- list of channel maps if any or empty list. no fallback from profile to type
-
getChannelMapInstance
IChannelMapHolder contract- Specified by:
getChannelMapInstancein interfaceIChannelMapHolder<PublicationProfileMap>- Returns:
- a new instance of the appropriate subclass of ChannelMapBase and set this as channelMapHolder
-
getPrimaryLocale
- Returns:
- Locale: the primary locale for the publication if exist, otherwise null
-
getReplacementLocale
- Returns:
- Locale: replacement locale of primary locale if exist, otherwise null
-
getPPAdditionalLocales
- Returns:
- list of PublicationProfileLocales that serve as additional locales if exist, otherwise empty list.
-
isIncludeInherited
public boolean isIncludeInherited()- Returns:
- where inherited attribute values should be included (flag stored as EntityParameter)
-
getTemplateData
- Returns:
- data of EntityDataCE with key templateData (velocity template file name)