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
This commit is contained in:
Britt Park
2006-06-17 18:48:44 +00:00
parent a215fb72b6
commit 9c17cfa1e0
16 changed files with 439 additions and 131 deletions

View File

@@ -22,9 +22,7 @@ import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import org.hibernate.LockMode;
import org.hibernate.Session;
import org.hibernate.proxy.HibernateProxy;
/**
* A plain directory. No monkey tricks except for possiblyCopy.
@@ -34,11 +32,6 @@ class PlainDirectoryNodeImpl extends DirectoryNodeImpl implements PlainDirectory
{
static final long serialVersionUID = 9423813734583003L;
/**
* Whether this is a root node.
*/
private boolean fIsRoot;
/**
* Make up a new directory with nothing in it.
* @param repo
@@ -46,7 +39,6 @@ class PlainDirectoryNodeImpl extends DirectoryNodeImpl implements PlainDirectory
public PlainDirectoryNodeImpl(Repository repo)
{
super(repo.getSuperRepository().issueID(), repo);
fIsRoot = false;
repo.getSuperRepository().getSession().save(this);
SuperRepository.GetInstance().getSession().flush();
}
@@ -168,13 +160,7 @@ class PlainDirectoryNodeImpl extends DirectoryNodeImpl implements PlainDirectory
{
return null;
}
AVMNode child = entry.getChild();
if (child instanceof HibernateProxy)
{
HibernateProxy proxy = (HibernateProxy)child;
return (AVMNode)proxy.getHibernateLazyInitializer().getImplementation();
}
return child;
return AVMNodeUnwrapper.Unwrap(entry.getChild());
}
/**