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

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

public class ContentTypeImpl
extends Object
implements org.apache.jetspeed.om.common.portlet.ContentTypeComposite, Serializable

ContentTypeImpl

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

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

Field Detail

contentType

private String contentType

portletModes

protected 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 String getContentType()
Specified by:
getContentType in interface org.apache.pluto.om.portlet.ContentType
See Also:
ContentType.getContentType()

getPortletModes

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

getPortletModesCollection

public Collection getPortletModesCollection()

setContentType

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

equals

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

hashCode

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

addPortletMode

public void addPortletMode(javax.portlet.PortletMode mode)
Specified by:
addPortletMode in interface org.apache.jetspeed.om.common.portlet.ContentTypeComposite

addPortletMode

public void addPortletMode(String mode)

setPortletModes

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

supportsPortletMode

public boolean supportsPortletMode(javax.portlet.PortletMode mode)
Specified by:
supportsPortletMode in interface org.apache.jetspeed.om.common.portlet.ContentTypeComposite
Specified by:
supportsPortletMode in interface org.apache.pluto.om.portlet.ContentType


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