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 186724 2004-06-05 05:10:46Z taylor $
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

public void setPortletModes(Collection modes)

addPortletMode

public 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

public 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

public void setContentType(String contentType)
Parameters:
contentType -


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