org.apache.jetspeed.om.page.psml
Class ContentFragmentImpl

java.lang.Object
  extended byorg.apache.jetspeed.om.page.psml.ContentFragmentImpl
All Implemented Interfaces:
org.apache.jetspeed.om.page.BaseElement, Cloneable, org.apache.jetspeed.om.page.ContentFragment, org.apache.jetspeed.om.page.Fragment, org.apache.jetspeed.om.common.SecuredResource, Serializable

public class ContentFragmentImpl
extends Object
implements org.apache.jetspeed.om.page.ContentFragment

See Also:
Serialized Form

Nested Class Summary
protected  class ContentFragmentImpl.ContentFragmentList
           
 
Field Summary
private  Map cachedFragments
           
private  List contentFragments
           
private  org.apache.jetspeed.om.page.Fragment fragment
           
private static org.apache.commons.logging.Log log
           
private  StringBuffer overridenContent
           
private  org.apache.jetspeed.aggregator.PortletContent portletContent
           
 
Fields inherited from interface org.apache.jetspeed.om.page.Fragment
LAYOUT, PORTLET
 
Fields inherited from interface org.apache.jetspeed.om.common.SecuredResource
EDIT_ACTION, VIEW_ACTION
 
Constructor Summary
ContentFragmentImpl(org.apache.jetspeed.om.page.Fragment fragment, Map cachedFagments)
           
 
Method Summary
 void addProperty(org.apache.jetspeed.om.page.Property p)
           
 void checkAccess(String actions)
           
 void checkConstraints(String actions)
           
 void checkPermissions(String actions)
           
 void clearProperties(String layoutName)
           
 Object clone()
           
 boolean getConstraintsEnabled()
           
protected  org.apache.jetspeed.om.page.ContentFragment getContentFragment(org.apache.jetspeed.om.page.Fragment f)
          Checks the ContentFragment cache for a ContentFragment that matches the Id of this fragment.
 List getContentFragments()
           
 String getDecorator()
           
 List getFragments()
           
 String getId()
           
 List getLayoutProperties()
           
 String getName()
           
 boolean getPermissionsEnabled()
           
 List getProperties(String layoutName)
           
 String getPropertyValue(String layout, String propName)
           
 String getRenderedContent()
           
 org.apache.jetspeed.om.common.SecurityConstraints getSecurityConstraints()
           
 String getShortTitle()
           
 String getSkin()
           
 String getState()
           
 String getTitle()
           
 String getType()
           
 boolean isReference()
           
 void overrideRenderedContent(String contnent)
           
 void removeProperty(org.apache.jetspeed.om.page.Property p)
           
 void setDecorator(String decoratorName)
           
 void setId(String id)
           
 void setName(String name)
           
 void setPortletContent(org.apache.jetspeed.aggregator.PortletContent portletContent)
           
 void setPropertyValue(String layout, String propName, String value)
           
 void setSecurityConstraints(org.apache.jetspeed.om.common.SecurityConstraints constraints)
           
 void setShortTitle(String title)
           
 void setSkin(String skinName)
           
 void setState(String state)
           
 void setTitle(String title)
           
 void setType(String type)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fragment

private final org.apache.jetspeed.om.page.Fragment fragment

overridenContent

private StringBuffer overridenContent

portletContent

private org.apache.jetspeed.aggregator.PortletContent portletContent

contentFragments

private List contentFragments

log

private static final org.apache.commons.logging.Log log

cachedFragments

private final Map cachedFragments
Constructor Detail

ContentFragmentImpl

public ContentFragmentImpl(org.apache.jetspeed.om.page.Fragment fragment,
                           Map cachedFagments)
Method Detail

getContentFragments

public List getContentFragments()
Specified by:
getContentFragments in interface org.apache.jetspeed.om.page.ContentFragment

getFragments

public List getFragments()
Specified by:
getFragments in interface org.apache.jetspeed.om.page.ContentFragment

getRenderedContent

public String getRenderedContent()
                          throws IllegalStateException
Specified by:
getRenderedContent in interface org.apache.jetspeed.om.page.ContentFragment
Throws:
IllegalStateException

overrideRenderedContent

public void overrideRenderedContent(String contnent)
Specified by:
overrideRenderedContent in interface org.apache.jetspeed.om.page.ContentFragment

setPortletContent

public void setPortletContent(org.apache.jetspeed.aggregator.PortletContent portletContent)
Specified by:
setPortletContent in interface org.apache.jetspeed.om.page.ContentFragment

addProperty

public void addProperty(org.apache.jetspeed.om.page.Property p)
Specified by:
addProperty in interface org.apache.jetspeed.om.page.Fragment

clearProperties

public void clearProperties(String layoutName)
Specified by:
clearProperties in interface org.apache.jetspeed.om.page.Fragment

