mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-06-02 17:35:18 +00:00
wasn't it) is now AVMRepository. What used to be Repository is now AVMStore as it more closely matches what is meant by a store in Alfresco. Many adjustments in ancillary class names, references, and comments followed. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3329 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
117 lines
2.6 KiB
Java
117 lines
2.6 KiB
Java
/*
|
|
* Copyright (C) 2006 Alfresco, Inc.
|
|
*
|
|
* Licensed under the Mozilla Public License version 1.1
|
|
* with a permitted attribution clause. You may obtain a
|
|
* copy of the License at
|
|
*
|
|
* http://www.alfresco.org/legal/license.txt
|
|
*
|
|
* Unless required by applicable law or agreed to in writing,
|
|
* software distributed under the License is distributed on an
|
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
|
* either express or implied. See the License for the specific
|
|
* language governing permissions and limitations under the
|
|
* License.
|
|
*/
|
|
|
|
package org.alfresco.repo.avm;
|
|
|
|
import java.util.Date;
|
|
|
|
/**
|
|
* All the information about a particular version.
|
|
* @author britt
|
|
*/
|
|
public class VersionDescriptor
|
|
{
|
|
/**
|
|
* The name of the store this version belongs to.
|
|
*/
|
|
private String fAVMStoreName;
|
|
|
|
/**
|
|
* The version id.
|
|
*/
|
|
private int fVersionID;
|
|
|
|
/**
|
|
* The creator of this version.
|
|
*/
|
|
private String fCreator;
|
|
|
|
/**
|
|
* The date of this version's creation.
|
|
*/
|
|
private long fCreateDate;
|
|
|
|
/**
|
|
* New one up.
|
|
* @param storeName The store name.
|
|
* @param versionID The version id.
|
|
* @param creator The creator.
|
|
* @param createDate The create date.
|
|
*/
|
|
public VersionDescriptor(String storeName,
|
|
int versionID,
|
|
String creator,
|
|
long createDate)
|
|
{
|
|
fAVMStoreName = storeName;
|
|
fVersionID = versionID;
|
|
fCreator = creator;
|
|
fCreateDate = createDate;
|
|
}
|
|
|
|
/**
|
|
* Get the store name.
|
|
* @return The store name.
|
|
*/
|
|
public String getAVMStoreName()
|
|
{
|
|
return fAVMStoreName;
|
|
}
|
|
|
|
/**
|
|
* Get the version ID
|
|
* @return The version ID
|
|
*/
|
|
public int getVersionID()
|
|
{
|
|
return fVersionID;
|
|
}
|
|
|
|
/**
|
|
* Get the creator of this version.
|
|
* @return The creator.
|
|
*/
|
|
public String getCreator()
|
|
{
|
|
return fCreator;
|
|
}
|
|
|
|
/**
|
|
* Get the creation date.
|
|
* @return The creation date.
|
|
*/
|
|
public long getCreateDate()
|
|
{
|
|
return fCreateDate;
|
|
}
|
|
|
|
public String toString()
|
|
{
|
|
StringBuilder builder = new StringBuilder();
|
|
builder.append("[");
|
|
builder.append(fAVMStoreName);
|
|
builder.append(":");
|
|
builder.append("" + fVersionID);
|
|
builder.append(":");
|
|
builder.append(fCreator);
|
|
builder.append(":");
|
|
builder.append(new Date(fCreateDate).toString());
|
|
builder.append("]");
|
|
return builder.toString();
|
|
}
|
|
}
|