Andrew Hind
32c25405f5
Fix for sql server
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4923 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-01-24 18:29:14 +00:00
Britt Park
bfeab49387
This loosens a constraint that caused Sybase to barf with a constraint violation. I think.
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4834 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-01-15 15:46:44 +00:00
Britt Park
a9461fe53b
I think this fixes the race under load that I discovered. More testing is
...
needed. Once again this will require a new database as I've changed the AVM schema
back.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4693 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-23 21:33:08 +00:00
Britt Park
c4ae3bd5fa
Clears up problems submitting deleted files via workflow. Still need to systematically
...
go through DeletedNode implementation to make sure it's fully first class.
Adding some debugging code that throws exceptions if it detects certain kinds of races.
It can be turned off but I want to leave it on until GA. And, you'll need to start from a clean
database as the AVM schema have changed.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4683 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-21 18:19:54 +00:00
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
331bba1249
Cleaned up and generalized purported EnhancerByCGLIB workaround.
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4523 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-05 16:28:58 +00:00
Britt Park
e8b37eb880
Attempt to at working around CGLIB bug.
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4517 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-05 03:37:39 +00:00
Britt Park
c33dcb6412
Possible workaraound for charming new EnhancerByCGLIB bug.
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4516 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-05 03:21:56 +00:00
Britt Park
b19c40939f
Added a primitive but seemingly effective store name cache. Switching the
...
stores table to a synthetic primary key caused a 15% performance drop. This gets
that performance back, plus or minus.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4493 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-02 20:53:33 +00:00
Britt Park
b8ff632f15
AVM stores are renamable. Beware. Database schema has changed since I needed to
...
introduce a synthetic primary key into the stores table.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4492 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-02 20:03:20 +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
f501073de5
Added two new fields to VersionRoot (the version record), a short description,
...
and a long description. Adjusted signature of createSnapshot(), and update()
to match, and thus actions and tests that needed to be fixed.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@4290 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-11-05 23:41:55 +00:00
Britt Park
0fc71b8d68
Checkpoint of WCM workflow package support.
...
Setting titled and uifacets via AVMService instead of through
AVMNodeService. 1000 file import takes ~5 minutes. Awful but better
than before.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3995 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-10-02 19:42:56 +00:00
Britt Park
8e56ad390c
Added missing callbacks to AVMNodeService. This makes things slow.
...
Have to do something about that.
Added getPaths call to AVMService. Retrieves all possible paths to a node.
Need to do timing tests.
I believe, the 6th version of a Pair template class. This one's public and
perhaps when we have time we could use it in place of all the inner class
implementations.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3964 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-09-28 20:19:48 +00:00
Britt Park
76bd8a310d
A fix for some incorrect behaviors in AVMSyncService.flatten() brought
...
on by some incorrect cacheing and the lack of some necessary flushes.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3910 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-09-24 22:43:54 +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
37b5003ae4
Added API methods to query AVM store properties by key pattern.
...
Cleaned up some warnings in AVMInterpreter.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3765 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-09-12 05:43:36 +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
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
0b58cca272
Removed RetryingTransactionHelper and friends. AVMService's transactional
...
behavior is now declaratively specified.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3662 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-09-03 06:30:05 +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
5136c45e34
Taught AVM to be aware of the current user for tracking creator,
...
modifier, etc. AVM nodes can have ACLs. Not used for anything yet.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3657 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-09-01 20:56:11 +00:00
Britt Park
8c92c87ac3
Fixes problems AVM tables were having with utf8 encodiing and mysql.
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3618 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-08-28 00:43:39 +00:00
Britt Park
8031cc6574
Big honkin' merge from head. Sheesh!
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3617 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-08-27 01:01:30 +00:00
Britt Park
e2c66899cc
Make sure that ContentStoreCleaner doesn't clean up in-use
...
AVM content. Doh!
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3612 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-08-25 14:00:32 +00:00
Britt Park
d67b926589
Marking of AVM Nodes with Aspects works (according to some minimal tests).
...
Schema has been updated, DAO written, garbage collection updated to clean
out aspects. Also some seemingly unnecessary changes in visibility
declarations to deal with strange intermittent Spring wiring failures in
one of my tests.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3560 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-08-22 01:22:01 +00:00
Britt Park
06df2021c8
This changes the AVM service to use ContentService for storage. This gives us,
...
in theory, AVM working underneath (more or less) NodeService and ContentService.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3481 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-08-10 21:50:34 +00:00
Britt Park
4ab5a046c2
Cleaned up a handful of uglinesses in moving AVM configuration into
...
Alfresco app configuration, mostly related to getting testing to
work smoothly. Also reworked OrphanReaper to be better behaved
and nominally more efficient.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3419 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-07-27 00:47:56 +00:00
Britt Park
beb44ec6ae
Big rearrangement of package structure to allow as many classes
...
and interfaces to be package local as possible.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3381 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-07-23 14:59:28 +00:00
Britt Park
ff042f1988
Made AVMRepository Springable. Modularized Spring configuration a bit.
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3380 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-07-22 20:17:51 +00:00
Britt Park
1125926c90
Changed signature of AVMRepository.getAVMStoreByName() to get rid of
...
unused and misleading parameter. Fixed PlainFileNodeImpl copy from
LayeredFileNode constructor so that properties will be correctly copied.
Switched out the GPL mysql driver that I had been inadvertantly using.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3378 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-07-22 17:35:56 +00:00
Britt Park
a6fc3aef83
Made hard coded attributes of AVMStore into Properties.
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3377 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-07-21 23:03:19 +00:00
Britt Park
24e1b31567
Added QName indexed properties to AVMRepositories.
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3376 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-07-21 21:54:26 +00:00
Britt Park
f15c1b4cc6
Added deleteProperty to service interface.
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3375 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-07-21 16:31:36 +00:00
Britt Park
2e3e8f4ad2
Extended Properties to batch updates. This is really a salvage
...
from an aborted attempt to make basic attributes
(creator, modifier, owner, modtime etc.) plain Properties. This resulted
in a 30% performance hit.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3362 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-07-21 08:37:05 +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
fff2fb6b05
A rename and a minor code rearrangement.
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3333 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-07-18 00:58:23 +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
1510998f69
Added a leetle bit of logging in a few places.
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3328 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-07-15 17:55:18 +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
a58a3c4f53
Minor tweaks to the crawler test. Added a flush needed under still obscure
...
high stress situations to prevent a duplicate key violation, in
PlainDirectoryNodeImpl. This only makes sense if somehow the second level cache
is getting out of whack.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3292 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-07-08 11:37:28 +00:00
Britt Park
cdef918e07
Hibernate parts of AVM now based on Spring PlatformTransactionManager
...
abstraction. Configurations to match.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3286 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-07-06 02:08:21 +00:00
Britt Park
a7ea580e54
Just cleaning up some warnings.
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3280 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-07-04 20:58:26 +00:00
Britt Park
30f1779a95
Turned off pessimistic locking as now, for some reason I can't fathom, they
...
don't seem to prevent deadlocks. Also made HibernateTxn derive from
HibernateTemplate, mostly to be able to sort out recoverable and non-recoverable
DB exceptions.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3279 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-07-04 17:05:12 +00:00
Britt Park
b05422171a
Some more modification to make things more Spring friendly. Updated
...
Spring configurations to match.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3278 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-07-04 14:34:50 +00:00
Britt Park
106273bde8
AVM now configures itself via Spring. Also adjusted jndi-client and catalina-virtual
...
to be semi-not-broken. The current limitation is that you've got to start tomcat from
$TOMCAT_HOME for things to work (fix soon).
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3267 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-06-29 21:37:17 +00:00