org.apache.jetspeed.om.portlet.impl
Class ContentTypeImpl

java.lang.Object
  extended by org.apache.jetspeed.om.portlet.impl.ContentTypeImpl
All Implemented Interfaces:
java.io.Serializable, ContentTypeComposite, org.apache.pluto.om.Model, org.apache.pluto.om.portlet.ContentType

public class ContentTypeImpl
extends java.lang.Object
implements ContentTypeComposite, java.io.Serializable

ContentTypeImpl

Version:
$Id: ContentTypeImpl.java 516448 2007-03-09 16:25:47Z ate $
Author:
Scott T. Weaver
See Also:
Serialized Form

Field Summary
protected  long contentTypeId
           
protected  long portletId
          field that represents a FK relationship to the parent portlet.
protected  java.util.Collection portletModes
           
 
Constructor Summary
ContentTypeImpl()
           
 
Method Summary
 void addPortletMode(javax.portlet.PortletMode mode)
          Adds a mode to be supported by this ContentType.
 void addPortletMode(java.lang.String mode)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String getContentType()
           
 java.util.Iterator getPortletModes()
           
 java.util.Collection getPortletModesCollection()
           
 int hashCode()
           
 void setContentType(java.lang.String contentType)
           
 void setPortletModes(java.util.Collection modes)
           
 boolean supportsPortletMode(javax.portlet.PortletMode mode)
          Checks whether or not the mode is supported by this ContentType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

portletModes

protected java.util.Collection portletModes

portletId

protected long portletId
field that represents a FK relationship to the parent portlet. Required by some O/R tools like OJB.


contentTypeId

protected long contentTypeId
Constructor Detail

ContentTypeImpl

public ContentTypeImpl()
Method Detail

getContentType

public java.lang.String getContentType()
Specified by:
getContentType in interface org.apache.pluto.om.portlet.ContentType
See Also:
ContentType.getContentType()

getPortletModes

public java.util.Iterator getPortletModes()
Specified by:
getPortletModes in interface org.apache.pluto.om.portlet.ContentType
See Also:
ContentType.getPortletModes()

getPortletModesCollection

public java.util.Collection getPortletModesCollection()

setContentType

public void setContentType(java.lang.String contentType)
Specified by:
setContentType in interface ContentTypeComposite
See Also:
org.apache.pluto.om.portlet.ContentTypeCtrl#setContentType(java.lang.String)

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()

addPortletMode

public void addPortletMode(javax.portlet.PortletMode mode)
Description copied from interface: ContentTypeComposite
Adds a mode to be supported by this ContentType. If the mode already exists, the same mode is NOT added again.

Specified by:
addPortletMode in interface ContentTypeComposite
Parameters:
mode - portlet mode to add.

addPortletMode

public void addPortletMode(java.lang.String mode)

setPortletModes

public void setPortletModes(java.util.Collection modes)
Specified by:
setPortletModes in interface ContentTypeComposite
See Also:
org.apache.jetspeed.om.common.portlet.ContentTypeComposite#setModes(java.util.Collection)

supportsPortletMode

public boolean supportsPortletMode(javax.portlet.PortletMode mode)
Description copied from interface: ContentTypeComposite
Checks whether or not the mode is supported by this ContentType

Specified by:
supportsPortletMode in interface ContentTypeComposite
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.


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