You are viewing a plain text version of this content. The canonical link for it is here.
Posted to graffito-dev@incubator.apache.org by David Sean Taylor <da...@bluesunrise.com> on 2005/10/04 22:26:27 UTC

Link

Hi Christophe,

In the older versions of Graffito/JCMS that I am (still (sigh)) using, 
links exist in folders. I can't see how thats modeled in the SVN head.

Folders have contents and folders have more folders.
Im proposing folders having links, and either:

Link extend Content instead of CmsObject

-- or --

add method to Folder

getLinks()

Thanks,

David


Re: Link

Posted by Christophe Lombart <ch...@gmail.com>.
On 10/5/05, David Sean Taylor <da...@bluesunrise.com> wrote:
>
> Christophe Lombart wrote:
> > David,
> >
> > Here is the model :
> http://incubator.apache.org/graffito/class-diagrams.html
> > Link extends CmsObject by this way, you can create links on folder,
> content,
> > ...
> >
> > The contentModelService manages links.
>
> But, Folder has a collection of Contents
>
> public List getContents();
>
> The javadocs don't explicity say what kind of obects are returned from
> getContents();
>
> /**
> * Get the folder contents.
> * @return a List of content which are located into this folder.
> */
>
> But since you use the word "content" i was assuming it was Content.



Content can be binaries associated to a content type (the interface is
Document : see the dm pck).
But Content will later other descendant like news, article, post in a forum
app, ...
Thoses content are not aossociated to a binary content but more to severals
fields like paragraph, descritption, ...

Links are not Content, they are CmsObject


By this way, we can also link folders.

Re: Link

Posted by David Sean Taylor <da...@bluesunrise.com>.
Christophe Lombart wrote:
> David,
> 
> Here is the model : http://incubator.apache.org/graffito/class-diagrams.html
> Link extends CmsObject by this way, you can create links on folder, content,
> ...
> 
> The contentModelService manages links.

But, Folder has a collection of Contents

	public List getContents();

The javadocs don't explicity say what kind of obects are returned from 
getContents();

	/**
	 * Get the folder contents.
	 * @return a List of content which are located into this folder.
	 */

But since you use the word "content" i was assuming it was Content.
Links are not Content, they are CmsObject



-- 
David Sean Taylor
Bluesunrise Software
david@bluesunrise.com
[office] +01 707 773-4646
[mobile] +01 707 529 9194

Re: Link

Posted by Christophe Lombart <ch...@gmail.com>.
David,

Here is the model : http://incubator.apache.org/graffito/class-diagrams.html
Link extends CmsObject by this way, you can create links on folder, content,
...

The contentModelService manages links.

Christophe


On 10/5/05, David Sean Taylor <da...@bluesunrise.com> wrote:
>
> Hi Christophe,
>
> In the older versions of Graffito/JCMS that I am (still (sigh)) using,
> links exist in folders. I can't see how thats modeled in the SVN head.
>
> Folders have contents and folders have more folders.
> Im proposing folders having links, and either:
>
> Link extend Content instead of CmsObject
>
> -- or --
>
> add method to Folder
>
> getLinks()
>
> Thanks,
>
> David
>
>