|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.rhq.core.domain.content.Repo
public class Repo
A repo represents a set of related PackageVersion
s. The packages in this repo 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 repo remain.
Constructor Summary | |
---|---|
Repo()
|
|
Repo(String name)
|
Method Summary | |
---|---|
RepoContentSource |
addContentSource(ContentSource contentSource)
Directly assign a content source to this repo. |
RepoPackageVersion |
addPackageVersion(PackageVersion packageVersion)
Directly assign a package version to this repo. |
RepoRepoGroup |
addRepoGroup(RepoGroup repoGroup)
Directly assign a repogroup to this repo. |
RepoRepoRelationship |
addRepoRelationship(RepoRelationship repoRelationship)
Directly assign a reporelationship to this repo. |
ResourceRepo |
addResource(Resource resource)
Directly subscribe a resource to this repo. |
void |
addSyncResult(RepoSyncResults syncResult)
|
boolean |
equals(Object obj)
|
Set<ContentSource> |
getContentSources()
The content sources that this repo serves up. |
long |
getCreationDate()
Timestamp of when this repo was created. |
String |
getDescription()
User specified description of the repo. |
int |
getId()
|
long |
getLastModifiedDate()
Timestamp of the last time the sources of this repo was changed. |
String |
getName()
Programmatic name of the repo. |
Subject |
getOwner()
|
Set<PackageVersion> |
getPackageVersions()
The package versions that this repo serves up. |
Set<RepoAdvisory> |
getRepoAdvisories()
|
Set<RepoContentSource> |
getRepoContentSources()
Returns the explicit mapping entities. |
Set<RepoDistribution> |
getRepoDistributions()
Returns the explicit mapping entities. |
Set<RepoGroup> |
getRepoGroups()
The repogroups that this repo belongs to. |
Set<RepoPackageVersion> |
getRepoPackageVersions()
Returns the explicit mapping entities. |
Set<RepoRelationship> |
getRepoRelationships()
The reporelationships that this repo belongs to. |
Set<RepoRepoGroup> |
getRepoRepoGroups()
Returns the explicit mapping entities. |
Set<RepoRepoRelationship> |
getRepoRepoRelationships()
Returns the explicit mapping entities. |
Set<ResourceRepo> |
getResourceRepos()
Returns the explicit mapping entities. |
Set<Resource> |
getResources()
The resources subscribed to this repo. |
List<RepoSyncResults> |
getSyncResults()
The list of sync results - order ENSURED by the incrementing ID of this object |
String |
getSyncSchedule()
Periodically, the Repo will be asked to synchronize with the remote ContentProviders associated with it This attribute defines the schedule, as a cron string. |
String |
getSyncStatus()
Get the overall sync status of this Repository. |
int |
hashCode()
|
boolean |
isCandidate()
Indicates if the repo is an imported (i.e. subscribable) repo in RHQ or is just a candidate for import, such as those introduced by a content source. |
boolean |
isPrivate()
Private repositories are only accessible by their owners or RepositoryManagers . |
RepoContentSource |
removeContentSource(ContentSource contentSource)
Removes the content source from this repo, if it exists. |
RepoPackageVersion |
removePackageVersion(PackageVersion packageVersion)
Removes the package version from this repo, if it exists. |
RepoRepoGroup |
removeRepoGroup(RepoGroup repoGroup)
Removes association with a repo group, if it exists. |
RepoRepoRelationship |
removeRepoRelationship(RepoRelationship repoRelationship)
Removes association with a repo relationship, if it exists. |
ResourceRepo |
removeResource(Resource resource)
Unsubscribes the resource from this repo, if it exists. |
void |
setCandidate(boolean candidate)
|
void |
setCreationDate(long creationDate)
|
void |
setDescription(String description)
|
void |
setId(int id)
|
void |
setLastModifiedDate(long lastModifiedDate)
|
void |
setName(String name)
|
void |
setOwner(Subject owner)
|
void |
setPrivate(boolean priv)
|
void |
setRepoAdvisories(Set<RepoAdvisory> repoAdvisories)
|
void |
setSyncSchedule(String syncSchedule)
|
void |
setSyncStatus(String syncStatusIn)
Set the sync status for this repo. |
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_IMPORTED_REPOS_ADMIN
public static final String QUERY_FIND_ALL_IMPORTED_REPOS
public static final String QUERY_FIND_BY_IDS
public static final String QUERY_FIND_BY_NAME
public static final String QUERY_FIND_IMPORTED_BY_CONTENT_SOURCE_ID_FETCH_CCS
public static final String QUERY_FIND_IMPORTED_BY_CONTENT_SOURCE_ID
public static final String QUERY_FIND_CANDIDATE_BY_CONTENT_SOURCE_ID
public static final String QUERY_FIND_SUBSCRIBER_RESOURCES
public static final String QUERY_FIND_REPOS_BY_RESOURCE_ID
public static final String QUERY_FIND_REPO_COMPOSITES_BY_RESOURCE_ID
public static final String QUERY_FIND_REPO_COMPOSITES_BY_RESOURCE_ID_COUNT
public static final String QUERY_FIND_AVAILABLE_REPO_COMPOSITES_BY_RESOURCE_ID_ADMIN
public static final String QUERY_FIND_AVAILABLE_REPO_COMPOSITES_BY_RESOURCE_ID_ADMIN_COUNT
public static final String QUERY_FIND_AVAILABLE_REPO_COMPOSITES_BY_RESOURCE_ID
public static final String QUERY_FIND_AVAILABLE_REPO_COMPOSITES_BY_RESOURCE_ID_COUNT
public static final String QUERY_FIND_CANDIDATES_WITH_ONLY_CONTENT_SOURCE
public static final String QUERY_CHECK_REPO_VISIBLE_BY_SUBJECT_ID
public static final String QUERY_CHECK_REPO_OWNED_BY_SUBJECT_ID
public static final String QUERY_UPDATE_REMOVE_OWNER_FROM_REPOS_OWNED_BY_SUBJECT
Constructor Detail |
---|
public Repo()
public Repo(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 long getCreationDate()
public void setCreationDate(long creationDate)
public long getLastModifiedDate()
sources
of this repo was changed. It is not
necessarily the last time any other part of this repo object was changed (for example, this last modified date
does not necessarily correspond to the time when the description was modified).
public void setLastModifiedDate(long lastModifiedDate)
public boolean isCandidate()
public void setCandidate(boolean candidate)
public String getSyncSchedule()
public void setSyncSchedule(String syncSchedule)
public Set<ResourceRepo> getResourceRepos()
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
getResourceRepos()
or addResource(Resource)
, removeResource(Resource)
.
public ResourceRepo addResource(Resource resource)
resource
-
public ResourceRepo removeResource(Resource resource)
null
is returned.
resource
- the resource to unsubscribe from this repo
null
if the resource was not subscribed to this repopublic Set<RepoContentSource> getRepoContentSources()
getContentSources()
public Set<RepoDistribution> getRepoDistributions()
getContentSources()
public Set<RepoAdvisory> getRepoAdvisories()
public void setRepoAdvisories(Set<RepoAdvisory> repoAdvisories)
public String getSyncStatus()
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 getRepoContentSources()
or addContentSource(ContentSource)
,
removeContentSource(ContentSource)
.
public RepoContentSource addContentSource(ContentSource contentSource)
contentSource
-
public RepoContentSource removeContentSource(ContentSource contentSource)
null
is
returned.
contentSource
- the content source to remove from this repo
null
if the content source was not mapped to this repopublic Set<RepoPackageVersion> getRepoPackageVersions()
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 getRepoPackageVersions()
or addPackageVersion(PackageVersion)
,
removePackageVersion(PackageVersion)
.
public RepoPackageVersion addPackageVersion(PackageVersion packageVersion)
packageVersion
-
public RepoPackageVersion removePackageVersion(PackageVersion packageVersion)
null
is returned.
packageVersion
- the package version to remove from this repo
null
if the package version was not mapped to this repopublic Set<RepoRepoGroup> getRepoRepoGroups()
getRepoGroups()
public Set<RepoGroup> getRepoGroups()
The returned set is not backed by this entity - if you want to alter
the set of associated repogroups,
use getRepoRepoGroups()
or addRepoGroup(RepoGroup)
,
removeRepoGroup(RepoGroup)
.
public RepoRepoGroup addRepoGroup(RepoGroup repoGroup)
repoGroup
-
public RepoRepoGroup removeRepoGroup(RepoGroup repoGroup)
null
is
returned.
repoGroup
- the repo group to disassociate from this repo
null
if the repo group was not associated with this repopublic Set<RepoRepoRelationship> getRepoRepoRelationships()
getRepoRelationships()
public Set<RepoRelationship> getRepoRelationships()
The returned set is not backed by this entity - if you want to alter
the set of associated repoRelationships,
use getRepoRepoRelationships()
or addRepoRelationship(RepoRelationship)
,
removeRepoRelationship(RepoRelationship)
.
public RepoRepoRelationship addRepoRelationship(RepoRelationship repoRelationship)
repoRelationship
-
public RepoRepoRelationship removeRepoRelationship(RepoRelationship repoRelationship)
null
is
returned.
repoRelationship
- the repo relationship to disassociate from this repo
null
if the repo relationship was not associated with this repopublic String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public void setSyncStatus(String syncStatusIn)
syncStatusIn
- public void addSyncResult(RepoSyncResults syncResult)
@NotNull public List<RepoSyncResults> getSyncResults()
public Subject getOwner()
public void setOwner(Subject owner)
owner
- the owner to setpublic boolean isPrivate()
RepositoryManagers
.
Private repositories without an owner are only accessible by the RepositoryManagers.
A public repository (whether owned by a specific user or not) is accessible by anyone.
public void setPrivate(boolean priv)
isPrivate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |