org.apache.jetspeed.om.page
Class ContentFragmentImpl

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

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.decoration.Decoration decoration
           
private  org.apache.jetspeed.om.page.Fragment fragment
           
private  boolean instantlyRendered
           
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
COLUMN_PROPERTY_NAME, HEIGHT_PROPERTY_NAME, LAYOUT, PORTLET, ROW_PROPERTY_NAME, SIZES_PROPERTY_NAME, WIDTH_PROPERTY_NAME, X_PROPERTY_NAME, Y_PROPERTY_NAME, Z_PROPERTY_NAME
 
Constructor Summary
ContentFragmentImpl(org.apache.jetspeed.om.page.Fragment fragment, Map cachedFagments)
           
ContentFragmentImpl(org.apache.jetspeed.om.page.Fragment fragment, Map cachedFagments, boolean instantlyRendered)
           
 
Method Summary
 void checkAccess(String actions)
           
 void checkConstraints(String actions)
           
 void checkPermissions(int mask)
           
 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()
           
 org.apache.jetspeed.decoration.Decoration getDecoration()
           
 String getDecorator()
           
 float getFloatProperty(String propName)
           
 List getFragments()
           
 String getId()
           
 int getIntProperty(String propName)
           
 int getLayoutColumn()
           
 float getLayoutHeight()
           
 int getLayoutRow()
           
 String getLayoutSizes()
           
 float getLayoutWidth()
           
 float getLayoutX()
           
 float getLayoutY()
           
 float getLayoutZ()
           
 String getMode()
           
 String getName()
           
 String getOverriddenContent()
           
 boolean getPermissionsEnabled()
           
 List getPreferences()
           
 Map getProperties()
           
 String getProperty(String propName)
           
 String getRenderedContent()
           
 org.apache.jetspeed.om.common.SecurityConstraints getSecurityConstraints()
           
 String getShortTitle()
           
 String getSkin()
           
 String getState()
           
 String getTitle()
           
 String getType()
           
 boolean isInstantlyRendered()
           
 boolean isReference()
           
 org.apache.jetspeed.om.common.SecurityConstraint newSecurityConstraint()
           
 org.apache.jetspeed.om.common.SecurityConstraints newSecurityConstraints()
           
 void overrideRenderedContent(String contnent)
           
 void setDecoration(org.apache.jetspeed.decoration.Decoration decoration)
           
 void setDecorator(String decoratorName)
           
 void setLayoutColumn(int column)
           
 void setLayoutHeight(float height)
           
 void setLayoutRow(int row)
           
 void setLayoutSizes(String sizes)
           
 void setLayoutWidth(float width)
           
 void setLayoutX(float x)
           
 void setLayoutY(float y)
           
 void setLayoutZ(float z)
           
 void setMode(String mode)
           
 void setName(String name)
           
 void setPortletContent(org.apache.jetspeed.aggregator.PortletContent portletContent)
           
 void setPreferences(List preferences)
           
 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
clone, 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

decoration

private org.apache.jetspeed.decoration.Decoration decoration

instantlyRendered

private boolean instantlyRendered
Constructor Detail

ContentFragmentImpl

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

ContentFragmentImpl

public ContentFragmentImpl(org.apache.jetspeed.om.page.Fragment fragment,
                           Map cachedFagments,
                           boolean instantlyRendered)
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
Specified by:
getFragments in interface org.apache.jetspeed.om.page.Fragment

getOverriddenContent

public String getOverriddenContent()
Specified by:
getOverriddenContent 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

getDecorator

public String getDecorator()
Specified by:
getDecorator 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 Map getProperties()
Specified by:
getProperties in interface org.apache.jetspeed.om.page.Fragment

getProperty

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

getIntProperty

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

getFloatProperty

public float getFloatProperty(String propName)
Specified by:
getFloatProperty 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

getMode

public String getMode()
Specified by:
getMode 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

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

getLayoutRow

public int getLayoutRow()
Specified by:
getLayoutRow in interface org.apache.jetspeed.om.page.Fragment

getLayoutColumn

public int getLayoutColumn()
Specified by:
getLayoutColumn in interface org.apache.jetspeed.om.page.Fragment

getLayoutSizes

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

getLayoutX

public float getLayoutX()
Specified by:
getLayoutX in interface org.apache.jetspeed.om.page.Fragment

getLayoutY

public float getLayoutY()
Specified by:
getLayoutY in interface org.apache.jetspeed.om.page.Fragment

getLayoutZ

public float getLayoutZ()
Specified by:
getLayoutZ in interface org.apache.jetspeed.om.page.Fragment

getLayoutWidth

public float getLayoutWidth()
Specified by:
getLayoutWidth in interface org.apache.jetspeed.om.page.Fragment

getLayoutHeight

public float getLayoutHeight()
Specified by:
getLayoutHeight in interface org.apache.jetspeed.om.page.Fragment

setLayoutRow

public void setLayoutRow(int row)
Specified by:
setLayoutRow in interface org.apache.jetspeed.om.page.Fragment

setLayoutColumn

public void setLayoutColumn(int column)
Specified by:
setLayoutColumn in interface org.apache.jetspeed.om.page.Fragment

setLayoutSizes

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

setLayoutX

public void setLayoutX(float x)
Specified by:
setLayoutX in interface org.apache.jetspeed.om.page.Fragment

setLayoutY

public void setLayoutY(float y)
Specified by:
setLayoutY in interface org.apache.jetspeed.om.page.Fragment

setLayoutZ

public void setLayoutZ(float z)
Specified by:
setLayoutZ in interface org.apache.jetspeed.om.page.Fragment

setLayoutWidth

public void setLayoutWidth(float width)
Specified by:
setLayoutWidth in interface org.apache.jetspeed.om.page.Fragment

setLayoutHeight

public void setLayoutHeight(float height)
Specified by:
setLayoutHeight 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

setMode

public void setMode(String mode)
Specified by:
setMode 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

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(int mask)
                      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

newSecurityConstraints

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

newSecurityConstraint

public org.apache.jetspeed.om.common.SecurityConstraint newSecurityConstraint()
Specified by:
newSecurityConstraint 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

getPreferences

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

getDecoration

public org.apache.jetspeed.decoration.Decoration getDecoration()
Specified by:
getDecoration in interface org.apache.jetspeed.om.page.ContentFragment

setPreferences

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

setDecoration

public void setDecoration(org.apache.jetspeed.decoration.Decoration decoration)
Specified by:
setDecoration in interface org.apache.jetspeed.om.page.ContentFragment

isInstantlyRendered

public boolean isInstantlyRendered()
Specified by:
isInstantlyRendered in interface org.apache.jetspeed.om.page.ContentFragment


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