public interface ContentType extends Model
This interface provides access to a content type and its supported
portlet modes.
A content type is defined as part of a portlet application in the
portlet.xml. It is accessible via the ServletDefinition as it is
bound to the application code.
This interface defines the model as known from the MVC pattern. Its purpose is to provide read access to the data stored in the model.
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContentType()
Returns the content type
The return value cannot be NULL.
|
java.util.Iterator |
getPortletModes()
Returns all portlet modes for this content type
|
boolean |
supportsPortletMode(javax.portlet.PortletMode portletMode)
Returns true if the given portlet mode is supported for this content type.
|
java.lang.String getContentType()
java.util.Iterator getPortletModes()
javax.portlet.PortletMode
objectsboolean supportsPortletMode(javax.portlet.PortletMode portletMode)
Copyright © 2003-2013 . All Rights Reserved.