Commit Graph

1129 Commits

Author SHA1 Message Date
Derek Hulley
ab252efe82 Dictionary support for d:locale data type
System aspect sys:localized
Interface definition of MultilingualContentService


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4607 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-14 14:40:10 +00:00
Britt Park
e70798e59f This makes the lookup cache for the AVM have a transaction isolation level of
read committed, more or less.  It was read uncommitted before, and so this 
makes me more comfortable.  I hope it will also reduce optimistic locking failures
under concurrent load.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4600 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-14 03:23:20 +00:00
Britt Park
cc94478e72 Cache configuration of AVM entities. Memory footprint, and performance are
reasonable and good under load.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4598 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-13 21:43:59 +00:00
Britt Park
e76fc329b6 Refinements to RetryingTransactionHelper to make it equivalent to
executeInUserTransaction().
Changed the on close callback for write listeners to use a RetryingTransaction.
The point of this exercise is to make it possible for clients of the core server
to ignore transient resource contention failures.  CIFS, for example, will be able 
to take advantage of this, since a transient error condition currently results in a dead
share.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4597 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-13 17:03:44 +00:00
Gary Spencer
4834c89f5a Added AVM callback handlers to update the virtualization view pseudo folders when stores/versions are created or purged.
The callback handlers queue change notifications so Windows Explorer views that are open on a pseudo folder should update (most of the time).

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4595 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-13 15:40:34 +00:00
Andrew Hind
62ada8ea7f Typo fix
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4593 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-13 14:18:18 +00:00
Andrew Hind
82cfe2d806 ML text index and search
Expose properties via DD
Remove more old indexer code

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4592 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-13 11:52:41 +00:00
Britt Park
7f8c678bd5 Adjusted AVMCrawlTestPP to be more stringent now that we have retryin
transactions.
History is noww correctly maintained for cases of deletes followed by renames
or creates.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4587 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-12 21:09:07 +00:00
Derek Hulley
24a00b201f ML Content Model
- Moved unused ML constructs to deprecated model file
 - cm:titled has d:mltext properties
