55 Commits

Author SHA1 Message Date
Andrew Hind
dece4d5a4b Fix for MOB-1185: Alfresco FTS does not respect dual tokenisation when ordering (and locale etc etc)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15300 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-21 10:34:08 +00:00
David Caruana
b5d4daa46a Allow 'cmis-sql-strict' query language in Node Browser.
- fix up Search Service to CMIS query engine wrappers

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15015 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-06-29 15:47:06 +00:00
Andrew Hind
592a2bb2fc Added support for paging using SearchParameters on the SearchService API (ARCHIVE-85)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14651 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-06-11 10:07:42 +00:00
Andrew Hind
1a261b54fd Added generic support for lucene scalar functions and used the to implement CMIS Upper/Lower string functions (MOB-221)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14578 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-06-08 10:42:01 +00:00
Andrew Hind
a8ac68a6e6 Add d:period data type (MOB-750)
- persistence, type conversion, and tests
- test model and index
- default set of implementations and tests

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14504 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-06-02 14:45:07 +00:00
David Caruana
2798ec52f0 CMIS Relationship delete implementation
- added testDeleteRelationship

CMIS Relationship loose ends
- added property filter to getRelationships
- updated allowable actions for relationships

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14468 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-28 13:31:02 +00:00
Andrew Hind
e46585becf More SearchService refactor. Added CMIS SQL to the search service. Tidy ups. FTS supports default namespace and templates via search parameters API. (MOB-568, MOB-569)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14463 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-28 10:34:51 +00:00
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
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
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
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
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
David Caruana
45f141740b Merged DEV/CMIS0_61 to HEAD (part 1)
13973 Replace CMIS XSDs / Sample XML files with 0.6 versions.
  - fix issues with some of the samples
  - CMISSchemaTest passes
 13981 AtomPub binding complies with CMIS v0.6 XSDs and Namepaces.
  - Tests passing
 13982 Running list of implemented changes between CMIS v0.5 and v0.6
 13986 AtomPub binding comply with CMIS v0.6 data model & API (part 1)
 - Tests are passing

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14172 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-01 19:56:39 +00:00
Andrew Hind
f743983dcb FTS Parser (MOB-571): Field Groups; Proximity; Escaping in phrases, terms, and identifiers; return to the old default to OR terms together; support for |+-! and not; forced tokenisation
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14104 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-28 13:36:38 +00:00
Jan Vonka
200a8c3843 Dictionary Cache improvements - ensure CMIS Dictionary Registry is MT-aware
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14057 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-22 16:30:51 +00:00
Andrew Hind
65d2aa1d7a Refactor CMIS property accessors to remove duplicate code. Basic wire up for fts query language and some simple tests (MOB-574). Parser WIP (MOB-571)
- added support for properties and column aliases in CMIS embedded FTS
- simple pass-through column support for FTS

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13974 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-16 10:41:33 +00:00
Andrew Hind
6a20eda27f Final parts of FTS and CMIS split (MOB-570, MOB-573). Started adding FTS as a query language (MOB-574)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13955 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-15 12:25:53 +00:00
Andrew Hind
6c9bd6d97b FTS Parser updates: MOB-571, MOB-233
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13940 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-14 14:29:53 +00:00
David Caruana
42f1203a21 Fix CMIS Property Service
- test was not updated after change in content url rendering

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13937 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-14 11:56:13 +00:00
David Caruana
7205e4b956 CMIS bag of stuff;:
- Add CMIS Allowable Actions to Abdera CMIS extension
- Add testAllowableActions(), testQueryAllowableActions
- Pass all AppClientTest (AtomPub server test suite) tests
- Fix encoding issues while parsing Atom requests
- Fix ignoring of Atom slug
- Fix support of pure Atom entries (those without CMIS extensions)
- Add test suite for custom sub-types / props (CMISCustomTypeTest)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13921 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-09 15:19:47 +00:00
Andrew Hind
8986debad5 Split CMIS and FTS ast handling. Started extended FTS parser. First parts of MOB-570, MOB-571, MOB-573, MOB-233
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13871 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-07 09:32:10 +00:00
David Caruana
21da34d30a CMIS Allowable Actions REST binding (part 1)
- add getAllowableActions()
- update getProperties(), getChildren() with includeAllowableActions flag
- testAllowableActions()

