org.alfresco.repo.avm
Class VersionRootImpl

java.lang.Object
  extended by org.alfresco.repo.avm.VersionRootImpl
All Implemented Interfaces:
java.io.Serializable, VersionRoot

public class VersionRootImpl
extends java.lang.Object
implements VersionRoot, java.io.Serializable

Hold a single version root.

See Also:
Serialized Form

Constructor Summary
VersionRootImpl()
          A default constructor.
VersionRootImpl(AVMStore store, DirectoryNode root, int versionID, long createDate, java.lang.String creator, java.lang.String tag, java.lang.String description)
          Rich constructor.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Check equality.
 AVMStore getAvmStore()
           
 long getCreateDate()
           
 java.lang.String getCreator()
           
 java.lang.String getDescription()
          Get the thick description.
 java.lang.Long getId()
           
 DirectoryNode getRoot()
           
 java.lang.String getTag()
          Get the tag (short description).
 int getVersionID()
          Get the version id.
 int hashCode()
          Generate a hash code.
 void setAvmStore(AVMStore store)
           
 void setCreateDate(long createDate)
           
 void setCreator(java.lang.String creator)
           
 void setDescription(java.lang.String description)
          Set the thick description.
 void setId(long id)
           
 void setRoot(DirectoryNode root)
           
 void setTag(java.lang.String tag)
          Set the tag (short description).
 void setVersionID(int versionID)
          Set the versionID.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VersionRootImpl

public VersionRootImpl()
A default constructor.


VersionRootImpl

public VersionRootImpl(AVMStore store,
                       DirectoryNode root,
                       int versionID,
                       long createDate,
                       java.lang.String creator,
                       java.lang.String tag,
                       java.lang.String description)
Rich constructor.

Parameters:
store -
root -
versionID -
createDate -
creator -
Method Detail

getCreateDate

public long getCreateDate()
Specified by:
getCreateDate in interface VersionRoot
Returns:
the createDate

setCreateDate

public void setCreateDate(long createDate)
Specified by:
setCreateDate in interface VersionRoot
Parameters:
createDate - the createDate to set

getCreator

public java.lang.String getCreator()
Specified by:
getCreator in interface VersionRoot
Returns:
the creator

setCreator

public void setCreator(java.lang.String creator)
Specified by:
setCreator in interface VersionRoot
Parameters:
creator - the creator to set

getId

public java.lang.Long getId()
Specified by:
getId in interface VersionRoot
Returns:
the id

setId

public void setId(long id)
Specified by:
setId in interface VersionRoot
Parameters:
id - the id to set

getAvmStore

public AVMStore getAvmStore()
Specified by:
getAvmStore in interface VersionRoot
Returns:
the AVMStore

setAvmStore

public void setAvmStore(AVMStore store)
Specified by:
setAvmStore in interface VersionRoot
Parameters:
store - the store to set

getRoot

public DirectoryNode getRoot()
Specified by:
getRoot in interface VersionRoot
Returns:
the root

setRoot

public void setRoot(DirectoryNode root)
Specified by:
setRoot in interface VersionRoot
Parameters:
root - the root to set

setVersionID

public void setVersionID(int versionID)
Set the versionID.

Specified by:
setVersionID in interface VersionRoot
Parameters:
versionID -

getVersionID

public int getVersionID()
Get the version id.

Specified by:
getVersionID in interface VersionRoot
Returns:
The version id.

equals

public boolean equals(java.lang.Object obj)
Check equality. Based on AVMStore equality and version id equality.

Overrides:
equals in class java.lang.Object
Parameters:
obj -
Returns:
Equality.

hashCode

public int hashCode()
Generate a hash code.

Overrides:
hashCode in class java.lang.Object
Returns:
The hash code.

getTag

public java.lang.String getTag()
Get the tag (short description).

Specified by:
getTag in interface VersionRoot
Returns:
The tag.

setTag

public void setTag(java.lang.String tag)
Set the tag (short description).

Specified by:
setTag in interface VersionRoot
Parameters:
tag - The short description.

getDescription

public java.lang.String getDescription()
Get the thick description.

Specified by:
getDescription in interface VersionRoot
Returns:
The thick description.

setDescription

public void setDescription(java.lang.String description)
Set the thick description.

Specified by:
setDescription in interface VersionRoot
Parameters:
description - The thick discription.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.