|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.rhq.core.domain.content.Channel
public class Channel
A channel represents a set of related PackageVersion
s. The packages in this channel are populated by its
ContentSource
s. The relationship with content sources is weak; that is, content sources can come and go, even
as the packages contained in the channel remain.
Constructor Summary | |
---|---|
Channel()
|
|
Channel(String name)
|
Method Summary | |
---|---|
ChannelContentSource |
addContentSource(ContentSource contentSource)
Directly assign a content source to this channel. |
ChannelPackageVersion |
addPackageVersion(PackageVersion packageVersion)
Directly assign a package version to this channel. |
ResourceChannel |
addResource(Resource resource)
Directly subscribe a resource to this channel. |
boolean |
equals(Object obj)
|
Set<ChannelContentSource> |
getChannelContentSources()
Returns the explicit mapping entities. |
Set<ChannelPackageVersion> |
getChannelPackageVersions()
Returns the explicit mapping entities. |
Set<ContentSource> |
getContentSources()
The content sources that this channel serves up. |
Date |
getCreationDate()
Timestamp of when this channel was created. |
String |
getDescription()
User specified description of the channel. |
int |
getId()
|
Date |
getLastModifiedDate()
Timestamp of the last time the sources of this channel was changed. |
String |
getName()
Programmatic name of the channel. |
Set<PackageVersion> |
getPackageVersions()
The package versions that this channel serves up. |
Set<ResourceChannel> |
getResourceChannels()
Returns the explicit mapping entities. |
Set<Resource> |
getResources()
The resources subscribed to this channel. |
int |
hashCode()
|
ChannelContentSource |
removeContentSource(ContentSource contentSource)
Removes the content source from this channel, if it exists. |
ChannelPackageVersion |
removePackageVersion(PackageVersion packageVersion)
Removes the package version from this channel, if it exists. |
ResourceChannel |
removeResource(Resource resource)
Unsubscribes the resource from this channel, if it exists. |
void |
setCreationDate(Date creationDate)
|
void |
setDescription(String description)
|
void |
setId(int id)
|
void |
setLastModifiedDate(Date lastModifiedDate)
|
void |
setName(String name)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String QUERY_FIND_ALL
public static final String QUERY_FIND_BY_IDS
public static final String QUERY_FIND_BY_CONTENT_SOURCE_ID_FETCH_CCS
public static final String QUERY_FIND_BY_CONTENT_SOURCE_ID
public static final String QUERY_FIND_SUBSCRIBER_RESOURCES
public static final String QUERY_FIND_CHANNELS_BY_RESOURCE_ID
public static final String QUERY_FIND_CHANNEL_COMPOSITES_BY_RESOURCE_ID
public static final String QUERY_FIND_CHANNEL_COMPOSITES_BY_RESOURCE_ID_COUNT
public static final String QUERY_FIND_AVAILABLE_CHANNEL_COMPOSITES_BY_RESOURCE_ID
public static final String QUERY_FIND_AVAILABLE_CHANNEL_COMPOSITES_BY_RESOURCE_ID_COUNT
Constructor Detail |
---|
public Channel()
public Channel(String name)
Method Detail |
---|
public int getId()
public void setId(int id)
public String getName()
public void setName(String name)
public String getDescription()
public void setDescription(String description)
public Date getCreationDate()
public void setCreationDate(Date creationDate)
public Date getLastModifiedDate()
sources
of this channel was changed. It is not
necessarily the last time any other part of this channel object was changed (for example, this last modified date
does not necessarily correspond to the time when the description was modified).
public void setLastModifiedDate(Date lastModifiedDate)
public Set<ResourceChannel> getResourceChannels()
getResources()
public Set<Resource> getResources()
The returned set is not backed by this entity - if you want to alter the set of associated resources, use
getResourceChannels()
or addResource(Resource)
, removeResource(Resource)
.
public ResourceChannel addResource(Resource resource)
resource
-
public ResourceChannel removeResource(Resource resource)
null
is returned.
resource
- the resource to unsubscribe from this channel
null
if the resource was not subscribed to this channelpublic Set<ChannelContentSource> getChannelContentSources()
getContentSources()
public Set<ContentSource> getContentSources()
The returned set is not backed by this entity - if you want to alter the set of associated content sources,
use getChannelContentSources()
or addContentSource(ContentSource)
,
removeContentSource(ContentSource)
.
public ChannelContentSource addContentSource(ContentSource contentSource)
contentSource
-
public ChannelContentSource removeContentSource(ContentSource contentSource)
null
is
returned.
contentSource
- the content source to remove from this channel
null
if the content source was not mapped to this channelpublic Set<ChannelPackageVersion> getChannelPackageVersions()
getPackageVersions()
public Set<PackageVersion> getPackageVersions()
The returned set is not backed by this entity - if you want to alter the set of associated package versions,
use getChannelPackageVersions()
or addPackageVersion(PackageVersion)
,
removePackageVersion(PackageVersion)
.
public ChannelPackageVersion addPackageVersion(PackageVersion packageVersion)
packageVersion
-
public ChannelPackageVersion removePackageVersion(PackageVersion packageVersion)
null
is returned.
packageVersion
- the package version to remove from this channel
null
if the package version was not mapped to this channelpublic String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |