|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RepoManagerLocal
| Method Summary | |
|---|---|
void |
addContentSourcesToRepo(Subject subject,
int repoId,
int[] contentSourceIds)
|
void |
addPackageVersionsToRepo(Subject subject,
int repoId,
int[] packageVersionIds)
|
void |
addRepoRelationship(Subject subject,
int repoId,
int relatedRepoId,
java.lang.String relationshipTypeName)
Creates a relationship between two repos. |
java.lang.String |
calculateSyncStatus(Subject subject,
int repoId)
Get the overall sync status of this Repository. |
Repo |
createCandidateRepo(Subject subject,
Repo repo)
Functions similar to RepoManagerRemote.createRepo(Subject, Repo) except that it will ensure
the candidate bit on the repo parameter is correctly set. |
Repo |
createRepo(Subject subject,
Repo repo)
|
RepoGroup |
createRepoGroup(Subject subject,
RepoGroup repoGroup)
|
void |
deleteCandidatesWithOnlyContentSource(Subject subject,
int contentSourceId)
Removes candidate repos whose only content source is the indicated content source. |
void |
deleteRepo(Subject subject,
int repoId)
|
void |
deleteRepoGroup(Subject subject,
int repoGroupId)
|
PageList<ContentSource> |
findAssociatedContentSources(Subject subject,
int repoId,
PageControl pc)
|
PageList<Distribution> |
findAssociatedDistributions(Subject subject,
int repoid,
PageControl pc)
|
java.util.List<RepoComposite> |
findAvailableResourceSubscriptions(int resourceId)
Gets all repos that aren't subscribed to for the given resource. |
PageList<RepoComposite> |
findAvailableResourceSubscriptions(Subject subject,
int resourceId,
PageControl pc)
Gets all repos that aren't subscribed to for the given resource. |
PageList<PackageVersion> |
findPackageVersionsInRepo(Subject subject,
int repoId,
PageControl pc)
Returns the set of package versions that can currently be accessed via the given repo. |
PageList<PackageVersion> |
findPackageVersionsInRepo(Subject subject,
int repoId,
java.lang.String filter,
PageControl pc)
|
PageList<PackageVersion> |
findPackageVersionsInRepoByCriteria(Subject subject,
PackageVersionCriteria criteria)
|
PageList<Repo> |
findRepos(Subject subject,
PageControl pc)
|
PageList<Repo> |
findReposByCriteria(Subject subject,
RepoCriteria criteria)
|
java.util.List<RepoComposite> |
findResourceSubscriptions(int resourceId)
Gets all repos that are subscribed to by the given resource. |
PageList<RepoComposite> |
findResourceSubscriptions(Subject subject,
int resourceId,
PageControl pc)
Gets all repos that are subscribed to by the given resource. |
PageList<Resource> |
findSubscribedResources(Subject subject,
int repoId,
PageControl pc)
|
long |
getPackageVersionCountFromRepo(Subject subject,
int repoId)
|
Repo |
getRepo(Subject subject,
int repoId)
|
java.util.List<Repo> |
getRepoByName(java.lang.String name)
Returns all repos that match the given name. |
RepoGroup |
getRepoGroup(Subject subject,
int repoGroupId)
|
RepoGroup |
getRepoGroupByName(java.lang.String name)
Returns the repo group with the given name if it exists. |
RepoGroupType |
getRepoGroupTypeByName(Subject subject,
java.lang.String name)
|
void |
importCandidateRepo(Subject subject,
java.util.List<java.lang.Integer> repoIds)
Changes the specified repos from being candidates in the system into full blown repositories, allowing their packages to be syncced and resources to subscribe to them. |
void |
processRepoImportReport(Subject subject,
RepoImportReport report,
int contentSourceId,
java.lang.StringBuilder result)
Handles a repo report from a content provider, adding and removing candidate repos as necessary into the database. |
void |
removeContentSourcesFromRepo(Subject subject,
int repoId,
int[] contentSourceIds)
|
void |
subscribeResourceToRepos(Subject subject,
int resourceId,
int[] repoIds)
|
int |
synchronizeRepos(Subject subject,
java.lang.Integer[] repoIds)
Syncronize the content associated with the repoIds passed in. |
void |
unsubscribeResourceFromRepos(Subject subject,
int resourceId,
int[] repoIds)
|
Repo |
updateRepo(Subject subject,
Repo repo)
|
| Method Detail |
|---|
PageList<Repo> findRepos(Subject subject,
PageControl pc)
RepoManagerRemote.findRepos(Subject, PageControl)
PageList<ContentSource> findAssociatedContentSources(Subject subject,
int repoId,
PageControl pc)
PageList<RepoComposite> findResourceSubscriptions(Subject subject,
int resourceId,
PageControl pc)
subject - resourceId - pc -
PageList<RepoComposite> findAvailableResourceSubscriptions(Subject subject,
int resourceId,
PageControl pc)
subject - resourceId - pc -
java.util.List<RepoComposite> findResourceSubscriptions(int resourceId)
resourceId -
java.util.List<RepoComposite> findAvailableResourceSubscriptions(int resourceId)
resourceId -
PageList<PackageVersion> findPackageVersionsInRepo(Subject subject,
int repoId,
PageControl pc)
subject - user asking to perform thisrepoId - identifies the repopc - pagination controls
PageList<PackageVersion> findPackageVersionsInRepo(Subject subject,
int repoId,
java.lang.String filter,
PageControl pc)
RepoManagerRemote.findPackageVersionsInRepo(Subject, int, String, PageControl)
java.lang.String calculateSyncStatus(Subject subject,
int repoId)
subject - callerrepoId - to calc status for
void addContentSourcesToRepo(Subject subject,
int repoId,
int[] contentSourceIds)
throws java.lang.Exception
java.lang.Exception
void removeContentSourcesFromRepo(Subject subject,
int repoId,
int[] contentSourceIds)
throws RepoException
RepoException
long getPackageVersionCountFromRepo(Subject subject,
int repoId)
void addRepoRelationship(Subject subject,
int repoId,
int relatedRepoId,
java.lang.String relationshipTypeName)
repoId as being the source
of the relationship and relatedRepoId as being the destination or target of it.
subject - user making the relationshiprepoId - must reference a valid repo in the system the user has permissions to accessrelatedRepoId - must reference a valid repo in the system the user has permissions to accessrelationshipTypeName - must identify an existing relationship in the database
Repo createCandidateRepo(Subject subject,
Repo repo)
throws RepoException
RepoManagerRemote.createRepo(Subject, Repo) except that it will ensure
the candidate bit on the repo parameter is correctly set.
subject - user creating the reporepo - repo data to create
RepoException - if the repo contains invalid data
void deleteCandidatesWithOnlyContentSource(Subject subject,
int contentSourceId)
subject - user performing the deletecontentSourceId - identifies the content source
void processRepoImportReport(Subject subject,
RepoImportReport report,
int contentSourceId,
java.lang.StringBuilder result)
subject - user triggering the report processingreport - cannot be nullcontentSourceId - identifies the content source thatresult - buffer used to store the results of dealing with the report
void importCandidateRepo(Subject subject,
java.util.List<java.lang.Integer> repoIds)
throws RepoException
subject - user performing the importrepoIds - the repos being imported; they must refer to repos in the database and must be flagged
as candidates (i.e. an error will occur if an already imported repo is specified)
RepoException - if one or more of the repo IDs does not exist in the DB or is not a candidate
void addPackageVersionsToRepo(Subject subject,
int repoId,
int[] packageVersionIds)
RepoManagerRemote.addPackageVersionsToRepo(Subject, int, int[])
Repo createRepo(Subject subject,
Repo repo)
throws RepoException
RepoExceptionRepoManagerRemote.createRepo(Subject, Repo)
void deleteRepo(Subject subject,
int repoId)
RepoManagerRemote.deleteRepo(Subject, int)
RepoGroup createRepoGroup(Subject subject,
RepoGroup repoGroup)
throws RepoException
RepoExceptionRepoManagerRemote.createRepoGroup(Subject, RepoGroup)
void deleteRepoGroup(Subject subject,
int repoGroupId)
RepoManagerRemote.deleteRepoGroup(Subject, int)
Repo getRepo(Subject subject,
int repoId)
RepoManagerRemote.getRepo(Subject, int)
RepoGroup getRepoGroup(Subject subject,
int repoGroupId)
RepoManagerRemote.getRepoGroup(Subject, int)
RepoGroupType getRepoGroupTypeByName(Subject subject,
java.lang.String name)
RepoManagerRemote.getRepoGroupTypeByName(Subject, String)java.util.List<Repo> getRepoByName(java.lang.String name)
name - name of the repo to match
RepoGroup getRepoGroupByName(java.lang.String name)
name - name of the repo group to match
null if one does not
PageList<Repo> findReposByCriteria(Subject subject,
RepoCriteria criteria)
RepoManagerRemote.findPackageVersionsInRepoByCriteria(Subject, PackageVersionCriteria)
PageList<PackageVersion> findPackageVersionsInRepoByCriteria(Subject subject,
PackageVersionCriteria criteria)
RepoManagerRemote.findPackageVersionsInRepo(Subject, int, String, PageControl)
void subscribeResourceToRepos(Subject subject,
int resourceId,
int[] repoIds)
RepoManagerRemote.subscribeResourceToRepos(Subject, int, int[])
void unsubscribeResourceFromRepos(Subject subject,
int resourceId,
int[] repoIds)
RepoManagerRemote.unsubscribeResourceFromRepos(Subject, int, int[])
PageList<Resource> findSubscribedResources(Subject subject,
int repoId,
PageControl pc)
RepoManagerRemote.findSubscribedResources(Subject, int, PageControl)
Repo updateRepo(Subject subject,
Repo repo)
throws RepoException
RepoExceptionRepoManagerRemote.updateRepo(Subject, Repo)
PageList<Distribution> findAssociatedDistributions(Subject subject,
int repoid,
PageControl pc)
RepoManagerRemote.findAssociatedDistributions(Subject, int, PageControl)
int synchronizeRepos(Subject subject,
java.lang.Integer[] repoIds)
repoIds - to syncronize
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||