|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ChannelManagerRemote
Method Summary | |
---|---|
void |
addPackageVersionsToChannel(Subject subject,
int channelId,
int[] packageVersionIds)
Associates the package versions (identified by their IDs) to the given channel (also identified by its ID). |
Channel |
createChannel(Subject subject,
Channel channel)
Creates a new Channel . |
void |
deleteChannel(Subject subject,
int channelId)
Deletes the identified channel. |
PageList<Channel> |
findChannels(Subject subject,
PageControl pc)
|
PageList<Channel> |
findChannelsByCriteria(Subject subject,
ChannelCriteria criteria)
|
PageList<PackageVersion> |
findPackageVersionsInChannel(Subject subject,
int channelId,
String filter,
PageControl pc)
Returns the set of package versions that can currently be accessed via the given channel. |
PageList<PackageVersion> |
findPackageVersionsInChannelByCriteria(Subject subject,
PackageVersionCriteria criteria)
|
PageList<Resource> |
findSubscribedResources(Subject subject,
int channelId,
PageControl pc)
Gets all resources that are subscribed to the given channel. |
Channel |
getChannel(Subject subject,
int channelId)
|
void |
subscribeResourceToChannels(Subject subject,
int resourceId,
int[] channelIds)
Subscribes the identified resource to the set of identified channels. |
void |
unsubscribeResourceFromChannels(Subject subject,
int resourceId,
int[] channelIds)
Unsubscribes the identified resource from the set of identified channels. |
Channel |
updateChannel(Subject subject,
Channel channel)
Update an existing Channel object's basic fields, like name, description, etc. |
Method Detail |
---|
void addPackageVersionsToChannel(Subject subject, int channelId, int[] packageVersionIds)
subject
- The logged in user's subject.channelId
- the ID of the channelpackageVersionIds
- the list of package version IDs to add to the channelChannel createChannel(Subject subject, Channel channel) throws org.rhq.enterprise.server.content.ChannelException
Channel
. Note that the created channel will not have any content sources assigned and no
resources will be subscribed. It is a virgin channel.
subject
- The logged in user's subject.channel
- a new channel object.
org.rhq.enterprise.server.content.ChannelException
void deleteChannel(Subject subject, int channelId)
subject
- The logged in user's subject.channelId
- Channel getChannel(Subject subject, int channelId)
PageList<Channel> findChannelsByCriteria(Subject subject, ChannelCriteria criteria)
PageList<PackageVersion> findPackageVersionsInChannelByCriteria(Subject subject, PackageVersionCriteria criteria)
subject
- criteria
- Caller must add a valid channelId via PackageVersionCriteria.addFilterChannelId
IllegalArgumentException
- for invalid channelId filterChannel updateChannel(Subject subject, Channel channel) throws org.rhq.enterprise.server.content.ChannelException
Channel
object's basic fields, like name, description, etc. Note that the given
channel
's relationships will be ignored and not merged with the existing channel (e.g. is subscribed
resources will not be changed, regardless of what the given channel's subscribed resources set it). See methods
like #addContentSourcesToChannel(Subject, int, int[])
to alter its relationships.
subject
- The logged in user's subject.channel
- to be updated
org.rhq.enterprise.server.content.ChannelException
PageList<PackageVersion> findPackageVersionsInChannel(Subject subject, int channelId, String filter, PageControl pc)
subject
- The logged in user's subject.channelId
- identifies the channelfilter
- A channel filter.pc
- pagination controls
PageList<Channel> findChannels(Subject subject, PageControl pc)
PageList<Resource> findSubscribedResources(Subject subject, int channelId, PageControl pc)
subject
- The logged in user's subject.channelId
- pc
-
void subscribeResourceToChannels(Subject subject, int resourceId, int[] channelIds)
subject
- The logged in user's subject.resourceId
- The id of the resource to be subscribed.channelIds
- A list of channels to which the resource is subscribed.void unsubscribeResourceFromChannels(Subject subject, int resourceId, int[] channelIds)
subject
- The logged in user's subject.resourceId
- The id of the resource to be subscribed.channelIds
- A list of channels to which the resource is subscribed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |