Britt Park 9c17cfa1e0 Purge tests cover more now. Moved purging queries into mapping file.
Added call to AVMService to get Versions
by creation date.  GetRepositoryVersions methods now return Lists of 
VersionDescriptors, value objects with the attributes of a version.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3131 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-06-17 18:48:44 +00:00

100 lines
2.2 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;
/**
* All the information about a particular version.
* @author britt
*/
public class VersionDescriptor
{
/**
* The name of the repository this version belongs to.
*/
private String fRepositoryName;
/**
* 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 repName The repository name.
* @param versionID The version id.
* @param creator The creator.
* @param createDate The create date.
*/
public VersionDescriptor(String repName,
int versionID,
String creator,
long createDate)
{
fRepositoryName = repName;
fVersionID = versionID;
fCreator = creator;
fCreateDate = createDate;
}
/**
* Get the repository name.
* @return The repository name.
*/
public String getRepositoryName()
{
return fRepositoryName;
}
/**
* 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;
}
}