Britt Park
f80dcdd7e4
AVMNodeDescriptor now can be asked what type of deleted node it is via isDeletedFile() and
...
isDeletedDirectory().
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4571 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-11 17:45:36 +00:00
Britt Park
df81a1e14a
Fix for concurrency bug found last night, as best as I can tell so far.
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4558 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-08 03:48:08 +00:00
Britt Park
8b65510d6f
This checkin does two things:
...
1. Refines the semantics of ghost creation, so that they only appear when
warranted.
2. Implements a mechanism for filtering out files which should not appear in comparison
results or be pushed along by updates.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4525 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-05 22:26:02 +00:00
Britt Park
fa0bb97dc1
Rejiggered ChildEntry and its mapping, for considerably better performance. Actually
...
it was kind of a Doh! moment.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@4336 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-11-12 13:53:29 +00:00
Britt Park
20bff37610
Purged two vestigial arguments from DirectoryNode.lookupChild() interface.
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3981 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-09-30 14:49:57 +00:00
Britt Park
5e36db4b45
Reorganized AVMContext convenience class for accessing various singletons
...
into AVMDAOs for accessing AVM DAO singletons and RawServices for accessing
uninstrumented versions of some services.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3980 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-09-30 03:46:23 +00:00
Britt Park
752e46e0f1
In certain circumstances update was not capturing aspects, properties, and
...
ACLs. This fixes that.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3979 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-09-29 21:29:45 +00:00
Britt Park
89d66e393e
Added a natural-id element to mapping definition for ChildEntries.
...
Added two apparently necessary hibernate flushes.
Added a createSnapshot call after unzipping in ImportWebsiteDialog.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3896 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-09-22 17:28:05 +00:00
Britt Park
90d171b913
Moved dangerous helper methods out of AVMService.
...
Reworked handling of path lookup failures to not throw exceptions
internally, to improve performance of certain layered directory
operations. Unfortunately there remains at least one scenario,
handling of bulk loads, and promotions of deeply nested directories in
layered contexts, in which performance is considerably less than
ideal.
Made AVMService.createBranch() and AVMSyncService.update() perform
implicit snapshots of source tree's stores before proceeding.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3812 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-09-17 20:05:27 +00:00
Britt Park
14ebe1726f
Added two more special purpose calls, to improve flatten performance from
...
rotten to ok.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3809 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-09-15 21:26:26 +00:00
Britt Park
fc2bfb0315
Checkpoint of AVMSyncService support changes. Fix of AVMNodeConverter not liking
...
trailing '/'s.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3803 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-09-15 14:03:22 +00:00
Britt Park
83b4cdb76d
Fixed an embarassing not so corner case failure. Non primary
...
layered directories cannot be just linked in for update, but must instead
be recursively linked in.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3801 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-09-15 03:04:57 +00:00
Britt Park
1386cedef5
AVMSyncService checkpoint. Compare() substantially works but is only
...
lightly tested. This uncovered a bug in LayeredDirectoryNodeImpl of
relatively ancient etiology. I thought I had a test that would have
caught it. I was wrong.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3796 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-09-14 18:43:22 +00:00
Britt Park
7fd363c599
Added link call to AVMService. It essentially creates a hard link
...
without the bad aftertaste. It's needed for the AVMSyncService's
update method which will move new versions of nodes from one AVM
tree to another. Also a checkpoint for AVMSyncService. One can safely
call compare and get back an empty List of AVMDifferences.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3784 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-09-13 19:26:11 +00:00
Britt Park
5e0378deb2
This exposes DeletedNodes through AVMService via calls for lookup
...
and directory listing that take an includeLinks flag. Original calls
(w/o a flag) should have unchanged behavior.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3752 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-09-11 00:00:57 +00:00
Britt Park
8a95b09b98
Added new AVM node type DeletedNode (aka, ghost, tombstone), a marker node for a
...
node that has been deleted in a version. This makes tree comparisons easier by
resolving the cases in which one wants to know whether a deletions is more or less
recent than another version of a node. Along the way got rid of DeletedChild and
friends including a table in the schema, since DeletedNode takes on all the work
that it performed.
Deleted two illegally named files in Virgin content.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3748 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-09-10 17:20:35 +00:00
Britt Park
11772e5796
Fix for yet another wrong-order-save-for-hibernate bug. I believe.
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3744 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-09-09 21:21:30 +00:00
Britt Park
17284e4dae
More touch ups to AVM permissions stuff. ACLs are properly copied on write.
...
OrphanReaper cleans up ACLs. Tests of same.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3710 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-09-06 20:53:38 +00:00
Britt Park
fff09ab01d
Aspects on AVM nodes are copied on write. Also missing configuration change
...
from last checkin.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3699 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-09-05 18:22:40 +00:00
Britt Park
c03b967e71
Got rid of the NewInAVMStore table by folding it into the AVMNode
...
table.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3665 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-09-03 22:39:35 +00:00
Britt Park
db3c29b45e
Moved stuff around to be more Alfresco standard.
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3658 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-09-02 00:45:48 +00:00
Britt Park
55c4d49fbf
Added getDirectoryListingDirect() and getDeleted() to AVMService
...
interface. These return respectively those nodes directly
contained by a directory and the names of those nodes that
have been deleted in a directory.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3383 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-07-24 00:35:18 +00:00
Britt Park
e2eec832f1
Added QName indexed Properties to AVMNodes.
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3357 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-07-19 22:15:09 +00:00
Britt Park
e5eb45da0f
Introducing a new API call into AVMService:
...
LayeringDescriptor getLayeringInfo(version, path);
LayeringDescriptor has three methods:
isBackground() Is the looked up node a background node.
getPathAVMStore() Gets a descriptor for the store the path was looked up in.
getNativeAVMStore() Gets the store that the actual node was found in.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3348 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-07-18 19:08:21 +00:00
Britt Park
60cdda3f13
Renamed a few things. What used to be SuperRepository (kind of meaning free name
...
wasn't it) is now AVMRepository. What used to be Repository is now AVMStore as it
more closely matches what is meant by a store in Alfresco. Many adjustments
in ancillary class names, references, and comments followed.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3329 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-07-16 18:19:59 +00:00
Britt Park
6ac87efa5a
Moved the tracking of newly introduced nodes into its own table. Simplifies things a bit.
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3320 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-07-13 15:48:10 +00:00
Britt Park
b601821d98
Just a pass at kruft removal.
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3307 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-07-12 15:28:33 +00:00
Britt Park
d0b5b14af1
Refactored persistence for AVM. I'm guessing because I dropped a number of
...
unnecessary flushes seems about 20% snappier.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3296 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-07-11 09:32:13 +00:00
Britt Park
b55958b062
Made Lookup::getIndirectionPath() somewhat less ridiculous.
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3262 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-06-28 13:45:17 +00:00
Britt Park
be6dd8c9dc
Changed signatures of directory listing returning methods to
...
SortedMap where appropriate. Fixed embarassing accumulation of
broken javadocs.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3258 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-06-27 23:29:57 +00:00
Britt Park
39728a6f86
Added the opacity bit to layered directories, and a method to set it. The opacity
...
status is returned in AVMNodeDescriptors now. Basic test added. Also restored
a bunch of commented out checks in a number of tests.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3257 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-06-27 21:26:39 +00:00
Britt Park
72f2ff989d
A new concurrency test. Fixed bug in the way that paths were being handed
...
back in AVMNodeDescriptors.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3255 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-06-27 17:39:27 +00:00
Britt Park
c6dfeb1c9d
Added pessimistic locking in several places to shut down deadlocks.
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3252 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-06-26 16:43:35 +00:00
Britt Park
b580c28494
Got rid of a lot of no longer needed work in Lookup.add(). Minimized
...
the number of explicit session.flush()s. Fixed several places that
were throwing uninformative exceptions.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3227 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-06-23 14:57:26 +00:00
Britt Park
91e39c8fd6
Some minor cleanups. Added a few missing operations to console.
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3182 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-06-22 00:49:10 +00:00
Britt Park
1318a5204b
Changed copy on write to occur during lookup, rather than after lookup.
...
Much carnage, but it's way faster.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3172 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-06-21 13:07:42 +00:00
Britt Park
8614d80962
Purged some useless passing of SuperRepositories as parameters.
...
Yet another concurrency test.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3155 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-06-19 23:59:19 +00:00
Britt Park
606096011c
Got rid of parent member of AVMNodes. Duplicated data unnecessarily.
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3136 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-06-18 17:03:49 +00:00
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
Britt Park
936f6d7021
This checks in the current state of WCM development.
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3128 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-06-16 16:59:15 +00:00