This change should be backwards compatible


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4583 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-12 16:44:08 +00:00
Derek Hulley
ac61e7fd21 I18NUtil support for Locale
ContentData support for Locale
 - Full property string has "|locale=" addition
 - getLocale() added to ContentData (may be null)


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4581 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-12 14:42:01 +00:00
Gary Spencer
f2c5192a7f Updates to AVM virtualization view for the latest layout with DATA and METADATA folders.
Fixes to AVM filesystem transaction handling.
Made SrvSession.beginTransaction() private and added beginReadTransaction() and beginWriteTransaction().

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4580 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-12 14:07:07 +00:00
Britt Park
3e6468bd02 Added RetryingTransactionAdvice and wired it up for AVMService. The tests pass
and the app still works. 
Added new convenience target to common.xml, run-junit. It syntactically like 
run-test but doesn't use the junit ant task, which has the unfortunate characteristic
of buffering stdout and stderr in memory.  This may be fine in many cases but wreaks
havoc with memory use if you're test spews lots of diagnostics.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4577 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-12 04:01:25 +00:00
Britt Park
b4d49c2c3c Checkpoint: RetryingTransactionHelper, which executes a unit of work in a UserTransaction
with retries for transient failures.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4573 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-11 19:57:20 +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
Jon Cox
7a6e213ebd On r7023, it looks like there was a stray checkin that
commented out the "exporter" and "serverConnector" beans.

  This prevents the virtualization server from registering 
  itself with the alfreco server (which is necessary in 
  order for callbacks for the virtualization server to work.

  Removing the comments. 



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4561 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-08 20:52:15 +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
Ariel Backenroth
6ecb0c5728 - adding in a getRenditions call to forminstancedata
- some further cleanup and fixes for summary screens
- adding new repeat icons from linton
- fix for filename expanding endlessly when pressing the back button at the summary page for create web content.
- making the primaryfominstancedata property of rendition a sandbox relative path so as to make it easier to retrieve the corresponding xml in the same sandbox

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4557 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-07 21:03:58 +00:00
David Caruana
31db00d0e9 - fix avm submit flags (conflicts, older are ignored and overwritten)
- fix cosmetic issue in parallel review task (use to say it was a serial review)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4555 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-07 19:35:33 +00:00
Kevin Roast
4a05839658 Deleted items can now be passed to the submit dialog without blowing it up
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4554 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-07 18:44:08 +00:00
Derek Hulley
7e8a24b7a5 Locale matching
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4551 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-07 14:10:17 +00:00
Britt Park
c012545bfa Callback mechanism for notifying CIFS when Stores are
created or purged, and when versions are created or purged.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4541 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-07 01:02:40 +00:00
David Caruana
1ee6547fc4 WCM submit (for approval) workflow.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4540 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-07 00:05:28 +00:00
Gavin Cornwell
b8bfe273b4 - Incorporated new sidebar which contains the shelf and navigator (tree) components
- Changed version number to 2.0.0 (dev)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4538 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-06 23:26:27 +00:00
Britt Park
769fe808fc Forgot to make the matchers Serializable.
Build fix.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4535 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-06 19:23:38 +00:00
Derek Hulley
6e7b8ad98e Merged 1.4 to HEAD (More workflow)
svn merge svn://svn.alfresco.com:3691/alfresco/BRANCHES/V1.4@4166 svn://svn.alfresco.com:3691/alfresco/BRANCHES/V1.4@4167 .
   svn merge svn://svn.alfresco.com:3691/alfresco/BRANCHES/V1.4@4183 svn://svn.alfresco.com:3691/alfresco/BRANCHES/V1.4@4184 .
   svn merge svn://svn.alfresco.com:3691/alfresco/BRANCHES/V1.4@4206 svn://svn.alfresco.com:3691/alfresco/BRANCHES/V1.4@4207 .
   svn merge svn://svn.alfresco.com:3691/alfresco/BRANCHES/V1.4@4215 svn://svn.alfresco.com:3691/alfresco/BRANCHES/V1.4@4216 .
   svn merge svn://svn.alfresco.com:3691/alfresco/BRANCHES/V1.4@4301 svn://svn.alfresco.com:3691/alfresco/BRANCHES/V1.4@4302 .


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4534 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-06 18:34:19 +00:00
Derek Hulley
c4e2cabb12 Merged 1.4 to HEAD (XPath fixes)
svn merge svn://svn.alfresco.com:3691/alfresco/BRANCHES/V1.4@4462 svn://svn.alfresco.com:3691/alfresco/BRANCHES/V1.4@4463 .
   svn merge svn://svn.alfresco.com:3691/alfresco/BRANCHES/V1.4@4468 svn://svn.alfresco.com:3691/alfresco/BRANCHES/V1.4@4469 .
   svn merge svn://svn.alfresco.com:3691/alfresco/BRANCHES/V1.4@4486 svn://svn.alfresco.com:3691/alfresco/BRANCHES/V1.4@4487 .


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4532 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-06 16:09:41 +00:00
Derek Hulley
93c54b5127 Merged V1.3 to V1.4 (Workflow changes required)
svn merge svn://svn.alfresco.com:3691/alfresco/BRANCHES/V1.4@4152 svn://svn.alfresco.com:3691/alfresco/BRANCHES/V1.4@4153 .
   svn merge svn://svn.alfresco.com:3691/alfresco/BRANCHES/V1.4@4163 svn://svn.alfresco.com:3691/alfresco/BRANCHES/V1.4@4164 .
   svn merge svn://svn.alfresco.com:3691/alfresco/BRANCHES/V1.4@4178 svn://svn.alfresco.com:3691/alfresco/BRANCHES/V1.4@4179 .
   svn merge svn://svn.alfresco.com:3691/alfresco/BRANCHES/V1.4@4328 svn://svn.alfresco.com:3691/alfresco/BRANCHES/V1.4@4329 .
   svn merge svn://svn.alfresco.com:3691/alfresco/BRANCHES/V1.4@4331 svn://svn.alfresco.com:3691/alfresco/BRANCHES/V1.4@4332 .



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4529 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-06 16:03:37 +00:00
Britt Park
a67f2d0cc9 User name and password are now picked up from ALFUSER, ALFPASSWORD environment
variables.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4528 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-06 15:58:45 +00:00
Derek Hulley
d7bac7e5f1 Minor code cleanup
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4527 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-06 15:33:09 +00:00
Derek Hulley
5a871bcdd4 First cut of multilingual support at the NodeService level
- MLText type is persisted as a Serializable (TODO: investigate alternative storage)
 - 'nodeService' bean is filtered according to the default locale to provide only String return properties
 - Go direct to the 'mlAwareNodeService' bean to get access to unfiltered MLText properties
 - TODO: Proper value searches respecting Locale hierarchy


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4526 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-06 15:30:30 +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
Kevin Roast
b89caeb3e5 . Checkpoint of the Submit dialog for user sandbox assets
- first pass of JSP layout
 - multiple items or all items available for selection
 - calculation of available workflows, from those assigned to form assets and assigned to the website
 - creation of AVM workflow package
 - starting of workflow containing AVM package (appears in users task todo dashlet!)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4524 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-05 17:19:23 +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
Derek Hulley
e1c6452bc2 Back to standard log4j.properties with all the bells and whistles
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4522 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-05 16:11:58 +00:00
Andrew Hind
0311fdd75a Updated handling of TEXT field - no longer in the index - built from all content fields
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4521 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-05 16:04:54 +00:00
Andrew Hind
fd351b9411 Updated Query parser
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4519 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-05 11:20:22 +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
dd4722ab17 Fixed broken test.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4515 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-05 02:25:13 +00:00
Britt Park
e596462ec9 The other half of cp for Repo.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4513 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-05 02:07:36 +00:00
Jon Cox
051e4ba679 Moved alfresco-shared.properties into its own bean
within core-services-context.xml to make it easier
 for people with a private dev-context.xml to upgrade.

 Also,  made cosmetic changes to avm-remote-context.xml
 (renamed a bean, removed tabs, etc.).


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4512 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-05 00:38:17 +00:00
Jon Cox
cdfe23c2c6 To give developers final control over the tuning
of their own local build, the dev-context.xml file                                                                                                                    
   is processed last  (note: dev-context.xml isn't                                                                                                                       
   part of the source tree itself).                                                                                                                                      
                                                                                                                                                                                 
   Once this file said:

      <import resource="classpath*:alfresco/extension/*-context.xml"/>                                                                                                           


   Now it ensures dev-context.xml is last via:

      <import resource="classpath*:alfresco/extension/*-context.xml"/>                                                                                                           
      <import resource="classpath*:alfresco/extension/dev-context.xml" />                                                                                                        

   The order matters if you have a dev-context.xml 
   that overrides fileServersConfigSource  
   (which is the "right" way to assert a private version of:  

     root/projects/repository/config/alfresco/extension/file-servers-custom.xml
     
   It seems weird that we have a checked-in extension like this,
   so I supose it's no stranger that the means to override it
   should also be a little curious.

   Anyway, now my dev-context.xml can say:
  
      <bean id="fileServersConfigSource" 
            class="org.alfresco.config.source.UrlConfigSource">
        <constructor-arg>
           <list>
              <value>classpath:alfresco/file-servers.xml</value>
              
              <!-- Get the CIFS port from a custom application context config file -->
              <!-- <value>classpath:alfresco/extension/file-servers-custom.xml</value> -->
              <value>file:/home/jcox/etc/alfresco/file-servers-custom.xml</value>                                                                                
           </list>
        </constructor-arg>
     </bean>


   This allows me to provide *my*  file-servers-custom.xml that
   won't ever get checked in by mistake, because it only uses
   the existing dev-context.xml mechanism. 

   From there, I can set my CIFS ports.
   Whew.



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4511 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-04 23:32:03 +00:00
Britt Park
a95b3bbed0 Working facsimiles of ls and half of cp for Repo.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4510 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-04 19:17:34 +00:00
Gary Spencer
66c95d5dce Create a transaction for a write when the current content channel is not writable.
Fixes a NullPointerException, AR-1129.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4509 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-04 15:37:48 +00:00
Britt Park
07b18358ae Slightly less broken RepoLs. Checkpoint. Also gave Pair a reasonable toString method.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4508 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-04 13:43:44 +00:00
Andrew Hind
dcc831b2a3 http://issues.alfresco.com/browse/AR-740
http://issues.alfresco.com/browse/AR-384

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4504 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-04 11:04:34 +00:00
Britt Park
2845364a18 Exported some Repo functionality via RMI. First (still broken) Repo
based CLT.  Some cleanup and modification to other CLTs.  WIP.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4500 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-04 00:41:06 +00:00
Britt Park
b8595831c8 Moved a bunch of things to more logical locations.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4497 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-03 15:43:16 +00:00
Britt Park
03a93a3cf7 Added a method to AVMService and its dependent services to get an InputStream
directly from a node descriptor.  It's a minor optimization for a few use
scenarios.  It's also convenient for accessing content of historical file
versions directly.  
Another CLT, to list the versions of a store.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4496 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-03 03:55:49 +00:00
Britt Park
b947cfc864 Another CLT plus some tweaks.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4495 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-12-03 01:46:46 +00:00