919 Commits

Author SHA1 Message Date
Derek Hulley
2afe43dad1 Added main() method to check that our application context closes properly
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5659 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-10 16:15:32 +00:00
Derek Hulley
4307893d18 Removed irrelevant TODO message
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5658 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-10 16:13:18 +00:00
Britt Park
78377ba5c3 Cleanup of goofy looking paths.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5656 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-10 15:55:41 +00:00
Derek Hulley
d69bfa23af Minor comment fixes
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5653 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-10 15:13:01 +00:00
Roy Wetherall
a38206915f - Preformance improvement to Auditable Aspect suggested by community
- PHP library refactoring
- Associated changes to tests and examples

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5646 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-09 13:22:50 +00:00
Jon Cox
6c332588a9 Point checkin.
Reorg to allow sandbox-related constants to be accessed more easily from 
other compilation units.   AVMConstants had become a dumping ground for
things that had nothing to do with const values.   Therefore, this
is now AVMUtil, and sandbox-related constants have been moved to
org.alfresco.sandbox.SandboxConstants, which builds in repository.



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5637 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-08 02:33:18 +00:00
Britt Park
072d642d65 Alfresco -> Alfresco deployment is smarter.
- The source store is implicitly snapshotted before deployment begins.
- The destination (remote) store is implicitly snapshotted before deployment begins
  and again when the deployment is finished.
- This means that comparison of GUIDs on directories can be used to short circuit
  the tree comparison.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5636 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-07 23:50:28 +00:00
Britt Park
c55d48a3e7 Smarten up deployment to filesystem.
- Deploying to a filesystem implicitly snapshots the source store. 
  This allows shortcutting the tree comparison for directories, because
  guids on directories act as a deep modification indicator if deployments 
  are always from snapshots.  Doh!
- I'll do this for alfresco -> alfresco deployment too.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5635 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-07 17:52:04 +00:00
Britt Park
b9c662956b First basically functional alfresco -> filesystem deployment.
- Implemented deployDifferencesFS() in DeploymentService.
- Very basic test of full roundtrip deployment.
- Bunch of bug fixes in deployment receiver.
- Fixed class paths for Eclipse. (Of course maybe I just broke them for everyone else.) 
  Repository project depends on Deployment project now.
- Added Deployment project to build.  Works for me.  Modified 
  continuous.xml, I hope, successfully.

Still to do:
- Testing.
- Recovery logic for many failure modes.
- Some kind of packaging.



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5634 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-06 22:16:23 +00:00
Kevin Roast
431f990806 My Forms template now opens website virtualisation URL when icon clicked.
New Template AVM API methods added to generate staging, user sandbox and path asset URLs for virtualisation server.
Some refactoring of constants used in AVMConstants into JNDIConstants to allow repository classes to also use them.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5624 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-04 11:27:46 +00:00
Derek Hulley
5615885916 Some parameter checks to catch null NodeRefs.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5619 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-04 01:11:00 +00:00
Ariel Backenroth
e58574447e fix misalignment between property wca:xmlschema of aspect wca:form in java constants and in xml model config. the property value was xmlschema in xml but simply schema in java. still unsure as to why this would be causing problems now - and not causing problems on my machine, but this is most likely the cause of the stacktraces we are seeing. thanks much to derek for helping track this down.
i've created issue WCM-477 to track any patch consequences of this realignment.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5618 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-04 01:09:26 +00:00
Ariel Backenroth
9747832703 fix incorrect mapping between property name in java constants and in xml model config. it was xmlschema in xml but simply schema in java. still unsure as to why this would be causing problems now - and not causing problems on my machine, but this is most likely the cause of the stacktraces we are seeing. thanks much to derek for helping track this down.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5617 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-04 00:01:36 +00:00
Jan Vonka
a9308dae1d Add warning to Importer if no binding for placeholder
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5611 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-03 16:16:40 +00:00
Derek Hulley
38c2a47e26 Repository startup support for module dependencies.
Modules are started in in order of their dependencies.
Components that don't execute due to incorrect registration are detected.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5606 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-03 14:10:11 +00:00
Andrew Hind
7ccadfe5da Upgrade to lucene 2.1
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5605 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-03 13:53:17 +00:00
Britt Park
f89f3b08a3 Checkpoint of filesystem deployment receiver. Doesn't do anything yet.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5604 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-02 23:02:36 +00:00
Kevin Roast
ebcd489416 Task resources list now populated in My Tasks template.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5602 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-02 21:05:56 +00:00
Derek Hulley
8307ba5ba9 AMP dependency checking on the tool side.
This is work in progress and the repo is not currently double checking the runtime dependencies.

