public class ChannelTreeNode extends BaseDto implements BaseListDto, DepthAware, java.lang.Comparable<ChannelTreeNode>
Constructor and Description |
---|
ChannelTreeNode() |
Modifier and Type | Method and Description |
---|---|
boolean |
changeRowColor()
If false is returned, the unpagedListDisplay rendering
the dto will use the color of the previous row when
it renders the row representing this particular instance
of the dto.
|
int |
compareTo(ChannelTreeNode arg0)
Used mainly for sorting so it is in a nice order.
|
long |
depth()
Returns the depth of a given dto.
|
boolean |
equals(java.lang.Object object) |
boolean |
getAccessible()
Get if we should let the user see this channel or not.
|
java.lang.String |
getArchName() |
java.lang.Long |
getChannelArchId() |
java.lang.Long |
getChannelFamilyId() |
java.lang.Long |
getChannelFamilySearchedFor() |
java.lang.String |
getChannelLabel() |
java.lang.Long |
getDepth() |
java.lang.Long |
getErrataCount() |
java.lang.Long |
getId()
Returns id to be stored in RhnSet.
|
java.lang.String |
getName()
retrieves the name of the channel
|
java.lang.String |
getNodeIdString() |
java.lang.Long |
getOrgId()
Get the channel's org id.
|
java.lang.String |
getOrgName()
Get the channel's org name.
|
java.lang.Long |
getPackageCount() |
java.lang.Long |
getParentId() |
java.lang.Long |
getParentOrSelfId() |
java.lang.Long |
getSystemCount() |
java.lang.String |
getUpperName()
retrieves the name of the channel
|
boolean |
greyOutRow()
If false is returned, row is rendered normally.
|
int |
hashCode() |
boolean |
isParent()
Returns
true if this node is a parent channel node, false
otherwise. |
static void |
processList(DataResult<ChannelTreeNode> result)
Handle the orphan'd child channels by adding a "fake" node
This is done because a child can be viewable when the parent is not
|
void |
setAccessible(boolean accessibleIn)
If we want to allow users to view this channel or not.
|
void |
setArchName(java.lang.String archNameIn) |
void |
setChannelArchId(java.lang.Long channelArchIdIn) |
void |
setChannelFamilyId(java.lang.Long channelFamilyIdIn) |
void |
setChannelFamilySearchedFor(java.lang.Long channelFamilySearchedForIn) |
void |
setChannelLabel(java.lang.String channelLabelIn) |
void |
setErrataCount(java.lang.Long errataCountIn) |
void |
setId(java.lang.Long idIn) |
void |
setName(java.lang.String nameIn) |
void |
setOrgId(java.lang.Long orgid)
Set the channel's org id.
|
void |
setOrgName(java.lang.String orgname)
Set the channel's org name.
|
void |
setPackageCount(java.lang.Long packageCountIn) |
void |
setParentId(java.lang.Long parentIdIn) |
void |
setSystemCount(java.lang.Long systemCountIn) |
java.lang.String |
toString() |
addToSet, getSelectionKey
isDisabled, isSelectable, isSelected, setDisabled, setSelected
public static void processList(DataResult<ChannelTreeNode> result)
result
- list of nodes to solvepublic java.lang.Long getParentId()
public void setParentId(java.lang.Long parentIdIn)
parentIdIn
- The parentId to set.public java.lang.Long getChannelFamilySearchedFor()
public void setChannelFamilySearchedFor(java.lang.Long channelFamilySearchedForIn)
channelFamilySearchedForIn
- The channelFamilySearchedFor to set.public java.lang.Long getId()
getId
in interface Identifiable
getId
in class BaseDto
public void setId(java.lang.Long idIn)
idIn
- channel idpublic java.lang.String getName()
public java.lang.String getUpperName()
public java.lang.Long getChannelArchId()
public void setChannelArchId(java.lang.Long channelArchIdIn)
channelArchIdIn
- The channelArchId to set.public java.lang.String getChannelLabel()
public void setChannelLabel(java.lang.String channelLabelIn)
channelLabelIn
- The channelLabel to set.public java.lang.Long getDepth()
public java.lang.Long getPackageCount()
public void setPackageCount(java.lang.Long packageCountIn)
packageCountIn
- The packageCount to set.public void setName(java.lang.String nameIn)
nameIn
- The name to set.public java.lang.Long getSystemCount()
public void setSystemCount(java.lang.Long systemCountIn)
systemCountIn
- The systemCount to set.public boolean changeRowColor()
changeRowColor
in interface BaseListDto
public boolean greyOutRow()
greyOutRow
in interface BaseListDto
public java.lang.String getNodeIdString()
getNodeIdString
in interface BaseListDto
public java.lang.Long getChannelFamilyId()
public void setChannelFamilyId(java.lang.Long channelFamilyIdIn)
channelFamilyIdIn
- The channelFamilyId to set.public java.lang.Long getParentOrSelfId()
public void setAccessible(boolean accessibleIn)
accessibleIn
- or not.public boolean getAccessible()
public boolean isParent()
true
if this node is a parent channel node, false
otherwise. A node is considered a parent if its depth
is 1 and its
id
and parentOrSelfId
properties have the same value.true
if this node is a parent node, false
otherwise.public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public long depth()
depth
in interface DepthAware
public int compareTo(ChannelTreeNode arg0)
compareTo
in interface java.lang.Comparable<ChannelTreeNode>
public java.lang.Long getOrgId()
public void setOrgId(java.lang.Long orgid)
orgid
- The channel's org id.public java.lang.String getOrgName()
public void setOrgName(java.lang.String orgname)
orgname
- An channel's org name.public java.lang.String getArchName()
public void setArchName(java.lang.String archNameIn)
archNameIn
- The archName to set.public java.lang.Long getErrataCount()
public void setErrataCount(java.lang.Long errataCountIn)
errataCountIn
- errata count to set