Help!! Object design for a CMS

Help!! Object design for a CMS

Old forum URL: forums.lhotka.net/forums/t/999.aspx


yipchunyu posted on Wednesday, August 23, 2006

I am in the very beginning stage of a CMS.  However, I get confused in the object model design and hope to receive some advice.
Some requirements:
1. The document a user posted to the system can be display in different function area(s)/web site(s)
2. Each document may related to certain product lines/product(s).  Users should be able to group the posts by product
3. Each document may contains a list or attachment(s)
4. Different type of users (as in different web site) may allow to acces certain type of info.

I drafted the following list (my first time and so may contains lots errors)
How can I simplify the model?  any other advice is welcomed. Thx

List of Objects and Their Responsibilities

Potential Class

Responsibility

Collaborators

DocumentList

Gets a read-only list of projects

DocumentInfo

DocumentInfo

Provides a read-only information for a document

Document

Document

Adds and edits a valid document

 

Assignment

Manages association of a document, function area and an attachment

RoleList

ProductList

Get a read-only list of product

ProductInfo

ProductInfo

Provides a read-only information for a product

Product

Product

Adds and edits a valid product

ProductAssignments, CommonRules

ProductAssignments

Maintains a list of products to which a document is assigned

ProductAssignment

ProductAssignment

Manages a document to which a product is assigned

Assignment, CommonRules, Document

FunctionAreasList

Get a read-only list of function area

FunctionArea

FunctionAreaInfo

Provides a read-only information for a function area

Function

Function

Adds and edits a valid function

FunctionAreaAssignments, CommonRules

FunctionAreaAssignements

Maintains a list of function areas to which a document is assigned

FunctionAreaAssignement

FunctionAreaAssignement

Manages a document to which a function area is assigned

Assignment, CommonRules, Document

AttachmentList

Gets a read-only list of attachments

AttachmentInfo

AttachmentInfo

Provides a read-only information for an attachment

Attachment

Attachment

Adds and edits a valid attachment

AttachmentAssignments, CommonRules

AttachmentAssignments

Maintains a list of attachments to which a document is assigned

AttachmentAssignment

AttachmentAssignment

Manages a document to which an attachment is assigned

Assignment, CommonRules, Document

RoleList

Gets a read-only list of roles

None

Roles

Maintains a list of roles in the system

Role, RoleList

Role

Adds and edits a valid role

None

yipchunyu replied on Monday, August 28, 2006

sorry, any advice?

Copyright (c) Marimer LLC