To declare a dependency, add the following to your module.properties:
   module.depends.ABC=ABCfromVersion - ABCtoVersion
Wildcard * can be used in place of fromVersion or toVersion, as well as just a single version.
The most common usage will be:
   module.depends.ABC=1.0-*
i.e. this module depends on ABC version 1.0 or later being present.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5601 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-02 20:28:20 +00:00
Britt Park
46bdd48e3f A tweak to createSnapshot that forces snapshots for stores which
have layered nodes in them.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5587 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-01 18:09:23 +00:00
Britt Park
656f297ebb Patch for recent Layered lookup changes.
Miscellaneous cleanups noticed on the way.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5586 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-01 17:23:17 +00:00
Britt Park
f91cedfd69 Fixed createBranch() so that layered node lookups behave properly.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5579 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-04-30 18:48:19 +00:00
David Caruana
7567867be1 - jBPM 3.1.2 to 3.2 upgrade
- Implementation of Workflow Timers (primarily for WCM content launch, but also useful in other scenarios)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5578 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-04-30 17:21:52 +00:00
Britt Park
d0d7e61fcd Rework of Layered path resolutions that make snapshots of stores containing layers
actually capture the repository context at snapshot creation time. 
Gave ListEntry and MapEntry proper equals() and hashCode methods and backed out 
hibernate-cfg.properties changes.  Doh!  
Added cache configuration for AttributeService entities.
Did some warning removal in a few places.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5576 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-04-30 16:37:36 +00:00
Britt Park
fe970f03fe Properly wrapped AttributeService for remoting.
Wired remote AttributeService into virtualization server.
Added AVMLockingService to ServiceRegistry.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5570 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-04-27 15:36:13 +00:00
Andrew Hind
fc2ebe47d0 Restructure before WCM indexer impl.
Fix and retest 2.1 test issues.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5569 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-04-27 14:39:33 +00:00
Britt Park
e6b0bb96fb Reworked AVMLockingService to use lists where appropriate.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5567 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-04-26 18:35:59 +00:00
Britt Park
e73ce68e8f Reworked MapEntry schema for better cache performance.
Set Attribute entities to be not lazy.
Additional AttributeService testing.
Fixed DoubleAttributeImpl's declaration to implement DoubleAttribute.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5566 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-04-26 15:53:13 +00:00
Derek Hulley
2888a3737c Fixed module startup bug
The ModuleComponent 'appliesFromVersion' and 'appliesToVersion' properties were being compared to the module's new version number.
In actual fact, components' applicability must be against the original installation version number.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5561 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-04-26 14:21:01 +00:00
Derek Hulley
31efa6d4f3 Support for renaming of modules
- When a module ID changes, the old ID gets put in a list against property 'module.aliases'.
 - The tool and the repo startup detect the existing installation against the alias and perform a rename.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5559 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-04-26 08:42:19 +00:00
