public class ConfigChannel extends BaseDomainHelper implements Identifiable
| Modifier | Constructor and Description |
|---|---|
protected |
ConfigChannel()
Protected constructor
Use ConfigurationFactory to create a new channel.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
getCreated, getModified, setCreated, setModifiedprotected ConfigChannel()
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 pathpublic ConfigFile createConfigFile(ConfigFileState state, java.lang.String path)
state - The state of the file (dead or alive)path - The path of the filepublic 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 BaseDomainHelper