org.rhq.core.domain.content
Class RepoGroup

java.lang.Object
  extended by org.rhq.core.domain.content.RepoGroup
All Implemented Interfaces:
Serializable

public class RepoGroup
extends Object
implements Serializable

A RepoGroup represents a set of related Repos. Repos can be tied together by different (@link RepoGroupType)s.

See Also:
Serialized Form

Field Summary
static String QUERY_FIND_BY_NAME
           
 
Constructor Summary
RepoGroup()
           
RepoGroup(String name)
           
 
Method Summary
 RepoRepoGroup addRepo(Repo repo)
          Directly assign a repo to this repogroup.
 boolean equals(Object obj)
           
 String getDescription()
          User specified description of the repoGroup.
 int getId()
           
 String getName()
          Programmatic name of the repoGroup.
 RepoGroupType getRepoGroupType()
          Describes the capabilities of this repoGroup.
 Set<RepoRepoGroup> getRepoRepoGroups()
          Returns the explicit mapping entities.
 Set<Repo> getRepos()
          The repos that this repo group is associated with.
 int hashCode()
           
 RepoRepoGroup removeRepo(Repo repo)
          Removes the repo from this repogroup, if it exists.
 void setDescription(String description)
           
 void setId(int id)
           
 void setName(String name)
           
 void setRepoGroupType(RepoGroupType repoGroupType)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

QUERY_FIND_BY_NAME

public static final String QUERY_FIND_BY_NAME
See Also:
Constant Field Values
Constructor Detail

RepoGroup

public RepoGroup()

RepoGroup

public RepoGroup(String name)
Method Detail

getId

public int getId()

setId

public void setId(int id)

getName

public String getName()
Programmatic name of the repoGroup.


setName

public void setName(String name)

getDescription

public String getDescription()
User specified description of the repoGroup.


setDescription

public void setDescription(String description)

getRepoGroupType

public RepoGroupType getRepoGroupType()
Describes the capabilities of this repoGroup.


setRepoGroupType

public void setRepoGroupType(RepoGroupType repoGroupType)

getRepoRepoGroups

public Set<RepoRepoGroup> getRepoRepoGroups()
Returns the explicit mapping entities.

Returns:
the mapping entities
See Also:
#getRepoGroup()

getRepos

public Set<Repo> getRepos()
The repos that this repo group is associated with.

The returned set is not backed by this entity - if you want to alter the set of associated repos, use getRepoRepoGroups() or addRepo(Repo), removeRepo(Repo).


addRepo

public RepoRepoGroup addRepo(Repo repo)
Directly assign a repo to this repogroup.

Parameters:
repo -
Returns:
the mapping that was added

removeRepo

public RepoRepoGroup removeRepo(Repo repo)
Removes the repo from this repogroup, if it exists. If it does exist, the mapping that was removed is returned; if the given repo did not did not belong to this repo group, null is returned.

Parameters:
repo - the repo to remove from this repo group
Returns:
the mapping that was removed or null if the repo did not belong to this repo group

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.