public class Channel extends BaseDomainHelper implements java.lang.Comparable<Channel>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PRIVATE |
static java.lang.String |
PROTECTED |
static java.lang.String |
PUBLIC |
Constructor and Description |
---|
Channel() |
Modifier and Type | Method and Description |
---|---|
void |
addChannelFamily(ChannelFamily channelFamilyIn)
Adds a single channelFamily to the channel
|
void |
addErrata(Errata errataIn)
Adds a single errata to the channel
|
void |
addPackage(Package packageIn)
Deprecated.
Do not use this method.
|
int |
compareTo(Channel o) |
boolean |
containsDistributions()
true if the channel contains any kickstartstartable distros
|
boolean |
equals(java.lang.Object other) |
java.lang.String |
getAccess() |
java.util.List<Channel> |
getAccessibleChildrenFor(User user)
Returns the child channels associated to a base channel
|
java.lang.String |
getBaseDir() |
ChannelArch |
getChannelArch() |
java.util.Set<ChannelFamily> |
getChannelFamilies() |
ChannelFamily |
getChannelFamily()
Get the channel family for this channel.
|
ChecksumType |
getChecksumType() |
java.lang.String |
getChecksumTypeLabel()
get the compatible checksum type to be used for repomd.xml
based on channel release.
|
Comps |
getComps() |
java.lang.String |
getDescription() |
java.util.Set<DistChannelMap> |
getDistChannelMaps() |
java.util.Date |
getEndOfLife() |
int |
getErrataCount() |
java.util.Set<Errata> |
getErratas() |
java.lang.String |
getGPGKeyFp() |
java.lang.String |
getGPGKeyId() |
java.lang.String |
getGPGKeyUrl() |
java.lang.Long |
getId() |
java.lang.String |
getLabel() |
java.util.Date |
getLastModified() |
java.util.Date |
getLastSynced() |
java.lang.String |
getMaintainerEmail() |
java.lang.String |
getMaintainerName() |
java.lang.String |
getMaintainerPhone() |
Modules |
getModules() |
java.lang.String |
getName() |
Org |
getOrg() |
Channel |
getOriginal() |
int |
getPackageCount() |
java.util.Set<Package> |
getPackages()
Deprecated.
Do not use this method
|
Channel |
getParentChannel() |
ChannelProduct |
getProduct() |
ProductName |
getProductName() |
java.util.Set<ContentSource> |
getSources() |
java.lang.String |
getSummary() |
java.lang.String |
getSupportPolicy() |
java.util.Set<Org> |
getTrustedOrgs() |
int |
getTrustedOrgsCount() |
int |
hashCode() |
boolean |
isBaseChannel()
Returns true if this channel is considered a base channel.
|
boolean |
isChannelRepodataRequired()
Does this channel need repodata generated
|
boolean |
isCloned()
Returns true if this channel is a cloned channel.
|
boolean |
isCustom()
Created for taskomatic -- probably shouldn't be called from the webui
|
boolean |
isGloballySubscribable(Org orgIn) |
boolean |
isProtected() |
boolean |
isProxy()
Returns true if this Channel is a Proxy channel.
|
boolean |
isReleaseXChannel(java.lang.Integer ver)
Returns true if this channel is of specified release (f.e.
|
boolean |
isRhelChannel()
Returns true if this Channel is a Rhel channel.
|
boolean |
isSatellite()
Returns true if this Channel is a satellite channel.
|
boolean |
isSubscribable(Org orgIn,
Server server)
Check if this channel is subscribable by the Org passed in.
|
boolean |
isValidAccess(java.lang.String acc)
Returns true if the access provided is a valid value.
|
void |
removePackage(Package packageIn,
User user)
Removes a single package from the channel
|
void |
setAccess(java.lang.String acc) |
void |
setBaseDir(java.lang.String b) |
void |
setChannelArch(ChannelArch c) |
void |
setChannelFamilies(java.util.Set<ChannelFamily> channelFamiliesIn)
Sets the channelFamilies set for this channel
|
void |
setChannelFamily(ChannelFamily channelFamilyIn)
Set the channel family for this channel.
|
void |
setChecksumType(ChecksumType checksumTypeIn) |
void |
setComps(Comps compsIn) |
void |
setDescription(java.lang.String d) |
void |
setDistChannelMaps(java.util.Set<DistChannelMap> distChannelMapsIn) |
void |
setEndOfLife(java.util.Date e) |
void |
setErratas(java.util.Set<Errata> erratasIn)
Sets the erratas set for this channel
|
void |
setGloballySubscribable(boolean value,
Org orgIn)
Sets the globally subscribable attribute for this channel
|
void |
setGPGKeyFp(java.lang.String k) |
void |
setGPGKeyId(java.lang.String k) |
void |
setGPGKeyUrl(java.lang.String k) |
void |
setId(java.lang.Long i) |
void |
setLabel(java.lang.String l) |
void |
setLastModified(java.util.Date l) |
void |
setLastSynced(java.util.Date lastSyncedIn) |
void |
setMaintainerEmail(java.lang.String email) |
void |
setMaintainerName(java.lang.String mname) |
void |
setMaintainerPhone(java.lang.String phone) |
void |
setModules(Modules modulesIn) |
void |
setName(java.lang.String n) |
void |
setOrg(Org o) |
void |
setPackages(java.util.Set<Package> packagesIn)
Sets the packages set for this channel
|
void |
setParentChannel(Channel p) |
void |
setProduct(ChannelProduct productIn) |
void |
setProductName(ProductName productNameIn) |
void |
setSources(java.util.Set<ContentSource> sourcesIn) |
void |
setSummary(java.lang.String s) |
void |
setSupportPolicy(java.lang.String policy) |
void |
setTrustedOrgs(java.util.Set<Org> trustedOrgsIn) |
java.lang.String |
toString() |
getCreated, getModified, setCreated, setModified
public static final java.lang.String PUBLIC
public static final java.lang.String PROTECTED
public static final java.lang.String PRIVATE
public boolean isGloballySubscribable(Org orgIn)
orgIn
- what org you want to know if it is globally subscribable inpublic void setGloballySubscribable(boolean value, Org orgIn)
orgIn
- what org you want to set if it is globally subscribable invalue
- True if you want the channel to be globally subscribable,
false if not.public boolean isSatellite()
public boolean isProxy()
public boolean isRhelChannel()
public boolean isReleaseXChannel(java.lang.Integer ver)
ver
- release versionpublic java.lang.String getBaseDir()
public void setBaseDir(java.lang.String b)
b
- The baseDir to set.public ChannelArch getChannelArch()
public void setChannelArch(ChannelArch c)
c
- The channelArch to set.public ChecksumType getChecksumType()
public void setChecksumType(ChecksumType checksumTypeIn)
checksumTypeIn
- The checksum to set.public void setComps(Comps compsIn)
compsIn
- The Comps to set.public Comps getComps()
public void setModules(Modules modulesIn)
modulesIn
- The Modules to set.public Modules getModules()
public java.lang.String getDescription()
public void setDescription(java.lang.String d)
d
- The description to set.public java.util.Date getEndOfLife()
public void setEndOfLife(java.util.Date e)
e
- The endOfLife to set.public java.lang.String getGPGKeyFp()
public void setGPGKeyFp(java.lang.String k)
k
- The gPGKeyFP to set.public java.lang.String getGPGKeyId()
public void setGPGKeyId(java.lang.String k)
k
- The gPGKeyId to set.public java.lang.String getGPGKeyUrl()
public void setGPGKeyUrl(java.lang.String k)
k
- The gPGKeyUrl to set.public java.lang.Long getId()
public void setId(java.lang.Long i)
i
- The id to set.public java.lang.String getLabel()
public void setLabel(java.lang.String l)
l
- The label to set.public java.util.Date getLastModified()
public void setLastModified(java.util.Date l)
l
- The lastModified to set.public java.util.Date getLastSynced()
public void setLastSynced(java.util.Date lastSyncedIn)
lastSyncedIn
- The lastSynced to set.public java.lang.String getName()
public void setName(java.lang.String n)
n
- The name to set.public Org getOrg()
public void setOrg(Org o)
o
- The org to set.public Channel getParentChannel()
public void setParentChannel(Channel p)
p
- The parentChannel to set.public java.lang.String getSummary()
public void setSummary(java.lang.String s)
s
- The summary to set.public java.util.Set<Errata> getErratas()
public void setErratas(java.util.Set<Errata> erratasIn)
erratasIn
- The set of errataspublic void addErrata(Errata errataIn)
errataIn
- The errata to add@Deprecated public java.util.Set<Package> getPackages()
public int getPackageCount()
public int getErrataCount()
public void setPackages(java.util.Set<Package> packagesIn)
packagesIn
- The set of errataspublic void setSources(java.util.Set<ContentSource> sourcesIn)
sourcesIn
- The set of yum repo sourcespublic java.util.Set<ContentSource> getSources()
@Deprecated public void addPackage(Package packageIn)
packageIn
- The package to addpublic void removePackage(Package packageIn, User user)
user
- the user doing the removepackageIn
- The package to removepublic java.util.Set<ChannelFamily> getChannelFamilies()
public void setChannelFamilies(java.util.Set<ChannelFamily> channelFamiliesIn)
channelFamiliesIn
- The set of channelFamiliespublic void setTrustedOrgs(java.util.Set<Org> trustedOrgsIn)
trustedOrgsIn
- set of trusted orgs for this channelpublic java.util.Set<Org> getTrustedOrgs()
public int getTrustedOrgsCount()
public void addChannelFamily(ChannelFamily channelFamilyIn)
channelFamilyIn
- The channelFamily to addpublic void setChannelFamily(ChannelFamily channelFamilyIn)
channelFamilyIn
- The channelFamily to addpublic ChannelFamily getChannelFamily()
public boolean isBaseChannel()
public boolean isCloned()
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ChannelProduct getProduct()
public void setProduct(ChannelProduct productIn)
productIn
- The product to set.public java.util.Set<DistChannelMap> getDistChannelMaps()
public void setDistChannelMaps(java.util.Set<DistChannelMap> distChannelMapsIn)
distChannelMapsIn
- The distChannelMaps to set.public boolean isSubscribable(Org orgIn, Server server)
orgIn
- to check available subsserver
- to check if subscribablepublic java.lang.String toString()
toString
in class BaseDomainHelper
public ProductName getProductName()
public void setProductName(ProductName productNameIn)
productNameIn
- the productName to setpublic boolean isValidAccess(java.lang.String acc)
acc
- the access value being checkedpublic void setAccess(java.lang.String acc)
acc
- public, protected, or privatepublic java.lang.String getAccess()
public boolean isProtected()
public java.util.List<Channel> getAccessibleChildrenFor(User user)
user
- the User needed for accessibility issuespublic int compareTo(Channel o)
compareTo
in interface java.lang.Comparable<Channel>
public java.lang.String getMaintainerName()
public java.lang.String getMaintainerEmail()
public java.lang.String getMaintainerPhone()
public java.lang.String getSupportPolicy()
public void setMaintainerName(java.lang.String mname)
mname
- maintainer's namepublic void setMaintainerEmail(java.lang.String email)
email
- maintainer's emailpublic void setMaintainerPhone(java.lang.String phone)
phone
- maintainer's phone number (string)public void setSupportPolicy(java.lang.String policy)
policy
- channel support policypublic boolean isCustom()
public boolean isChannelRepodataRequired()
public boolean containsDistributions()
public java.lang.String getChecksumTypeLabel()
public Channel getOriginal()