2036 Commits

Author SHA1 Message Date
David Caruana
d8c87a5abd CMIS Relationship support in AtomPub binding
- getRelationships
- getRelationship
- createRelationship
- unit tests for above

TODO: delete relationship, includeRelationships flag

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14461 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-27 22:11:31 +00:00
Dave Ward
e193c622b3 Attempt to fix intermittent build errors
- LockEntity.hasExpired() now uses
System.currentTimeMillis() >= expiryTime

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14451 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-27 13:31:36 +00:00
Dave Ward
ed44d4b54e Fix auto-detection of dialect when hibernate.dialect property not set
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14429 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-26 08:20:40 +00:00
Dave Ward
5b32385e82 ETHREEOH-2115: Exclude tables in recyclebin from schema dump on Oracle
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14425 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-26 07:23:38 +00:00
Andrew Hind
7c934abbe4 Search API updates. FTS fixes for range and dual tokenisation.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14419 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-22 14:36:48 +00:00
Derek Hulley
373c26db78 Fixed ETHREEOH-1283: Copying file doesn't copy it's Author field
- Copying of cm:author was explicitly (and quite possibly needlessly) disabled
 - Took out non-default handling of cm:author on copy


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14396 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-21 13:43:57 +00:00
Derek Hulley
039cabc726 Fixed ALFCOM-2888: Policy based storage - Content move does not rollback after integrity event on cm:storeName
- Content move is now done in a post-commit phase because rollback is not possible on content stores
 - Added unit tests for case
 - Added onAddAspect handling to detect auto-addition of aspect


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14380 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-20 15:40:22 +00:00
Derek Hulley
24b8ae3b16 Reversed out revisions 14366, 14361 and 14356
- Just prior to this, created dev branch DEV/ANDY_HEAD_ROLLBACKS
 - Andy: Switch to this branch on your local copy if you have changes to any of the files modified here


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14374 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-20 10:32:23 +00:00
Derek Hulley
05a58901fd Fix for ALFCOM-2889: Table Locking Issue on Derby when uploading docs via Share
- Is an alternative fix for ETHREEOH-1936 (undoes CHK-7199)
 - Removed nested read-write txn in 'upload.js'.
   The script was attempting to operate on the same node in both the nested and outer transactions.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14368 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-19 17:10:02 +00:00