TODO:
- add includeAllowableActions flag for all other required methods
- Abdera extension to parse allowable actions

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13834 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-03 21:19:31 +00:00
David Caruana
681c220229 Register all CMIS Action Evaluators as per spec.
- add ParentActionEvaluator
- add logging of registration

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13824 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-03 12:02:25 +00:00
David Caruana
79c938f0b4 Plumbing for CMIS Allowable Actions
- add CMIS enum for Allowable Actions
- introduce Action Evaluator, with Permission based and fixed boolean implementations
- registry of available action evaluators based on CMIS type
- CMIS Type Definition has getter for applicable action evaluators
- couple of CMIS actions registered

TODO:
- register all actions as defined in spec
- serialize in AtomPub binding

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13816 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-02 17:20:26 +00:00
David Caruana
b19a68fa34 CMISScope enum now consistent with all other CMIS enums
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13811 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-02 14:20:13 +00:00
David Caruana
440af3f96c Cleany split CMIS Interfaces from implementation (part 2)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13809 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-02 14:02:52 +00:00
David Caruana
ee67b1f7de Cleanly split CMIS interfaces from CMIS implementation.
- org.alfresco.cmis => public interfaces
- org.alfresco.cmis.mapping / dictionary / search => implementation

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13808 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-02 13:50:10 +00:00
David Caruana
af2b4f43c4 Refactor CMIS property accessors (value / lucene mappers).
- remove notion of generic property accessor; consolidated on named property accessor
- build property accessors at time of CMIS Dictionary creation (cached, removes continuous creation of small objects); hooked into CMIS Property Definition
- remove property service
- lookup of property accessor quicker and constrained to properties in CMIS Dictionary
- fixup fallout in CMIS AtomPub, Web Services and Query

CMIS AtomPub, Web Services and Query tests pass.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13806 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-02 12:06:26 +00:00
David Caruana
146ad53fe5 Refactor CMIS Dictionary part 2
- further simplification of CMISDictionaryService and fixup fallout
- added logging
- consolidate & fix property definition handling (only one definition per property)
- include support for aspect properties
- fix property.isInherited
- open up the door for types outside of CMIS doc, folder, rel & policy

Dictionary Service
- add isOverride() to PropertyDefinition

Invite Workflows
- ensure they create their own namespace for new types/props
- NOTE: the previous way uses a hole in the DictinaryService which has been there
        unnoticed for over 4 years, till now. At some point, the hole will be filled in.
        
Tests pass for CMIS REST / Web Services and Query.
Tests pass for Invitation Service.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13787 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-03-31 17:48:49 +00:00
David Caruana
4e9c3a3d3a Refactor CMIS Dictionary part 2
- further simplification of CMISDictionaryService and fixup fallout
- added logging
- consolidate & fix property definition handling (only one definition per property)
- include support for aspect properties
- fix property.isInherited
- open up the door for types outside of CMIS doc, folder, rel & policy

Dictionary Service
- add isOverride() to PropertyDefinition

Invite Workflows
- ensure they create their own namespace for new types/props
- NOTE: the previous way uses a hole in the DictinaryService which has been there
        unnoticed for over 4 years, till now. At some point, the hole will be filled in.
        
