mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Added two new fields to VersionRoot (the version record), a short description,
and a long description. Adjusted signature of createSnapshot(), and update() to match, and thus actions and tests that needed to be fixed. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@4290 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -58,6 +58,16 @@ class VersionRootImpl implements VersionRoot, Serializable
|
||||
*/
|
||||
private DirectoryNode fRoot;
|
||||
|
||||
/**
|
||||
* The short description.
|
||||
*/
|
||||
private String fTag;
|
||||
|
||||
/**
|
||||
* The thick description.
|
||||
*/
|
||||
private String fDescription;
|
||||
|
||||
/**
|
||||
* A default constructor.
|
||||
*/
|
||||
@@ -77,13 +87,17 @@ class VersionRootImpl implements VersionRoot, Serializable
|
||||
DirectoryNode root,
|
||||
int versionID,
|
||||
long createDate,
|
||||
String creator)
|
||||
String creator,
|
||||
String tag,
|
||||
String description)
|
||||
{
|
||||
fAVMStore = store;
|
||||
fRoot = root;
|
||||
fVersionID = versionID;
|
||||
fCreateDate = createDate;
|
||||
fCreator = creator;
|
||||
fTag = tag;
|
||||
fDescription = description;
|
||||
}
|
||||
|
||||
public long getCreateDate()
|
||||
@@ -184,5 +198,41 @@ class VersionRootImpl implements VersionRoot, Serializable
|
||||
{
|
||||
return fAVMStore.hashCode() + fVersionID;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the tag (short description).
|
||||
* @return The tag.
|
||||
*/
|
||||
public String getTag()
|
||||
{
|
||||
return fTag;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the tag (short description).
|
||||
* @param tag The short description.
|
||||
*/
|
||||
public void setTag(String tag)
|
||||
{
|
||||
fTag = tag;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the thick description.
|
||||
* @return The thick description.
|
||||
*/
|
||||
public String getDescription()
|
||||
{
|
||||
return fDescription;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the thick description.
|
||||
* @param description The thick discription.
|
||||
*/
|
||||
public void setDescription(String description)
|
||||
{
|
||||
fDescription = description;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user