Andrew Hind
464438e269 Fix bug in SearchService API refactor
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14366 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-19 15:11:49 +00:00
Andrew Hind
d195ff8542 First pass at fixes/extensions/tidy ups to the search API - part of wiring FTS up as a query language MOB-568
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14361 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-19 14:06:15 +00:00
Andrew Hind
418035df05 Fix support for CMIS SQL range and FTS for dual tokenised types. Add template support to the FTS parser. (MOB-568, MOB-219, MOB-569)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14356 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-19 09:19:55 +00:00
Dave Ward
e31d630fde Correct handling of nulls and empty strings for PropertyBackedBeans (actually save empty strings)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14354 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-18 16:57:54 +00:00
Dave Ward
4634d889c8 MOB-820: IMAP as configurable subsystem + MOB-817: NFS RPC user mappings + MOB-816: File server domain and global ACL mappings
- JLAN changes: revert previous changes and make AccessControl constructors public

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14353 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-18 15:42:47 +00:00
Dave Ward
b58bd8a5ea MOB-864: Propagation of installation / dev environment settings to subsystems plus subsystem framework extensions for composite properties
- Set of overridable properties now centralized to new global-properties bean and referenced by repository-properties, hibernateConfigProperties and subsystems
- Installer defaults can now be specified in classpath:alfresco-global.properties
- A special BeanFactoryPostProcessor ensures backward compatibility with existing alfresco/extension/*-context.xml files overriding repository-properties or hibernateConfigProperties.
- Subsystems pick up initial property values from global-properties. Placeholders expanded.
- Messages now output when subsystems stopped and started
- Object names lists to allow better hierarchical organisation
- Composite properties now supported by child application contexts
   - Materialized in context.xml as ListFactoryBeans - lists of beans
   - Configured values injected before application context started
   - Configurable via alfresco-global.properties or JMX

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14351 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-18 15:34:46 +00:00
Jan Vonka
f32a5c3b8e WCM - minor: remove deprecated warnings (and cleanup imports)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14349 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-18 14:57:17 +00:00
Neil McErlean
c0a90f52df RM REST API for actions on records/nodes
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14348 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-18 14:21:25 +00:00
Mark Rogers
1617210067 Improving error logging.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14344 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-18 12:53:52 +00:00
Mark Rogers
62c65bcfb7 Rework createPerson to receive password. (Previous interface was un-usable)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14343 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-18 12:52:11 +00:00
Mark Rogers
6e09838e9c Implementing Web Site Group Membership.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14342 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-18 12:44:04 +00:00
Derek Hulley
e046d8c026 Finished code for MOB-29: Content Storage Lifecycle Management
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14339 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-15 15:45:05 +00:00
Mark Rogers
91452b1bae MOB-687 - WCM Deployment - Select multiple test servers
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14337 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-15 15:35:58 +00:00
Gavin Cornwell
17fd83154b Fixed persistence of boolean properties, checkbox control was not sending false when unchecked and sending 'on' as value when selected
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14335 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-15 14:57:35 +00:00
Derek Hulley
80c131be6e Fixed unit test to account for auto-addition of aspects
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14333 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-15 13:13:23 +00:00
Derek Hulley
ff815e8e2f Fixed unit test: property map is never null any more
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14330 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-15 11:01:32 +00:00
Derek Hulley
e1ada58fef MOB-29: Content Storage Lifecycle Management
- Some collapsing of common code in Constraint hierarchy.
 - Added aspect 'cm:storeSelector' with property 'cm:storeName'.
 - Defined a new, unused content store 'storeSelectorContentStore' (see content-services-context.xml).
   If this store is used, then setting the 'cm:storeName' property will force content to be stored in one
   of the named stores.  A LIST constraint is indirectly enforced for the 'cm:storeName' property.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14329 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-15 04:36:20 +00:00
Derek Hulley
d1d35999de DM NodeService automatically adds aspects when properties or associations are added to a node
- AVM NodeService not covered.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14328 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-15 04:15:40 +00:00
Kevin Roast
645327a850 New JavaScript Search API for 3.2 with support for alfresco-fts queries with a more JavaScript programmer friendly interface.
- Query, language (lucene, xpath, jcr-path and alfresco-fts etc), store (workspace or avm), multi-column sorting and paging all supported via search definition object

- A query definition object with a number of parameter objects can be as to use as:

   var results = search.query({query: "TEXT:alfresco"});

- Or as richly defined as:

   var sort1 =
   {
      column: "@{http://www.alfresco.org/model/content/1.0}modified",
      ascending: false
   };
   var sort2 =
   {
      column: "@{http://www.alfresco.org/model/content/1.0}created",
      ascending: false
   };
   var paging =
   {
      maxItems: 100,
      skipCount: 0
   };
   var def =
   {
      query: "cm:name:test*",
      store: "workspace://SpacesStore",
      language: "fts-alfresco",
      sort: [sort1, sort2],
      page: paging
   };
   var results = search.query(def);

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14300 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-13 14:21:51 +00:00
Jan Vonka
31b38e0178 Fix ALFCOM-2859 - MT Share Admin Console (create new user)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14293 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-13 11:34:46 +00:00
Andrew Hind
da0ea36dea Enable the cache - oops
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14291 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-13 09:35:09 +00:00
Logneon
449a7e7556 IMAP refactoring
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14288 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-12 18:33:46 +00:00
Kevin Roast
0825764cc9 Addition of password update/set API for JavaScript People object:
- changePassword(string oldpw, string newpw) - changes password for the current user only,  old password must be supplied
 - setPassword(string userName, string password) - set the password for the given user - only executable by an admin user
Fix up and clean up of my-sites.get.js so that IMAP favorites are only retrieved if the IMAP server is enabled

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14280 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-12 14:23:09 +00:00
Gavin Cornwell
3cc38f4289 Initial cut of IMAP support (disabled by default, to enable move imap sample files into extension folder)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14279 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-12 13:41:08 +00:00
Dave Ward
1a5d0fa8e6 Changes for Websphere v7.0.0.3 compatibility (will update Wiki next)
- Update xstream library to v1.2.2 to be compatible with IBM JDK
- Custom patch to truexml-1_29.jar to enable free trial period license to work on IBM JDK
- Bugfix FileContentStore so that it doesn't respond to refresh events sent by child application contexts
- Fixes to web.xml: data source now Unshareable and all empty env entries now of type java.lang.String
- Share fix: webframework.classpathstore.contentassociation and webframework.classpathstore.pageassociation class path stores now have mustExist = false, because Websphere doesn't unzip empty directories
- Addition of META-INF/ibmconfig directory to alfresco-enterprise.ear so that it can be installed on Websphere with classloading set up automatically
- Additional artefact generated by the continuous build: myfaces1_1-websphere-shared-lib.zip - unzips to $WAS_INSTALL_ROOT to provide myfaces 1.1 shared library referenced by .ear file

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14278 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-12 12:01:51 +00:00
Derek Hulley
4ed216c5e6 Fixed ETHREEOH-1719: Renaming 'Web Project' makes it a DM space and the AVMstore gets corrupted
- An injected list of namespaces determine whether a node's association path QName is modified
   during a rename or not:
      <property name="systemNamespaces">
         <list>
            <value>http://www.alfresco.org/model/application/1.0</value>
            <value>http://www.alfresco.org/model/site/1.0</value>
         </list>
      </property>

 - Added a method to FileFolderService to specify the association QName on creation
   This is used by the tests, but can be used by apps as well.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14262 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-11 12:04:55 +00:00
Mark Rogers
db96926f4b Community contribution - fixed code typo which cased a ClassCastException with multiple pooled actors.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14260 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-11 10:17:43 +00:00
Jan Vonka
181c949601 Possible fix/tweak for intermittent build/test failure (VersionTestSuite)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14259 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-11 10:03:52 +00:00
Mark Rogers
f8c7957880 Removed spurious @overide
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14245 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-08 13:50:17 +00:00
Mark Rogers
9715847cf1 Re-instate web site group test. Bug Fixes and first implementation of web site role precedence rules.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14241 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-08 11:06:33 +00:00
Jan Vonka
a687ac1b1b Possible build/test fix
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14240 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-08 08:40:48 +00:00
Gavin Cornwell
c49ebae2d7 - Improved handling of associations in NodeHandler
- Child association data now correctly returned
- Added support for duplicate named properties and associations i.e. those referred to using the prop: or assoc: prefixes

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14239 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-07 21:19:22 +00:00
Andrew Hind
6a43e8de20 Fix for ETHREEOH-1331: Caching of results from AuthorityService.getContainingAuthorities() needs improving to cache groups for non-immediate queries etc.
- caches all look ups

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14237 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-07 16:18:40 +00:00
Neil McErlean
c83e76d6ec Partial impl of requires-role handling on fields. Config API tidy-up.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14227 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-07 09:48:50 +00:00
Kevin Roast
f122157dce Added isSubType(qname) to ScriptNode API.
- Example:   var isType = node.isSubType("abc:someqname");

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14225 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-07 07:47:26 +00:00
Jan Vonka
70d66c0f8c Merged V3.1 to HEAD
13902: Merged V2.2 to V3.1
        13900: Fixed ETHREEOH-1846: NullPointerException in ADMLuceneIndexerImpl if localized string is null
    14167: MT - fix ETHREEOH-2015
    14198: MT - fix ETHREEOH-210 and add unit tests (will also fix ALFCOM-2823 when merged forward to HEAD)


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14204 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-06 11:40:13 +00:00
Jan Vonka
5791792f95 Fix build/test failure (AuthorityServiceTest) - SiteActivityTest now also deletes test sites (to delete site's group authorities)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14195 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-05 17:37:01 +00:00
Jan Vonka
52c9a7e5cf Activity Service - improve feed cleaner test and fix ALFCOM-2838
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14183 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-05 10:54:04 +00:00
David Caruana
3e3098f376 Merged DEV/CMIS0_61 to HEAD (part 3)
14069 Introduce CMIS v0.61 XSDs
  - fix samples that don't validate
 14073 CMISTests passing, complying with 0.61 XSDs.
 14078 CMIS v0.61 data model and AtomPub binding API compliance.
  - delta from 0.6 recorded in changes_v0.6_to_v0.61.txt
  - updated CMIS test harness
  - tests pass
  - added Patch request type to Web Script test server
 14079 Allow for HTTP PATCH method for remote Web Script tests.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14176 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-01 21:01:28 +00:00
Andrew Hind
76890eb812 FTS: Fuzzy matching, boosted queries, sloppy phrase matching, code tidy up, add API for specifying Analysis type (MOB-571)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14174 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-01 20:06:57 +00:00
Andrew Hind
66b639ac77 FTS: Fuzzy matching, boosted queries, sloppy phrase matching, code tidy up, add API for specifying Analysis type (MOB-571)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14173 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-01 20:06:18 +00:00