|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.layout.node.UserLayoutNodeDescription
org.jasig.portal.layout.node.UserLayoutChannelDescription
public class UserLayoutChannelDescription
A class managing information contained in a user layout channel node.
| Field Summary | |
|---|---|
(package private) java.lang.String |
channelPublishId
|
(package private) java.lang.String |
channelTypeId
|
(package private) java.lang.String |
className
|
(package private) java.lang.String |
description
|
(package private) boolean |
editable
|
(package private) java.lang.String |
functionalName
|
(package private) boolean |
hasAbout
|
(package private) boolean |
hasHelp
|
(package private) boolean |
isSecure
|
private static org.apache.commons.logging.Log |
log
|
(package private) java.util.Hashtable |
override
|
(package private) java.util.Hashtable |
parameters
|
(package private) long |
timeout
|
(package private) java.lang.String |
title
|
| Fields inherited from class org.jasig.portal.layout.node.UserLayoutNodeDescription |
|---|
addChildAllowed, deleteAllowed, editAllowed, hidden, id, immutable, moveAllowed, name, precedence, unremovable |
| Fields inherited from interface org.jasig.portal.layout.node.IUserLayoutNodeDescription |
|---|
CHANNEL, FOLDER |
| Constructor Summary | |
|---|---|
UserLayoutChannelDescription()
|
|
UserLayoutChannelDescription(org.w3c.dom.Element xmlNode)
Reconstruct channel information from an xml Element |
|
UserLayoutChannelDescription(IUserLayoutChannelDescription d)
|
|
| Method Summary | |
|---|---|
void |
addNodeAttributes(org.w3c.dom.Element node)
Add all of common node attributes to the Element. |
void |
addParameterChildren(org.w3c.dom.Element node,
org.w3c.dom.Document root)
|
boolean |
canOverrideParameter(java.lang.String parameterName)
Determine if a given parameter can be overriden by the user. |
void |
clearParameters()
Clears all of the channel parameters. |
boolean |
containsParameter(java.lang.String parameterName)
Determines if a certain parameter name is present. |
java.lang.String |
getChannelPublishId()
Get the value of channelPublishId for this channel. |
java.lang.String |
getChannelSubscribeId()
Get the value of channelSubscribeId. |
java.lang.String |
getChannelTypeId()
Get the value of channelTypeId. |
java.lang.String |
getClassName()
Get the value of className implementing this channel. |
java.lang.String |
getDescription()
Get the value of description. |
java.lang.String |
getFunctionalName()
Get the value of functionalName. |
java.util.Map |
getParameterMap()
Returns an entire mapping of parameters. |
java.util.Enumeration |
getParameterNames()
Obtain a set of channel parameter names. |
boolean |
getParameterOverrideValue(java.lang.String parameterName)
Obtain a channel parameter override value. |
java.lang.String |
getParameterValue(java.lang.String parameterName)
Obtain a channel parameter value. |
java.util.Collection |
getParameterValues()
Obtain values of all existing channel parameters. |
long |
getTimeout()
Get the value of channel timeout in milliseconds. |
java.lang.String |
getTitle()
Get the value of title. |
int |
getType()
Returns a type of the node, could be FOLDER or CHANNEL integer constant. |
org.w3c.dom.Element |
getXML(org.w3c.dom.Document root)
Creates a org.w3c.dom.Element representation of the current channel. |
boolean |
hasAbout()
Determine if the channel supports "about" action. |
boolean |
hasHelp()
Determine if the channel supports "help" action. |
boolean |
hasParameters()
Determine if the channel has any parameters. |
boolean |
isEditable()
Determine if the channel is editable. |
boolean |
isPortlet()
Get the channel type for portlet / not portlet |
boolean |
isSecure()
Get the value of secure setting. |
int |
numberOfParameters()
Determines the number of existing channel parameters. |
java.lang.String |
remove(java.lang.String parameterName)
Remove a channel parameter. |
void |
setChannelPublishId(java.lang.String v)
Set the value of channelPublishId for this channel. |
void |
setChannelSubscribeId(java.lang.String v)
Set the value of channelSubscribeId. |
void |
setChannelTypeId(java.lang.String v)
Set the value of channelTypeId. |
void |
setClassName(java.lang.String v)
Set the value of className implementing this channel. |
void |
setDescription(java.lang.String v)
Set the value of description. |
void |
setEditable(boolean v)
Specify whether the channel is editable. |
void |
setFunctionalName(java.lang.String v)
Set the value of functionalName. |
void |
setHasAbout(boolean v)
Specify whether the channel supports "about" action. |
void |
setHasHelp(boolean v)
Specify whether the channel supports "help" action. |
void |
setIsSecure(boolean secure)
Set the value of channel secure setting. |
void |
setParameterOverride(java.lang.String parameterName,
boolean canOverride)
Set parameter override flag. |
java.lang.String |
setParameterValue(java.lang.String parameterName,
java.lang.String parameterValue)
Set a channel parameter value. |
void |
setTimeout(long v)
Set the value of channel timeout in milliseconds. |
void |
setTitle(java.lang.String v)
Set the value of title. |
java.lang.String |
toString()
|
| Methods inherited from class org.jasig.portal.layout.node.UserLayoutNodeDescription |
|---|
createUserLayoutNodeDescription, getId, getName, getPrecedence, isAddChildAllowed, isDeleteAllowed, isEditAllowed, isHidden, isImmutable, isMoveAllowed, isUnremovable, setAddChildAllowed, setDeleteAllowed, setEditAllowed, setHidden, setId, setImmutable, setMoveAllowed, setName, setPrecedence, setUnremovable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jasig.portal.layout.node.IUserLayoutNodeDescription |
|---|
getId, getName, getPrecedence, isAddChildAllowed, isDeleteAllowed, isEditAllowed, isHidden, isImmutable, isMoveAllowed, isUnremovable, setAddChildAllowed, setDeleteAllowed, setEditAllowed, setHidden, setId, setImmutable, setMoveAllowed, setName, setPrecedence, setUnremovable |
| Field Detail |
|---|
private static final org.apache.commons.logging.Log log
java.util.Hashtable parameters
java.util.Hashtable override
java.lang.String title
java.lang.String description
java.lang.String className
java.lang.String channelPublishId
java.lang.String channelTypeId
java.lang.String functionalName
long timeout
boolean editable
boolean hasHelp
boolean hasAbout
boolean isSecure
| Constructor Detail |
|---|
public UserLayoutChannelDescription()
public UserLayoutChannelDescription(IUserLayoutChannelDescription d)
public UserLayoutChannelDescription(org.w3c.dom.Element xmlNode)
throws PortalException
Element
xmlNode - a user layout channel Element value
PortalException - if xml is malformed| Method Detail |
|---|
public boolean hasAbout()
hasAbout in interface IUserLayoutChannelDescriptionpublic void setHasAbout(boolean v)
setHasAbout in interface IUserLayoutChannelDescriptionv - Value to assign to hasAbout.public boolean hasHelp()
hasHelp in interface IUserLayoutChannelDescriptionpublic void setHasHelp(boolean v)
setHasHelp in interface IUserLayoutChannelDescriptionv - Value to assign to hasHelp.public boolean isEditable()
isEditable in interface IUserLayoutChannelDescriptionpublic void setEditable(boolean v)
setEditable in interface IUserLayoutChannelDescriptionv - Value to assign to editable.public long getTimeout()
getTimeout in interface IUserLayoutChannelDescriptionpublic void setTimeout(long v)
setTimeout in interface IUserLayoutChannelDescriptionv - Value to assign to timeout.public boolean isSecure()
isSecure in interface IUserLayoutChannelDescriptionpublic void setIsSecure(boolean secure)
setIsSecure in interface IUserLayoutChannelDescriptionsecure - Value to assign to securepublic boolean isPortlet()
isPortlet in interface IUserLayoutChannelDescriptionpublic java.lang.String getFunctionalName()
getFunctionalName in interface IUserLayoutChannelDescriptionpublic void setFunctionalName(java.lang.String v)
setFunctionalName in interface IUserLayoutChannelDescriptionv - Value to assign to functionalName.public java.lang.String getChannelSubscribeId()
getChannelSubscribeId in interface IUserLayoutChannelDescriptionpublic void setChannelSubscribeId(java.lang.String v)
setChannelSubscribeId in interface IUserLayoutChannelDescriptionv - Value to assign to channelSubscribeId.public java.lang.String getChannelTypeId()
getChannelTypeId in interface IUserLayoutChannelDescriptionpublic void setChannelTypeId(java.lang.String v)
setChannelTypeId in interface IUserLayoutChannelDescriptionv - Value to assign to channelTypeId.public java.lang.String getChannelPublishId()
getChannelPublishId in interface IUserLayoutChannelDescriptionpublic void setChannelPublishId(java.lang.String v)
setChannelPublishId in interface IUserLayoutChannelDescriptionv - Value to assign to channelPublishId.public java.lang.String getClassName()
getClassName in interface IUserLayoutChannelDescriptionpublic void setClassName(java.lang.String v)
setClassName in interface IUserLayoutChannelDescriptionv - Value to assign to className.public java.lang.String getTitle()
getTitle in interface IUserLayoutChannelDescriptionpublic void setTitle(java.lang.String v)
setTitle in interface IUserLayoutChannelDescriptionv - Value to assign to title.public java.lang.String getDescription()
getDescription in interface IUserLayoutChannelDescriptionpublic void setDescription(java.lang.String v)
setDescription in interface IUserLayoutChannelDescriptionv - Value to assign to description.
public java.lang.String setParameterValue(java.lang.String parameterName,
java.lang.String parameterValue)
setParameterValue in interface IUserLayoutChannelDescriptionparameterValue - a String valueparameterName - a String value
String value that was set.public java.lang.String getParameterValue(java.lang.String parameterName)
getParameterValue in interface IUserLayoutChannelDescriptionparameterName - a String value
String valuepublic boolean getParameterOverrideValue(java.lang.String parameterName)
getParameterOverrideValue in interface IUserLayoutChannelDescriptionparameterName - a String value
boolean valuepublic java.util.Collection getParameterValues()
getParameterValues in interface IUserLayoutChannelDescriptionCollection of String parameter values.public int numberOfParameters()
numberOfParameters in interface IUserLayoutChannelDescriptionint valuepublic void clearParameters()
clearParameters in interface IUserLayoutChannelDescriptionpublic boolean canOverrideParameter(java.lang.String parameterName)
canOverrideParameter in interface IUserLayoutChannelDescriptionparameterName - a String value
boolean value
public void setParameterOverride(java.lang.String parameterName,
boolean canOverride)
setParameterOverride in interface IUserLayoutChannelDescriptionparameterName - a String valuecanOverride - a boolean flag.public java.lang.String remove(java.lang.String parameterName)
remove in interface IUserLayoutChannelDescriptionparameterName - a String parameter name.
public java.util.Enumeration getParameterNames()
getParameterNames in interface IUserLayoutChannelDescriptionSet of String parameter names.public java.util.Map getParameterMap()
getParameterMap in interface IUserLayoutChannelDescriptionMap of parameter names on parameter values.public boolean hasParameters()
hasParameters in interface IUserLayoutChannelDescriptionboolean valuepublic boolean containsParameter(java.lang.String parameterName)
containsParameter in interface IUserLayoutChannelDescriptionparameterName - a String parameter name.
boolean valuepublic org.w3c.dom.Element getXML(org.w3c.dom.Document root)
org.w3c.dom.Element representation of the current channel.
getXML in interface IUserLayoutChannelDescriptiongetXML in interface IUserLayoutNodeDescriptiongetXML in class UserLayoutNodeDescriptionroot - a Document for which the Element should be created.
Node value
public void addParameterChildren(org.w3c.dom.Element node,
org.w3c.dom.Document root)
public void addNodeAttributes(org.w3c.dom.Element node)
UserLayoutNodeDescriptionElement.
addNodeAttributes in interface IUserLayoutNodeDescriptionaddNodeAttributes in class UserLayoutNodeDescriptionnode - an Element valuepublic int getType()
getType in interface IUserLayoutNodeDescriptiongetType in class UserLayoutNodeDescriptionpublic java.lang.String toString()
toString in class UserLayoutNodeDescription
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||