mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
AVM DAO refactor
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16138 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -39,11 +39,11 @@ public class DeletedNodeImpl extends AVMNodeImpl implements DeletedNode
|
||||
* The type of node that this is a deleted node for.
|
||||
*/
|
||||
private int fDeletedType;
|
||||
|
||||
|
||||
/**
|
||||
* For Hibernate's use.
|
||||
* Default constructor.
|
||||
*/
|
||||
protected DeletedNodeImpl()
|
||||
public DeletedNodeImpl()
|
||||
{
|
||||
}
|
||||
|
||||
@@ -61,12 +61,16 @@ public class DeletedNodeImpl extends AVMNodeImpl implements DeletedNode
|
||||
AVMStore store, Long parentAcl, ACLCopyMode mode)
|
||||
{
|
||||
super(store);
|
||||
|
||||
setDeletedType(other.getDeletedType());
|
||||
|
||||
copyACLs(other, parentAcl, mode);
|
||||
copyCreationAndOwnerBasicAttributes(other);
|
||||
|
||||
AVMDAOs.Instance().fAVMNodeDAO.save(this);
|
||||
AVMDAOs.Instance().fAVMNodeDAO.flush();
|
||||
|
||||
copyProperties(other);
|
||||
copyAspects(other);
|
||||
copyACLs(other, parentAcl, mode);
|
||||
copyCreationAndOwnerBasicAttributes(other);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -138,7 +142,7 @@ public class DeletedNodeImpl extends AVMNodeImpl implements DeletedNode
|
||||
-1,
|
||||
false,
|
||||
-1,
|
||||
fDeletedType);
|
||||
getDeletedType());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -168,7 +172,7 @@ public class DeletedNodeImpl extends AVMNodeImpl implements DeletedNode
|
||||
-1,
|
||||
false,
|
||||
-1,
|
||||
fDeletedType);
|
||||
getDeletedType());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -200,7 +204,7 @@ public class DeletedNodeImpl extends AVMNodeImpl implements DeletedNode
|
||||
-1,
|
||||
false,
|
||||
-1,
|
||||
fDeletedType);
|
||||
getDeletedType());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user