org.rhq.enterprise.server.plugin.pc.content
Class RepoDetails

java.lang.Object
  extended by org.rhq.enterprise.server.plugin.pc.content.RepoDetails

public class RepoDetails
extends Object

Contains the information used to describe a single repo being introduced to the system through the RepoSource interface. The parent-child relationship between repos is done through the call to setParentRepoName(String).

Author:
Jason Dobies

Constructor Summary
RepoDetails(String name)
           
RepoDetails(String name, String parentRepoName)
           
 
Method Summary
 String getDescription()
          Returns a user-readable description of what the repo contains.
 String getName()
          Returns the identifying name of the repo.
 String getParentRepoName()
          Returns the name (identifier) of the parent repo for this repo.
 String getRepoGroup()
          Returns the name (used to identify the group in the server) of the group the repo should be belong to when it is imported.
 void setDescription(String description)
          Sets the name of the user-readable description of the repo contents.
 void setName(String name)
          Sets the name of the repo being represented.
 void setParentRepoName(String parentRepoName)
          Sets the name of the parent repo to associate this repo with.
 void setRepoGroup(String repoGroup)
          Sets the name of the group to assign this repo to.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RepoDetails

public RepoDetails(String name)

RepoDetails

public RepoDetails(String name,
                   String parentRepoName)
Method Detail

getName

public String getName()
Returns the identifying name of the repo.

Returns:
cannot be null

setName

public void setName(String name)
Sets the name of the repo being represented.

Parameters:
name - cannot be null
Throws:
IllegalArgumentException - is name is null

getParentRepoName

public String getParentRepoName()
Returns the name (identifier) of the parent repo for this repo. The name returned here should match up with the name returned the call to getName() on the parent repo.

Returns:
may be null

setParentRepoName

public void setParentRepoName(String parentRepoName)
Sets the name of the parent repo to associate this repo with. See getParentRepoName() for more details.

Parameters:
parentRepoName - may be null

getDescription

public String getDescription()
Returns a user-readable description of what the repo contains.

Returns:
may be null

setDescription

public void setDescription(String description)
Sets the name of the user-readable description of the repo contents.

Parameters:
description - may be null

getRepoGroup

public String getRepoGroup()
Returns the name (used to identify the group in the server) of the group the repo should be belong to when it is imported.

Returns:
may be null

setRepoGroup

public void setRepoGroup(String repoGroup)
Sets the name of the group to assign this repo to. If the group doesn't exist in the system or elsewhere in the import repos report, the repo will be created with no group membership.

Parameters:
repoGroup - may be null to indicate the repo does not belong to a group

toString

public String toString()
Overrides:
toString in class Object


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