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

@@ -0,0 +1,39 @@
/*
* 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 org.hibernate.proxy.HibernateProxy;
/**
* Utility for unwrapping (getting the actual instance of) an AVMNode from what
* may be a HibernateProxy. Bitter Hibernate note: Hibernate proxies for polymorphic
* types are fundamentally broken. The Hibernate schmucks claim its a CGLIB problem.
* The CGLIB villains dither unintelligibly.
* @author britt
*/
class AVMNodeUnwrapper
{
public static AVMNode Unwrap(AVMNode node)
{
if (node instanceof HibernateProxy)
{
return (AVMNode)((HibernateProxy)node).getHibernateLazyInitializer().getImplementation();
}
return node;
}
}