All content rendered through Content Front framework implements the CMSContent interface
public interface CMSContent { public String getID(); public String getContentType(); public CMSContentReference getParent(); }
ID | String representation of the content ID |
contentType | Name of the content type. This matches the name of the view definitions used to render the content. |
parent | Reference to the parent of the content. Can be null. |
References between content objects implement the CMSContentReferecence interface. References are separate objects to enable properties that not are part of either content object. The prime example is caption texts to images, which is a property of the relation between an article and an image.
public interface CMSContentReference extends CMSContent { public String getReferredID(); }
referredID | ID of the referred content |
All content provider implementations extend this abstract class to provide access to content.
public abstract class CMSContentProvider { public abstract CMSContent getContent( Object contentref); }
getContent(ID) | Returns content based on a String ID or CMSContentReference |