| Home >> All >> com >> RuntimeCollective >> content >> [ bean Javadoc ] |
com.RuntimeCollective.content.bean: Javadoc index of package com.RuntimeCollective.content.bean.
Package Samples:
com.RuntimeCollective.content.bean: The Content module defines the Content contract for the Josephine framework, as well as a collection of basic types of Content (TextComponent, File, Image).
Classes:
ForwardLink: The ForwardLink class implements the Link abstract class, using a URL. For now, we cannot directly access the forwards defined in struts-config.xml. So all forwards used for ForwardLinks have to be copied into web.xml, as a param.FORWARDforwardname parameter. Sorry for the inconvenience. HOW TO : add a new Static Link ------------------------------ Step 1 - creating in the database a new ForwardLink. See /se/datamodel/mssqlserver/Content-sedata-load.sql for examples. Just copy an example, and change the name of the struts Forward you will be using, and its display name. Step 2 - in struts-config.xml, ...
Link: The Link abstract class describes a Link entity, obviously. To implement a new kind of Link, you will have to define: - isDisplayable: says whether the Link is ready to be displayed - getLinkURL: gives a URL representation of this Link The bias here is for HTML links: viewFormat by default only supports the following formats: - "html", - "htmlshort", where LinkText is replaced by the URL - "htmlurl", as above and the ExplanatoryText is not shown (This is why getLinkURL has to be defined). You can extend viewFormat to support any other format you want. Existing implementations include at this time: ...
URLLink: The URLLink class implements the Link abstract class, using a URL. Some refer to this class as ExternalLink. If you want to be spared the hassle of writing JSPs for the editing of your URLLink objects, do have a look at the pages written for the Sussex Enterprise project. You can find them by checking out the relevent project: "cvs co rsework", then look in rsework/web/admin. The pages are called create/edit/deleteExternalLinkXXX.jsp. They should be pretty self-explanatory. The rsework/struts-config.xml file is also worth checking, for the action mappings etc. And while you're at it, why not vanilla ...
File: The File class will hold the content of a file, either directly, or via a filename reference. In the first case, the content will be saved in the permanence layer (e.g. database), in the other, only the reference to the file will be kept. If the latter, then the following runtime parameters must be set: contentFilesDataDir -- The directory where the content files will be stored. pageRoot -- The page root of the application contentFilesUrlStub -- The url path, relative to the application page root, where the content files will be available.
DublinCore: An interface that allows access to Dublin Core v1-1 metadata stored in the implementing object. This is a read only interface which should be implemented if you want to allow the Dublin Core metadata for your object to be implemented in a text format such as XML. Note: all methods in this interface should return Strings or vectors of Strings.
TextComponent: This class is a basic Content holding a piece of text. It doesn't have a title nor a description: those are inferred from the text. TextComponent can be used as is to store eg news items. Alternatively, it can be composed by a more complex Content, such as a website's Page, or a nice Article.
Image: The Image class contains a reference to a File, and some metadata (for now a simple caption). There are now two ways to use Images - the normal way, or with the ImageLibrary. delete and duplicate behave differently in each case.
Content: Interface to implement if you want an object to be considerable as a piece of content. Typical subclasses: TextComponent, Image.
SimpleContent: A basic implementation of Content, which you shouldn't instantiate as is, but subclass.
Editor: Represents a user of the content module who has editor or administrator permissions.
ComplexContent: A piece of content made up of one or more pieces of subcontent.
| Home | Contact Us | Privacy Policy | Terms of Service |