mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Extended VersionDescriptor to include new short and long descriptions.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@4292 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -531,7 +531,9 @@ public class AVMStoreImpl implements AVMStore, Serializable
|
|||||||
new VersionDescriptor(fName,
|
new VersionDescriptor(fName,
|
||||||
vr.getVersionID(),
|
vr.getVersionID(),
|
||||||
vr.getCreator(),
|
vr.getCreator(),
|
||||||
vr.getCreateDate());
|
vr.getCreateDate(),
|
||||||
|
vr.getTag(),
|
||||||
|
vr.getDescription());
|
||||||
descs.add(desc);
|
descs.add(desc);
|
||||||
}
|
}
|
||||||
return descs;
|
return descs;
|
||||||
@@ -555,7 +557,9 @@ public class AVMStoreImpl implements AVMStore, Serializable
|
|||||||
new VersionDescriptor(fName,
|
new VersionDescriptor(fName,
|
||||||
vr.getVersionID(),
|
vr.getVersionID(),
|
||||||
vr.getCreator(),
|
vr.getCreator(),
|
||||||
vr.getCreateDate());
|
vr.getCreateDate(),
|
||||||
|
vr.getTag(),
|
||||||
|
vr.getDescription());
|
||||||
descs.add(desc);
|
descs.add(desc);
|
||||||
}
|
}
|
||||||
return descs;
|
return descs;
|
||||||
|
@@ -48,6 +48,16 @@ public class VersionDescriptor implements Serializable
|
|||||||
*/
|
*/
|
||||||
private long fCreateDate;
|
private long fCreateDate;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The short description.
|
||||||
|
*/
|
||||||
|
private String fTag;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The long description.
|
||||||
|
*/
|
||||||
|
private String fDescription;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* New one up.
|
* New one up.
|
||||||
* @param storeName The store name.
|
* @param storeName The store name.
|
||||||
@@ -58,12 +68,16 @@ public class VersionDescriptor implements Serializable
|
|||||||
public VersionDescriptor(String storeName,
|
public VersionDescriptor(String storeName,
|
||||||
int versionID,
|
int versionID,
|
||||||
String creator,
|
String creator,
|
||||||
long createDate)
|
long createDate,
|
||||||
|
String tag,
|
||||||
|
String description)
|
||||||
{
|
{
|
||||||
fAVMStoreName = storeName;
|
fAVMStoreName = storeName;
|
||||||
fVersionID = versionID;
|
fVersionID = versionID;
|
||||||
fCreator = creator;
|
fCreator = creator;
|
||||||
fCreateDate = createDate;
|
fCreateDate = createDate;
|
||||||
|
fTag = tag;
|
||||||
|
fDescription = description;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -102,6 +116,24 @@ public class VersionDescriptor implements Serializable
|
|||||||
return fCreateDate;
|
return fCreateDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the short description.
|
||||||
|
* @return The short description.
|
||||||
|
*/
|
||||||
|
public String getTag()
|
||||||
|
{
|
||||||
|
return fTag;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the long description.
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public String getDescription()
|
||||||
|
{
|
||||||
|
return fDescription;
|
||||||
|
}
|
||||||
|
|
||||||
public String toString()
|
public String toString()
|
||||||
{
|
{
|
||||||
StringBuilder builder = new StringBuilder();
|
StringBuilder builder = new StringBuilder();
|
||||||
@@ -113,6 +145,8 @@ public class VersionDescriptor implements Serializable
|
|||||||
builder.append(fCreator);
|
builder.append(fCreator);
|
||||||
builder.append(":");
|
builder.append(":");
|
||||||
builder.append(new Date(fCreateDate).toString());
|
builder.append(new Date(fCreateDate).toString());
|
||||||
|
builder.append(":");
|
||||||
|
builder.append(fTag);
|
||||||
builder.append("]");
|
builder.append("]");
|
||||||
return builder.toString();
|
return builder.toString();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user