mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
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:
@@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user