org.opensolaris.opengrok.history
Class RepositoryInfo

java.lang.Object
  extended by org.opensolaris.opengrok.history.RepositoryInfo
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Repository

public class RepositoryInfo
extends java.lang.Object
implements java.io.Serializable

Class to contain the common info for a repository. This object will live on the server and the client side, so don't add logic that will only work on one side in this object.

See Also:
Serialized Form

Field Summary
protected  java.lang.String datePattern
           
protected  java.lang.String directoryName
           
protected  boolean remote
           
protected  java.lang.String type
           
protected  boolean working
           
 
Constructor Summary
RepositoryInfo()
          Empty constructor to support serialization.
RepositoryInfo(RepositoryInfo orig)
           
 
Method Summary
 java.lang.String getDatePattern()
           
 java.lang.String getDirectoryName()
          Get the name of the root directory for this repository.
 java.lang.String getType()
          get property type
 boolean isRemote()
          Is the history and version information for this repository stored on a remote server?
 boolean isWorking()
          Returns true if this repository is usable in this context (for SCM systems that use external binaries, the binary must be availabe etc)
 void setDatePattern(java.lang.String datePattern)
           
 void setDirectoryName(java.lang.String directoryName)
          Specify the name of the root directory for this repository.
 void setRemote(boolean remote)
          Set the property remote
 void setType(java.lang.String type)
          Set property type
 void setWorking(boolean working)
          Set the property working
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

directoryName

protected java.lang.String directoryName

working

protected boolean working

type

protected java.lang.String type

remote

protected boolean remote

datePattern

protected java.lang.String datePattern
Constructor Detail

RepositoryInfo

public RepositoryInfo()
Empty constructor to support serialization.


RepositoryInfo

public RepositoryInfo(RepositoryInfo orig)
Method Detail

getDirectoryName

public java.lang.String getDirectoryName()
Get the name of the root directory for this repository.

Returns:
the name of the root directory

setDirectoryName

public void setDirectoryName(java.lang.String directoryName)
Specify the name of the root directory for this repository.

Parameters:
directoryName - the new name of the root directory

isWorking

public boolean isWorking()
Returns true if this repository is usable in this context (for SCM systems that use external binaries, the binary must be availabe etc)

Returns:
true if the HistoryGuru may use the repository

setWorking

public void setWorking(boolean working)
Set the property working

Parameters:
working -

isRemote

public boolean isRemote()
Is the history and version information for this repository stored on a remote server?

Returns:
true if the history is stored on a remote server.

setRemote

public void setRemote(boolean remote)
Set the property remote

Parameters:
remote -

getType

public java.lang.String getType()
get property type

Returns:
type

setType

public void setType(java.lang.String type)
Set property type

Parameters:
type -

setDatePattern

public void setDatePattern(java.lang.String datePattern)

getDatePattern

public java.lang.String getDatePattern()