Derek Hulley
d94db4e310 Added removeProperty method to NodeService.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5558 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-04-26 08:34:43 +00:00
Derek Hulley
6d39078356 Added copy and delete of registry keys
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5557 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-04-26 08:27:23 +00:00
Derek Hulley
5fd6d0c609 Removed old @see tags
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5555 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-04-26 08:15:58 +00:00
Britt Park
d3aae2a9b7 ListAttribute seems to be mostly working, though I had to tweak hibernate-cfg.properties to
make it suck back generated primary keys.
Restructured ListEntry so that most most gets are via Session.get() rather than by query.
Added new methods to AttributeService to handle ListAttribute specific operations.
Added a little more testing for AttributeService.
I'm praying that the build will be repaired, since my efforts having been doing
so much lately.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5553 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-04-26 00:31:33 +00:00
Britt Park
602440a983 Interim checkin for ListAttribute support.
Should fix build breakage also.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5551 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-04-25 18:35:26 +00:00
Kevin Roast
162ba3e141 Ajax pop-up summary panel code refactored into generic library.
First cut of the My Tasks webscript..
Added "url.context" help object to template model for TemplateContentServlet.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5549 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-04-25 14:33:29 +00:00
Derek Hulley
fb1dd4080b Merged V2.0 to HEAD
5523: Merged V1.4 to V2.0
      5494: db.schema.update=false disables ALL metadata queries
      5500: AR-1399 NTProtocolHander search handle leakage
      5522: AR-1412 IndexRemoteTransactionTracker startup
   5541: Merged V1.4 to V2.0
      5525: Pass-through authentication and domain mapping
         Resolved minor conflict on AlfrescoAuthenticator.java
      5526: Domain mapping support


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5546 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-04-25 02:44:53 +00:00
Derek Hulley
08897ad76b Merged V2.0 to HEAD
5540: Merged 1.4 to 2.0
      5515, 5520: LuceneTest2


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5545 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-04-25 02:33:59 +00:00
Derek Hulley
a85bc773c3 Merged V2.0 to HEAD
5497: cwd variable and forminstancedata
   5512: AR-1303 MLPropertyInterceptor
   5527: CIFS invalid characters


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5543 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-04-25 02:13:55 +00:00
Derek Hulley
766c19b128 Merged V2.0 to HEAD
5491: AWC-1154 WCM Workflows
   5507, 5511: AVMGuidPatch


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5542 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-04-25 02:02:30 +00:00
Britt Park
a41f482557 AVMLockingService is mostly complete. Basic test is in place.
Ran across and fixed bug in MapAttributeImpl.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5539 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-04-24 21:34:00 +00:00
Kevin Roast
884b4920c3 Workflow helper object added to Template API, for use in new 2.1 Portlets.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5538 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-04-24 13:14:02 +00:00
Kevin Roast
577d45c551 More fall out from Template/Script refactoring:
- fix to missing annotated service method (caused script command servlet to fail)
 - spelling mistakes in annotated service method parameters
 - cleanup in AbstractWebScript

Added ValueConverter concept to Template API - similar to JavaScript API ValueConverter, for a consistent mechanism to recursively convert Alfresco node properties to template accessable objects.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5535 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-04-24 13:11:25 +00:00
Derek Hulley
c1a69f0f3f Added support to limit module execution to a specific range of repository versions.
e.g. the PHP SDK module has the following:
   module.repo.version.min=2.0
   module.repo.version.max=2.1
This limits it to being installed on 2.0 or 2.1 versions of Alfresco.
Roy can change this, if required.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5532 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-04-24 01:14:42 +00:00
Britt Park
5fed27a6d9 Beginning interface for AVM locking.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5531 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-04-24 01:05:24 +00:00
Britt Park
95ff33e256 Enabled ACLs in Attributes. They are now readable and writable.
Added alternative calling convention versions of existing 
AttributeService methods.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5529 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-04-23 20:56:40 +00:00
Britt Park
e9b75a288b Added ACLs to Attributes. Can't do much with them yet, but the column is in place.
Fixed failing AttrQueryTest.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5528 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-04-23 19:44:31 +00:00
Roy Wetherall
3322e78a09 Fallout fix from template/script refactor.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5524 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-04-23 13:19:26 +00:00
Britt Park
37e81b9ea4 Added AttributeService to ServiceRegistry.
Test for correctness of Attribute deletetion.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5521 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-04-20 19:04:50 +00:00
Roy Wetherall
5401499003 Refactor of template and script services to allow easy addition of further template and script processors.
Hightlights of check-in include:
- Introduction of script processor 
- Neutralisation of script and template models
- The notion of a processor extension introduced
- Extensions applied to processor implementation rather than the services
- Auto selection of processor based on file extension of template or script

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5519 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-04-20 17:13:34 +00:00