|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.layout.node.UserLayoutNodeDescription
public abstract class UserLayoutNodeDescription
An class describing common features of user layout nodes, that is channels and folders
| Field Summary | |
|---|---|
protected boolean |
addChildAllowed
|
protected boolean |
deleteAllowed
|
protected boolean |
editAllowed
|
protected boolean |
hidden
|
protected String |
id
|
protected boolean |
immutable
|
protected boolean |
moveAllowed
|
protected String |
name
|
protected double |
precedence
|
protected boolean |
unremovable
|
| Fields inherited from interface org.jasig.portal.layout.node.IUserLayoutNodeDescription |
|---|
CHANNEL, FOLDER |
| Constructor Summary | |
|---|---|
UserLayoutNodeDescription()
|
|
UserLayoutNodeDescription(IUserLayoutNodeDescription d)
|
|
| Method Summary | |
|---|---|
void |
addNodeAttributes(Element node)
Add all of common node attributes to the Element. |
static UserLayoutNodeDescription |
createUserLayoutNodeDescription(Element xmlNode)
A factory method to create a UserLayoutNodeDescription instance,
based on the information provided in the user layout Element. |
String |
getId()
Returns a node Id. |
String |
getName()
Determine a name associated with this node. |
double |
getPrecedence()
Returns the precedence value for this node. |
abstract int |
getType()
Returns a type of the node, could be FOLDER or CHANNEL integer constant. |
abstract Element |
getXML(Document root)
Creates a org.w3c.dom.Element representation of the current node. |
boolean |
isAddChildAllowed()
Returns true if a child node may be added to the node. |
boolean |
isDeleteAllowed()
Returns true if the node can be deleted. |
boolean |
isEditAllowed()
Returns true if the node can be edited. |
boolean |
isHidden()
|
boolean |
isImmutable()
|
boolean |
isMoveAllowed()
Returns true if the node can be moved. |
boolean |
isUnremovable()
|
void |
setAddChildAllowed(boolean setting)
Set whether or not child nodes can be added to this node. |
void |
setDeleteAllowed(boolean setting)
Set whether a node can be deleted or not. |
void |
setEditAllowed(boolean setting)
Set whether a node can be edited or not. |
void |
setHidden(boolean setting)
|
void |
setId(String id)
Set a new node Id. |
void |
setImmutable(boolean setting)
|
void |
setMoveAllowed(boolean setting)
Set whether a node can be moved or not. |
void |
setName(String name)
|
void |
setPrecedence(double setting)
Set the precedence of a node. |
void |
setUnremovable(boolean setting)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String id
protected String name
protected boolean immutable
protected boolean unremovable
protected boolean hidden
protected boolean deleteAllowed
protected boolean editAllowed
protected boolean moveAllowed
protected boolean addChildAllowed
protected double precedence
| Constructor Detail |
|---|
public UserLayoutNodeDescription()
public UserLayoutNodeDescription(IUserLayoutNodeDescription d)
| Method Detail |
|---|
public double getPrecedence()
getPrecedence in interface IUserLayoutNodeDescriptionpublic void setPrecedence(double setting)
setPrecedence in interface IUserLayoutNodeDescriptionpublic boolean isMoveAllowed()
isMoveAllowed in interface IUserLayoutNodeDescriptionpublic void setMoveAllowed(boolean setting)
setMoveAllowed in interface IUserLayoutNodeDescriptionpublic boolean isDeleteAllowed()
isDeleteAllowed in interface IUserLayoutNodeDescriptionpublic void setDeleteAllowed(boolean setting)
setDeleteAllowed in interface IUserLayoutNodeDescriptionpublic boolean isEditAllowed()
isEditAllowed in interface IUserLayoutNodeDescriptionpublic void setEditAllowed(boolean setting)
setEditAllowed in interface IUserLayoutNodeDescriptionpublic boolean isAddChildAllowed()
isAddChildAllowed in interface IUserLayoutNodeDescriptionpublic void setAddChildAllowed(boolean setting)
setAddChildAllowed in interface IUserLayoutNodeDescriptionpublic String getId()
getId in interface IUserLayoutNodeDescriptionString valuepublic void setId(String id)
setId in interface IUserLayoutNodeDescriptionpublic String getName()
getName in interface IUserLayoutNodeDescriptionpublic void setName(String name)
setName in interface IUserLayoutNodeDescriptionpublic boolean isUnremovable()
isUnremovable in interface IUserLayoutNodeDescriptionpublic void setUnremovable(boolean setting)
setUnremovable in interface IUserLayoutNodeDescriptionpublic boolean isImmutable()
isImmutable in interface IUserLayoutNodeDescriptionpublic void setImmutable(boolean setting)
setImmutable in interface IUserLayoutNodeDescriptionpublic boolean isHidden()
isHidden in interface IUserLayoutNodeDescriptionpublic void setHidden(boolean setting)
setHidden in interface IUserLayoutNodeDescriptionpublic abstract int getType()
getType in interface IUserLayoutNodeDescriptionpublic abstract Element getXML(Document root)
org.w3c.dom.Element representation of the current node.
getXML in interface IUserLayoutNodeDescriptionroot - a Document for which the Element should be created.
Element valuepublic void addNodeAttributes(Element node)
Element.
addNodeAttributes in interface IUserLayoutNodeDescriptionnode - an Element value
public static UserLayoutNodeDescription createUserLayoutNodeDescription(Element xmlNode)
throws PortalException
UserLayoutNodeDescription instance,
based on the information provided in the user layout Element.
xmlNode - a user layout DTD folder/channel Element value
UserLayoutNodeDescription value
PortalException - if the xml passed is somehow invalid.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||