Tests pass for CMIS REST / Web Services and Query.
Tests pass for Invitation Service.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13786 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-03-31 17:48:28 +00:00
David Caruana
8fcebdc7cf CMIS Dictionary Refactor
- follows pattern of Alfresco Dictionary
- simplified and much reduced DictionaryService interface
- model now compiled and cached (no more lots of small continuous object creations)
- walk model via simple getters
- validated (no dangling references)
- fix up property inheritance
- fix up sub-types for all types
- implements strict mode only for now (i.e. doesn't go outside of CMIS doc, folder, rel and policy)
- abstract helper for building other CMIS dictionaries (e.g. mapping all types in Alfresco)

Alfresco Dictionary:
- add event for initialized or re-initialized

Fix up usage in CMIS REST, Web Services and query. Tests pass.

REST support for custom sub-types and properties now reliable as constrained by validated CMIS model.

TODO:
- hook property value accessors into CMIS Dictionary

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13768 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-03-27 23:13:29 +00:00
David Caruana
384f4abdf9 MOB-378 (AtomPub binding) Support for sub-types (and properties)
- 1st pass at creation of document / folder sub-types
- 1st pass at setting / updating custom properties
- Existing AtomPub CMIS Tests passing

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13707 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-03-22 15:23:53 +00:00
Andrew Hind
d345c5d850 Antlr updates and embed gunit tests for lexer and parser tests - first tests for CMIS and FTS
- updates before starting MOB-568

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13672 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-03-18 15:30:07 +00:00
Andrew Hind
b3b960b03b Lucene upgrade to 2.4.1: MOB-587: First round of fixes for the query parser
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13633 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-03-16 12:08:04 +00:00
David Caruana
9d65d8feec Fix build. CMIS Property tests.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13616 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-03-12 23:16:08 +00:00
Derek Hulley
198ebe371e Merged V3.1 to HEAD
13256: Fix ETHREEOH-1221   Hard-coded use of "admin" username
   ___________________________________________________________________
   Modified: svn:mergeinfo
      Merged /alfresco/BRANCHES/V3.1:r13256


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13613 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-03-12 21:48:15 +00:00
David Caruana
1487977025 Part 1 of MOB-378 Support for sub-types (and properties).
Supported for read cases. Property rendering driven from type model.

Fixed support for ID, XML, HTML and URI type properties.
Fixed ContentStreamUri property name.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13607 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-03-12 16:46:46 +00:00
Andrew Hind
4e9a4cc1c6 Merged V3.1 to HEAD
12867: Part 1: JAWS-220: Fix existing tests and tests for sort
    12879: JAWS-219: Part 1: First cut of support for CMIS objectid  = objectid joins
    12891: Complete minimalist support for Policies
    12912: CMIS Query: JAWS-219: Tests, fixes and better checking
    13062: Fix for ETHREEOH-1162:Issue with skipCount parameter for CMIS query service


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13224 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-02-13 12:52:35 +00:00
Kevin Roast
afc473ec7f Build fix
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@12446 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-12-17 12:52:50 +00:00
Kevin Roast
7f41a56382 Merged V3.0 to HEAD
11450: Merged V2.2 to V3.0
      11408: Merged V2.1 to V2.2
         11345: Fixed ETWOONE-388: Long query sort times against large alf_transaction tables
   11453: Gave Locale and QName caches explicit names so they don't share the same cache
   11459: Fixed missing URL encoding for username when building URLs in web-tier webscripts.
   11460: MT - fix ETHREEOH-542
   11461: Fix for ETHREEOH-28. Fix for ETHREEOH-541.
   11462: Build fix

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@12441 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-12-17 12:06:19 +00:00
Kevin Roast
bddf43234a Merged V3.0 to HEAD
11435: New set of COCI/Edit icons from Linton for JSF client
   11436: Fix to webscript format extraction - did not correctly support URLs containing the dot character within a URL element that was not the final element
   11437: Fix to MySites dashlet to handle empty sites collection
   11438: Fix for ETHREEOH-242: If no script is selected to execute, 'Ok' button is available
   11439: Keep Sharepoint AMP web.xml in sync with web client web.xml
   11441: Build fix

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@12438 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-12-17 11:53:52 +00:00
Mark Rogers
107f267d77 remove query test
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@11591 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-10-28 15:41:06 +00:00
Mark Rogers
f5606bd61a Please do not break the build!
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@11587 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-10-28 15:23:28 +00:00
Derek Hulley
77eb167c2b Multi-Tenant node interceptor
- Actually less happening here than it would first appear
 - Some MT bean and interface consolidation
 - The unit test has no meat to it, yet... coming soon!


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10781 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-05 13:04:46 +00:00
David Caruana
e243b9dac4 Merge from SEAMIST3
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10738 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-04 11:28:01 +00:00
David Caruana
a2f7d13e76 Merge from SEAMIST3
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10735 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-04 11:25:34 +00:00
David Caruana
dc05123481 Merge from SEAMIST3
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10734 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-04 11:24:01 +00:00
David Caruana
a6625b1c61 Merge from SEAMIST3
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10733 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-04 11:22:17 +00:00
David Caruana
41b5618d1d Merge from SEAMIST3
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10732 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-04 11:15:27 +00:00