|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ContentFragment provides a volatile wrapper interface for
actual Fragment
metadata
objects. Since Fragments are cached and are not request specific
they cannot be used to store request-level content. This is where
we use the ContentFragment
to solve this problem.
Field Summary |
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 |
Method Summary | |
List |
getContentFragments()
Provides a list of of child ContentFragments that wrap the actual Fragment metadata objects. |
List |
getFragments()
Overridden to make it clear to the implemetor the List
returned MUST ContentFragments and not
just regular Fragment s |
String |
getRenderedContent()
getRenderedContent |
void |
overrideRenderedContent(String contnent)
overrideRenderedContent |
void |
setPortletContent(PortletContent portletContent)
setPortletContent |
Methods inherited from interface org.apache.jetspeed.om.page.Fragment |
addProperty, clearProperties, clone, getDecorator, getLayoutProperties, getName, getProperties, getPropertyValue, getSkin, getState, getType, isReference, removeProperty, setDecorator, setName, setPropertyValue, setSkin, setState, setType |
Methods inherited from interface org.apache.jetspeed.om.page.BaseElement |
getId, getShortTitle, getTitle, setId, setShortTitle, setTitle |
Methods inherited from interface org.apache.jetspeed.om.common.SecuredResource |
checkAccess, checkConstraints, checkPermissions, getConstraintsEnabled, getPermissionsEnabled, getSecurityConstraints, setSecurityConstraints |
Method Detail |
public List getContentFragments()
public List getFragments()
List
returned MUST ContentFragments and not
just regular Fragment
s
getFragments
in interface Fragment
public String getRenderedContent() throws IllegalStateException
getRenderedContent
Returns the raw,undecorated content of this fragment. If overridenContent has been set and portlet content has not, overridden content should be returned.
IllegalStateException
- if the content has not yet been set.public void overrideRenderedContent(String contnent)
overrideRenderedContent
Can be used to store errors that may have occurred during the rendering process.
contnent
- public void setPortletContent(PortletContent portletContent)
setPortletContent
portletContent
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |