org.apache.jetspeed.om.page.psml
Class ContentFragmentImpl
java.lang.Object
org.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
| 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 |
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
ContentFragmentImpl
public ContentFragmentImpl(org.apache.jetspeed.om.page.Fragment fragment,
Map cachedFagments)
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.