clone

public Object clone()
             throws CloneNotSupportedException
Specified by:
clone in interface org.apache.jetspeed.om.page.Fragment
Throws:
CloneNotSupportedException

getDecorator

public String getDecorator()
Specified by:
getDecorator in interface org.apache.jetspeed.om.page.Fragment

getLayoutProperties

public List getLayoutProperties()
Specified by:
getLayoutProperties in interface org.apache.jetspeed.om.page.Fragment

getName

public String getName()
Specified by:
getName in interface org.apache.jetspeed.om.page.Fragment

getProperties

public List getProperties(String layoutName)
Specified by:
getProperties in interface org.apache.jetspeed.om.page.Fragment

getPropertyValue

public String getPropertyValue(String layout,
                               String propName)
Specified by:
getPropertyValue in interface org.apache.jetspeed.om.page.Fragment

getSkin

public String getSkin()
Specified by:
getSkin in interface org.apache.jetspeed.om.page.Fragment

getState

public String getState()
Specified by:
getState in interface org.apache.jetspeed.om.page.Fragment

getType

public String getType()
Specified by:
getType in interface org.apache.jetspeed.om.page.Fragment

isReference

public boolean isReference()
Specified by:
isReference in interface org.apache.jetspeed.om.page.Fragment

removeProperty

public void removeProperty(org.apache.jetspeed.om.page.Property p)
Specified by:
removeProperty in interface org.apache.jetspeed.om.page.Fragment

setDecorator

public void setDecorator(String decoratorName)
Specified by:
setDecorator in interface org.apache.jetspeed.om.page.Fragment

setName

public void setName(String name)
Specified by:
setName in interface org.apache.jetspeed.om.page.Fragment

setPropertyValue

public void setPropertyValue(String layout,
                             String propName,
                             String value)
Specified by:
setPropertyValue in interface org.apache.jetspeed.om.page.Fragment

setSkin

public void setSkin(String skinName)
Specified by:
setSkin in interface org.apache.jetspeed.om.page.Fragment

setState

public void setState(String state)
Specified by:
setState in interface org.apache.jetspeed.om.page.Fragment

setType

public void setType(String type)
Specified by:
setType in interface org.apache.jetspeed.om.page.Fragment

getId

public String getId()
Specified by:
getId in interface org.apache.jetspeed.om.page.BaseElement

getShortTitle

public String getShortTitle()
Specified by:
getShortTitle in interface org.apache.jetspeed.om.page.BaseElement

getTitle

public String getTitle()
Specified by:
getTitle in interface org.apache.jetspeed.om.page.BaseElement

setId

public void setId(String id)
Specified by:
setId in interface org.apache.jetspeed.om.page.BaseElement

setShortTitle

public void setShortTitle(String title)
Specified by:
setShortTitle in interface org.apache.jetspeed.om.page.BaseElement

setTitle

public void setTitle(String title)
Specified by:
setTitle in interface org.apache.jetspeed.om.page.BaseElement

checkAccess

public void checkAccess(String actions)
                 throws SecurityException
Specified by:
checkAccess in interface org.apache.jetspeed.om.common.SecuredResource
Throws:
SecurityException

checkConstraints

public void checkConstraints(String actions)
                      throws SecurityException
Specified by:
checkConstraints in interface org.apache.jetspeed.om.common.SecuredResource
Throws:
SecurityException

checkPermissions

public void checkPermissions(String actions)
                      throws SecurityException
Specified by:
checkPermissions in interface org.apache.jetspeed.om.common.SecuredResource
Throws:
SecurityException

getConstraintsEnabled

public boolean getConstraintsEnabled()
Specified by:
getConstraintsEnabled in interface org.apache.jetspeed.om.common.SecuredResource

getPermissionsEnabled

public boolean getPermissionsEnabled()
Specified by:
getPermissionsEnabled in interface org.apache.jetspeed.om.common.SecuredResource

getSecurityConstraints

public org.apache.jetspeed.om.common.SecurityConstraints getSecurityConstraints()
Specified by:
getSecurityConstraints in interface org.apache.jetspeed.om.common.SecuredResource

setSecurityConstraints

public void setSecurityConstraints(org.apache.jetspeed.om.common.SecurityConstraints constraints)
Specified by:
setSecurityConstraints in interface org.apache.jetspeed.om.common.SecuredResource

getContentFragment

protected org.apache.jetspeed.om.page.ContentFragment getContentFragment(org.apache.jetspeed.om.page.Fragment f)
Checks the ContentFragment cache for a ContentFragment that matches the Id of this fragment. If one is found, it returned. If no matches are found, a new ContentFragment represnentive of the Fragment argument is subsequently created, stored into the cahce and returned.

Parameters:
f -
Returns:
ContentFrament


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