Relationship between Principal Objects

With a little thought, we can mostly infer relationships between the principal objects from the object model.

Relationships written as business rules (similar to the cardinality and optionality that might be captured for a database model) follow:

  • A CmsHttpContext has one and only one current Channel.

  • A CmsHttpContext may have zero or one current Posting.

  • A CmsApplicationContext has no current Channel.

  • A CmsApplicationContext has no current Posting.

  • Any Context has one and only one RootChannel.

  • Any Context has one and only one RootResourceGallery.

  • Any Context has one and only one RootTemplateGallery.

  • Any Context has one and only one Searches engine.

  • Any Context has one and only one User.

  • Any Context has one and only one SessionSettings.

If a Channel includes the following objects Channel, RootChannel, Parent as Channel, and member of a ChannelCollection then the following rules apply:

  • A Channel may have zero or one Parent as Channel.

  • A Channel may have zero or one collection of Channels.

  • A Channel may have zero or one collection of Postings.

  • A Channel may have zero or one collection of CustomProperties.

  • A Channel may have zero or one DefaultResourceGallery.

  • A Channel may have zero or one DefaultTemplateGallery.

If a Posting includes the following objects Posting, WorkingRevision, and member of a PostingCollection then the following rules apply:

  • A Posting has one and only one Parent as Channel.

  • A Posting may have zero or one collection of ConnectedPostings.

  • A Posting may have zero or one collection of ConnectedTemplates.

  • A Posting may have zero or one collection of CustomProperties.

  • A Posting may have zero or one collection of Placeholders.

  • A Posting has one and only one Template.

  • A Posting may have zero or one WorkingRevision as Posting.

If a ResourceGallery includes the following objects ResourceGallery, RootResourceGallery, Parent as ResourceGallery, DefaultResourceGallery, and member of a ResourceGalleryCollection then the following rules apply:

  • A ResourceGallery may have one or zero Parents as ResourceGallery.

  • A ResourceGallery may have zero or one collection of ResourceGalleries.

  • A ResourceGallery may have zero or one collection of Resources.

  • A Resource has one and only one ResourceGallery.

If a TemplateGallery includes the following objects TemplateGallery, RootTemplateGallery, Parent as TemplateGallery, Default TemplateGallery, and member of a TemplateGalleryCollection then the following rules apply:

  • A TemplateGallery may have one or zero Parents as TemplateGallery.

  • A TemplateGallery may have zero or one collection of TemplateGalleries.

  • A TemplateGallery may have zero or one collection of Templates.

If a Template includes the following objects Template and member of a TemplateCollection then the following rules apply:

  • A Template has one and only one Parent as TemplateGallery.

  • A Template may have zero or one collection of ConnectedTemplates.

  • A Template may have zero or one collection of CustomProperty Definitions.

  • A Template may have zero or one collection of PlaceholderDefinitions.

  • A Template has one and only one SourceFile.

If a Placeholder includes the following objects Placeholder and member of a PlaceholderCollection then the following rules apply:

  • A Placeholder has one and only one Definition as Placeholder Definition.

  • A Placeholder has one and only one DataSource.

  • A Placeholder has one and only one Posting.

Searches will be discussed at length in Chapter 28.



Microsoft Content Management Server 2002. A Complete Guide
Microsoft Content Management Server 2002: A Complete Guide
ISBN: 0321194446
EAN: 2147483647
Year: 2003
Pages: 298

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net