|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RepoManagerRemote
Method Summary | |
---|---|
void |
addPackageVersionsToRepo(Subject subject,
int repoId,
int[] packageVersionIds)
Associates the package versions (identified by their IDs) to the given repo (also identified by its ID). |
Repo |
createRepo(Subject subject,
Repo repo)
Creates a new Repo . |
boolean |
deletePackageVersionsFromRepo(Subject subject,
int repoId,
int[] packageVersionId)
Deletes package versions from a repo if they are not referenced by a content source. |
void |
deleteRepo(Subject subject,
int repoId)
Deletes the indicated repo. |
PageList<PackageVersion> |
findPackageVersionsInRepo(Subject subject,
int repoId,
String filter,
PageControl pc)
Returns the set of package versions that can currently be accessed via the given repo. |
PageList<PackageVersion> |
findPackageVersionsInRepoByCriteria(Subject subject,
PackageVersionCriteria criteria)
|
PageList<Repo> |
findRepos(Subject subject,
PageControl pc)
Returns all imported repos in the server. |
PageList<Repo> |
findReposByCriteria(Subject subject,
RepoCriteria criteria)
Returns all repos that match the given criteria. |
PageList<Resource> |
findSubscribedResources(Subject subject,
int repoId,
PageControl pc)
Gets all resources that are subscribed to the given repo. |
List<SubscribedRepo> |
findSubscriptions(Subject subject,
int resourceId)
Get a list of truncated Repo objects that represent the subscriptions for the specified resource. |
PackageVersion |
getLatestPackageVersion(Subject subject,
int packageId,
int repoId)
Returns the latest package version of the supplied package. |
Repo |
getRepo(Subject subject,
int repoId)
Returns the repo with the given id; throws an error if one does not exist at that id. |
void |
subscribeResourceToRepos(Subject subject,
int resourceId,
int[] repoIds)
Subscribes the identified resource to the set of identified repos. |
int |
synchronizeRepos(Subject subject,
int[] repoIds)
|
void |
unsubscribeResourceFromRepos(Subject subject,
int resourceId,
int[] repoIds)
Unsubscribes the identified resource from the set of identified repos. |
Repo |
updateRepo(Subject subject,
Repo repo)
Update an existing Repo object's basic fields, like name, description, etc. |
Method Detail |
---|
void addPackageVersionsToRepo(Subject subject, int repoId, int[] packageVersionIds)
subject
- The logged in user's subject.repoId
- the ID of the repopackageVersionIds
- the list of package version IDs to add to the repoRepo createRepo(Subject subject, Repo repo) throws org.rhq.enterprise.server.content.RepoException
Repo
. Note that the created repo will not have any content sources assigned and no
resources will be subscribed. It is a virgin repo.
subject
- The logged in user's subject.repo
- a new repo object.
RepoException
- if a repo already exists with the same namevoid deleteRepo(Subject subject, int repoId)
subject
- The logged in user's subject.repoId
- identifies the repo to deleteRepo getRepo(Subject subject, int repoId)
subject
- user whose permissions will be checked for access to the reporepoId
- identifies the repo to be retrieved
PageList<Repo> findReposByCriteria(Subject subject, RepoCriteria criteria)
subject
- user making the querycriteria
- describes how the query should function; may not be null
PageList<Repo> findRepos(Subject subject, PageControl pc)
subject
- user making the requestpc
- used for pagination
PageList<PackageVersion> findPackageVersionsInRepoByCriteria(Subject subject, PackageVersionCriteria criteria)
subject
- criteria
- Caller must add a valid repoId via PackageVersionCriteria.addFilterRepoId(Integer)
}
IllegalArgumentException
- for invalid repoId filterPackageVersion getLatestPackageVersion(Subject subject, int packageId, int repoId)
PackageVersion.DEFAULT_COMPARATOR
subject
- the authenticated userpackageId
- the id of the package to find the latest version for.repoId
- the repo where to take the package versions of the package from
Repo updateRepo(Subject subject, Repo repo) throws org.rhq.enterprise.server.content.RepoException
Repo
object's basic fields, like name, description, etc. Note that the given
repo
's relationships will be ignored and not merged with the existing repo (e.g. is subscribed
resources will not be changed, regardless of what the given repo's subscribed resources set it).
subject
- The logged in user's subject.repo
- to be updated
org.rhq.enterprise.server.content.RepoException
PageList<PackageVersion> findPackageVersionsInRepo(Subject subject, int repoId, String filter, PageControl pc)
subject
- The logged in user's subject.repoId
- identifies the repofilter
- A repo filter.pc
- pagination controls
boolean deletePackageVersionsFromRepo(Subject subject, int repoId, int[] packageVersionId)
The package versions themselves are not deleted until some content source or repository is deleted at which point orphans detection is performed.
subject
- repoId
- packageVersionIds
-
PageList<Resource> findSubscribedResources(Subject subject, int repoId, PageControl pc)
subject
- The logged in user's subject.repoId
- pc
-
List<SubscribedRepo> findSubscriptions(Subject subject, int resourceId)
subject
- The logged in user's subject.resourceId
- The id of the resource.
void subscribeResourceToRepos(Subject subject, int resourceId, int[] repoIds)
subject
- The logged in user's subject.resourceId
- The id of the resource to be subscribed.repoIds
- A list of repos to which the resource is subscribed.void unsubscribeResourceFromRepos(Subject subject, int resourceId, int[] repoIds)
subject
- The logged in user's subject.resourceId
- The id of the resource to be subscribed.repoIds
- A list of repos to which the resource is subscribed.int synchronizeRepos(Subject subject, int[] repoIds) throws Exception
Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |