org.shredzone.repowatch.model
Class Repository

java.lang.Object
  extended by org.shredzone.repowatch.model.BaseModel
      extended by org.shredzone.repowatch.model.Repository
All Implemented Interfaces:
Serializable

public class Repository
extends BaseModel

Represents a yum repository.

Version:
$Revision: 317 $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.shredzone.repowatch.model.BaseModel
id
 
Constructor Summary
Repository()
           
 
Method Summary
 String getArchitecture()
          Architecture of the repository.
 String getBaseUrl()
          Base URL of the repository itself.
 Domain getDomain()
          Domain this repository belongs to
 Date getFirstScanned()
          First time that repository was scanned.
 long getLastModified()
          Time the primary.xml.gz was most recently changed.
 Date getLastModifiedDate()
          As getLastModified(), but returning a Date object.
 Date getLastScanned()
          Most recent time that repository was scanned.
 String getName()
          Name of the repository.
 String getRepoviewUrl()
          Base URL of repoview pages.
 void setArchitecture(String architecture)
           
 void setBaseUrl(String baseUrl)
           
 void setDomain(Domain domain)
           
 void setFirstScanned(Date firstScanned)
           
 void setLastModified(long lastModified)
           
 void setLastScanned(Date lastScanned)
           
 void setName(String name)
           
 void setRepoviewUrl(String repoviewUrl)
           
 String toString()
          Returns a human readable string for the repository.
 
Methods inherited from class org.shredzone.repowatch.model.BaseModel
equals, getId, hashCode, setId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Repository

public Repository()
Method Detail

getDomain

public Domain getDomain()
Domain this repository belongs to


setDomain

public void setDomain(Domain domain)

getName

public String getName()
Name of the repository. (e.g. "updates")


setName

public void setName(String name)

getArchitecture

public String getArchitecture()
Architecture of the repository. (e.g. "i386")


setArchitecture

public void setArchitecture(String architecture)

getBaseUrl

public String getBaseUrl()
Base URL of the repository itself.


setBaseUrl

public void setBaseUrl(String baseUrl)

getRepoviewUrl

public String getRepoviewUrl()
Base URL of repoview pages.


setRepoviewUrl

public void setRepoviewUrl(String repoviewUrl)

getFirstScanned

public Date getFirstScanned()
First time that repository was scanned.


setFirstScanned

public void setFirstScanned(Date firstScanned)

getLastScanned

public Date getLastScanned()
Most recent time that repository was scanned.


setLastScanned

public void setLastScanned(Date lastScanned)

getLastModified

public long getLastModified()
Time the primary.xml.gz was most recently changed. This is a long!


setLastModified

public void setLastModified(long lastModified)

getLastModifiedDate

public Date getLastModifiedDate()
As getLastModified(), but returning a Date object.


toString

public String toString()
Returns a human readable string for the repository.

Overrides:
toString in class Object
Returns:
Human readable string, e.g. "fedora f7 updates (i386)".


Copyright © 2007-2011 shredzone.org. All Rights Reserved.