org.apache.archiva.admin.model.beans
Class RepositoryGroup

java.lang.Object
  extended by org.apache.archiva.admin.model.beans.RepositoryGroup
All Implemented Interfaces:
Serializable

public class RepositoryGroup
extends Object
implements Serializable

Since:
1.4-M1
Author:
Olivier Lamy
See Also:
Serialized Form

Field Summary
private  String id
          repository group Id
private  String mergedIndexPath
          The path of the merged index.
private  int mergedIndexTtl
          The TTL (time to live) of the repo group's merged index.
private  List<String> repositories
          repositories ids
 
Constructor Summary
RepositoryGroup()
           
RepositoryGroup(String id, List<String> repositories)
           
 
Method Summary
 void addRepository(String string)
          Method addRepository.
 boolean equals(Object other)
           
 String getId()
          Get the id of the repository group.
 String getMergedIndexPath()
           
 int getMergedIndexTtl()
           
 List<String> getRepositories()
          Method getRepositories.
 int hashCode()
           
 RepositoryGroup mergedIndexPath(String mergedIndexPath)
           
 RepositoryGroup mergedIndexTtl(int mergedIndexTtl)
           
 void removeRepository(String string)
          Method removeRepository.
 void setId(String id)
          Set the id of the repository group.
 void setMergedIndexPath(String mergedIndexPath)
           
 void setMergedIndexTtl(int mergedIndexTtl)
          Set the TTL of the repo group's merged index.
 void setRepositories(List<String> repositories)
          Set the list of repository ids under the group.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

id

private String id
repository group Id


repositories

private List<String> repositories
repositories ids


mergedIndexPath

private String mergedIndexPath
The path of the merged index.


mergedIndexTtl

private int mergedIndexTtl
The TTL (time to live) of the repo group's merged index.

Constructor Detail

RepositoryGroup

public RepositoryGroup()

RepositoryGroup

public RepositoryGroup(String id,
                       List<String> repositories)
Method Detail

addRepository

public void addRepository(String string)
Method addRepository.

Parameters:
string -

getId

public String getId()
Get the id of the repository group.

Returns:
String

getRepositories

public List<String> getRepositories()
Method getRepositories.

Returns:
List

removeRepository

public void removeRepository(String string)
Method removeRepository.

Parameters:
string -

setId

public void setId(String id)
Set the id of the repository group.

Parameters:
id -

setRepositories

public void setRepositories(List<String> repositories)
Set the list of repository ids under the group.

Parameters:
repositories -

getMergedIndexPath

public String getMergedIndexPath()

setMergedIndexPath

public void setMergedIndexPath(String mergedIndexPath)

getMergedIndexTtl

public int getMergedIndexTtl()

setMergedIndexTtl

public void setMergedIndexTtl(int mergedIndexTtl)
Set the TTL of the repo group's merged index.

Parameters:
mergedIndexTtl -

mergedIndexPath

public RepositoryGroup mergedIndexPath(String mergedIndexPath)

mergedIndexTtl

public RepositoryGroup mergedIndexTtl(int mergedIndexTtl)

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.