|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.layout.simple.SimpleLayout
public class SimpleLayout
The simple user layout implementation. This layout is based on a Document. Prior to uPortal 2.5, this class existed in the org.jasig.portal.layout package. It was moved to its present package to reflect that it is part of the Simple Layout Management implementation.
| Field Summary |
|---|
| Fields inherited from interface org.jasig.portal.layout.IUserLayout |
|---|
ROOT_NODE_NAME |
| Constructor Summary | |
|---|---|
SimpleLayout(String layoutId,
Document layout)
|
|
| Method Summary | |
|---|---|
boolean |
addLayoutEventListener(LayoutEventListener l)
Register a layout event listener |
String |
findNodeId(XPathExpression xpathExpression)
Returns a node id as resolved by the supplied XPathExpression |
String |
getCacheKey()
Return a cache key, uniqly corresponding to the composition and the structure of the user layout. |
Enumeration |
getChildIds(String nodeId)
Returns a list of child node Ids for a given node. |
String |
getId()
Returns a layout Id associated with this manager/ |
String |
getNextSiblingId(String nodeId)
Determine an Id of a next sibling node. |
IUserLayoutNodeDescription |
getNodeDescription(String nodeId)
Obtain a description of a node (channel or a folder) in a given user layout. |
String |
getNodeId(String fname)
Returns a node id associated with the supplied functional name. |
Enumeration |
getNodeIds()
Returns a list of node Ids in the layout. |
String |
getParentId(String nodeId)
Returns an Id of a parent user layout node. |
String |
getPreviousSiblingId(String nodeId)
Determine an Id of a previous sibling node. |
String |
getRootId()
Returns an id of the root node. |
boolean |
removeLayoutEventListener(LayoutEventListener l)
Remove a registered layout event listener. |
void |
writeTo(ContentHandler ch)
Writes user layout content (with appropriate markings) into a ContentHandler |
void |
writeTo(Document document)
Writes user layout content (with appropriate markings) into a Document object |
void |
writeTo(String nodeId,
ContentHandler ch)
Writes subtree of a user layout (with appropriate markings) defined by a particular node into a ContentHandler |
void |
writeTo(String nodeId,
Document document)
Writes subtree of a user layout (with appropriate markings) defined by a particular node into a Document |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleLayout(String layoutId,
Document layout)
| Method Detail |
|---|
public void writeTo(ContentHandler ch)
throws PortalException
IUserLayoutContentHandler
writeTo in interface IUserLayoutch - a ContentHandler value
PortalException - if an error occurs
public void writeTo(String nodeId,
ContentHandler ch)
throws PortalException
IUserLayoutContentHandler
writeTo in interface IUserLayoutnodeId - a String a node determining a user layout subtree.ch - a ContentHandler value
PortalException - if an error occurs
public void writeTo(Document document)
throws PortalException
IUserLayoutDocument object
writeTo in interface IUserLayoutdocument - a Document value
PortalException - if an error occurs
public void writeTo(String nodeId,
Document document)
throws PortalException
IUserLayoutDocument
writeTo in interface IUserLayoutnodeId - a String a node determining a user layout subtree.document - a Document object
PortalException - if an error occurs
public IUserLayoutNodeDescription getNodeDescription(String nodeId)
throws PortalException
IUserLayout
getNodeDescription in interface IUserLayoutnodeId - a String channel subscribe id or folder id.
UserLayoutNodeDescription value
PortalException - if an error occurs
public String getParentId(String nodeId)
throws PortalException
IUserLayout
getParentId in interface IUserLayoutnodeId - a String value
String value
PortalException - if an error occurs
public Enumeration getChildIds(String nodeId)
throws PortalException
IUserLayout
getChildIds in interface IUserLayoutnodeId - a String value
Enumeration of String child node Ids.
PortalException - if an error occurs
public String getNextSiblingId(String nodeId)
throws PortalException
IUserLayout
getNextSiblingId in interface IUserLayoutnodeId - a String value
String Id value of a next sibling node, or null if this is the last sibling.
PortalException - if an error occurs
public String getPreviousSiblingId(String nodeId)
throws PortalException
IUserLayout
getPreviousSiblingId in interface IUserLayoutnodeId - a String value
String Id value of a previous sibling node, or null if this is the first sibling.
PortalException - if an error occurs
public String getCacheKey()
throws PortalException
IUserLayout
getCacheKey in interface IUserLayoutString value
PortalException - if an error occurspublic boolean addLayoutEventListener(LayoutEventListener l)
IUserLayout
addLayoutEventListener in interface IUserLayoutl - a LayoutEventListener object
boolean success statuspublic boolean removeLayoutEventListener(LayoutEventListener l)
IUserLayout
removeLayoutEventListener in interface IUserLayoutl - a LayoutEventListener object
boolean success statuspublic String getId()
IUserLayout
getId in interface IUserLayoutString layout Id value;
public String getNodeId(String fname)
throws PortalException
IUserLayout
getNodeId in interface IUserLayoutfname - the functional name to lookup
String subscription id
PortalException - if an error occurs
public String findNodeId(XPathExpression xpathExpression)
throws PortalException
IUserLayoutXPathExpression
findNodeId in interface IUserLayoutxpathExpression - The expression to execute against the layout DOM
PortalException
public Enumeration getNodeIds()
throws PortalException
IUserLayout
getNodeIds in interface IUserLayoutEnumeration of node Ids
PortalException - if an error occurspublic String getRootId()
IUserLayout
getRootId in interface IUserLayoutString value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||