org.apache.jetspeed.om.common.portlet
Interface ContentTypeComposite

All Superinterfaces:
org.apache.pluto.om.portlet.ContentType, org.apache.pluto.om.Model, Serializable

public interface ContentTypeComposite
extends org.apache.pluto.om.portlet.ContentType, Serializable

ContentTypeComposite Combines the org.apache.pluto.common.ContentType and org.apache.pluto.common.ContentTypeCtrl interfaces into single interface for use in Jetspeed.

Version:
$Id: ContentTypeComposite.java 516448 2007-03-09 16:25:47Z ate $
Author:
Scott T. Weaver

Method Summary
 void addPortletMode(javax.portlet.PortletMode mode)
          Adds a mode to be supported by this ContentType.
 void setContentType(String contentType)
           
 void setPortletModes(Collection modes)
           
 boolean supportsPortletMode(javax.portlet.PortletMode mode)
          Checks whether or not the mode is supported by this ContentType
 
Methods inherited from interface org.apache.pluto.om.portlet.ContentType
getContentType, getPortletModes
 

Method Detail

setPortletModes

void setPortletModes(Collection modes)

addPortletMode

void addPortletMode(javax.portlet.PortletMode mode)
Adds a mode to be supported by this ContentType. If the mode already exists, the same mode is NOT added again.

Parameters:
mode - portlet mode to add.

supportsPortletMode

boolean supportsPortletMode(javax.portlet.PortletMode mode)
Checks whether or not the mode is supported by this ContentType

Specified by:
supportsPortletMode in interface org.apache.pluto.om.portlet.ContentType
Parameters:
mode - portlet mode to check
Returns:
true if the mode is supported, otherwise false.

setContentType

void setContentType(String contentType)
Parameters:
contentType -


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.