|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.redhat.rhn.domain.BaseDomainHelper
com.redhat.rhn.domain.config.ConfigChannel
public class ConfigChannel
ConfigChannel - Class representation of the table rhnConfigChannel.
| Constructor Summary | |
|---|---|
protected |
ConfigChannel()
Protected constructor Use ConfigurationFactory to create a new channel. |
| Method Summary | |
|---|---|
ConfigFile |
createConfigFile(ConfigFileState state,
ConfigFileName cfn)
Creates a configuration file and saves it to the database with the given information. |
ConfigFile |
createConfigFile(ConfigFileState state,
java.lang.String path)
See createConfigFile(ConfigFileState, ConfigFileName). |
boolean |
equals(java.lang.Object obj)
|
ConfigChannelType |
getConfigChannelType()
|
java.util.SortedSet<ConfigFile> |
getConfigFiles()
|
java.lang.String |
getDescription()
Getter for description |
java.lang.String |
getDisplayName()
Provide a wrapper that returns a useful, I18N'd, name for a channel - relies on the utility function in ConfigurationFactory. |
java.lang.Long |
getId()
Getter for id |
java.lang.String |
getLabel()
Getter for label |
java.lang.String |
getName()
Getter for name |
Org |
getOrg()
|
java.lang.Long |
getOrgId()
Getter for orgId |
int |
hashCode()
|
boolean |
isGlobalChannel()
Is this a global channel? |
boolean |
isLocalChannel()
Is this a local (i.e. |
boolean |
isSandboxChannel()
Is this a sandbox channel? |
void |
setConfigChannelType(ConfigChannelType configChannelTypeIn)
|
protected void |
setConfigFiles(java.util.SortedSet cfg)
Setter for list of config files associated to this channel |
void |
setDescription(java.lang.String descriptionIn)
Setter for description |
void |
setId(java.lang.Long idIn)
Setter for id |
void |
setLabel(java.lang.String labelIn)
Setter for label |
void |
setName(java.lang.String nameIn)
Setter for name |
void |
setOrg(Org orgIn)
|
java.lang.String |
toString()
|
| Methods inherited from class com.redhat.rhn.domain.BaseDomainHelper |
|---|
getCreated, getModified, setCreated, setModified |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected ConfigChannel()
| Method Detail |
|---|
public java.lang.Long getId()
getId in interface Identifiablepublic void setId(java.lang.Long idIn)
idIn - to setpublic java.lang.Long getOrgId()
public java.lang.String getName()
public void setName(java.lang.String nameIn)
nameIn - to setpublic java.lang.String getLabel()
public void setLabel(java.lang.String labelIn)
labelIn - to setpublic java.lang.String getDescription()
public void setDescription(java.lang.String descriptionIn)
descriptionIn - to setpublic ConfigChannelType getConfigChannelType()
public void setConfigChannelType(ConfigChannelType configChannelTypeIn)
configChannelTypeIn - The configChannelType to set.public Org getOrg()
public void setOrg(Org orgIn)
orgIn - The org to set.public boolean isLocalChannel()
public boolean isGlobalChannel()
public boolean isSandboxChannel()
public java.util.SortedSet<ConfigFile> getConfigFiles()
protected void setConfigFiles(java.util.SortedSet cfg)
cfg - to setpublic java.lang.String getDisplayName()
public ConfigFile createConfigFile(ConfigFileState state,
ConfigFileName cfn)
state - The state of the file (dead or alive)cfn - The file's path
public ConfigFile createConfigFile(ConfigFileState state,
java.lang.String path)
state - The state of the file (dead or alive)path - The path of the file
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||