3537 Commits

Author SHA1 Message Date
N Smith
a750e322f7 Fixed several failing Publishing tests.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28961 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-12 16:08:06 +00:00
Neil McErlean
90102ca33e ALF-9385. Moved BlogService interface to standard org.alfresco.service.cmr package.
Also moved the BlogService_Security bean from blog-context.xml into public-services-security-context.xml.
  Loads of imports had to be repointed, hence the long change set. Also some spring config.
  Didn't repackage BlogIntegrationService as it has been released in previous Alfresco versions in its current location.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28958 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-12 15:22:05 +00:00
N Smith
db158066a0 Removed Environment from the Publishing Foundation API.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28957 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-12 14:41:36 +00:00
Neil McErlean
8e3b855dea ALF-9151.
Added findSites() method which uses Lucene queries to retrieve sites.
     This method supports a CONTAINS query on cm:name, title, description.
  All listSites() methods are now immediately consistent - as opposed to eventually.
     However in moving these method implementations to CannedQueries, they now only
     support STARTS_WITH_IGNORE_CASE queries on cm:name, title, description.
     I've highlighted this in the javadoc.
  ScriptSiteService now uses the eventually consistent findSites() method for searches.
  Also some fallout in the tests.



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28943 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-12 11:42:16 +00:00
Florian Mü
3f7a1edde6 Avoid exceptions if the subscription service is disabled
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28942 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-12 11:40:59 +00:00
Kevin Roast
149b729ab1 Fix to SiteService test related to ability to restore deleted sites
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28935 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-12 08:44:19 +00:00
N Smith
c0eea3ae95 Added channel-types.get REST method. Also made the versioning work when publishing nodes.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28923 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-11 16:24:58 +00:00
Kevin Roast
52f5a1c7d0 Undelete (recover from Archive store) of Share Sites now working.
- Sites deleted in 4.0 will now appear in the Trashcan, and the admin can restore them - including all user site memberships

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28921 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-11 15:26:04 +00:00
Nick Burch
cc058d2425 ALF-9156 Add CalendarService list methods, and add a temp implementation of the basic case using the FileFolderService, plus tests
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28920 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-11 15:17:39 +00:00
Florian Mü
10a9817d08 Turned subscription service into a subsystem
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28919 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-11 15:10:55 +00:00
Nick Burch
9adcac3910 ALF-9156 Port the existing (SharePoint Specific) recurring events logic to Java, and add some basic tests for fetching it
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28917 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-11 14:22:48 +00:00
Brian Remmington
869afa4673 Publishing: added authorisation framework for channel types. Migrated YouTube channel type onto it, and added Twitter and SlideShare channel types. Facebook is also added, but there is an issue with the way it authorises apps, so it isn't wired in yet.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28910 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-11 11:21:06 +00:00
Neil McErlean
4263281278 ALF-9385. Changing return-type of BlogService.createBlogPost to BlogPostInfo. Was ChAssRef which is inconsistent with the rest of the class API.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28909 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-11 11:01:09 +00:00
Andrew Hind
a3b630be98 ALF-9079: RSOLR 019: Lucene to SOLR switchover administration
- make all query language language implementations pluggable
- preparation to make all switchable

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28905 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-11 09:49:40 +00:00
Brian Remmington
dc87333db5 Migrate codebase onto Spring 3.0.5. There is an issue with using annotation based test cases that I haven't got to the bottom of yet. I have posted on the SpringSource forum here:
http://forum.springsource.org/showthread.php?111842-ConfigurationClassPostProcessor-IllegalStateException-when-starting-test-case

As a workaround I have converted all such test cases so that they simply use the "normal" BaseSpringTest super class. Fortunately there were only eight or nine such classes.

Although I have run quite a number of tests on the result I haven't run every test there is, so there may be some fallout.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28904 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-10 21:42:21 +00:00
N Smith
04639c7930 Fixed failing workflow tests.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28895 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-08 15:18:15 +00:00
Derek Hulley
4d34d73c4c Broke circular references between NodeService beans, NodeIndexer, Lucene and back to NodeService.
- NodeIndexer is now bootstrapped to pull out reference to the Lucene beans

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28892 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-08 14:20:48 +00:00
Derek Hulley
f4c07c0fe9 Moved AVM-specific fix down into AVM-specific classes
- Could affect ALF-9458: CLONE -WCM: Lucene back job creates user sandboxes and workflow (in-flight) directories in the file system under AVM lucene-indexes directory


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28890 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-08 13:24:40 +00:00
Florian Mü
5060681197 Added "following email"
Added activities email templates patch

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28883 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-08 11:09:02 +00:00
Mark Rogers
664c2bd4c8 ContentDiskDriver test fix.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28877 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-08 09:51:29 +00:00
N Smith
7684f76b3b Fixed failing Workflow tests.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28857 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-07 15:44:59 +00:00
Nick Burch
4a9e082326 ALF-9156 Convert the Calendar delete event webscript to be Java backed
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28853 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-07 14:37:49 +00:00
Mark Rogers
86f3c8cd8c ContentDiskDriverTest needs to initialise new JLAN stuff introduced by merge of JLAN_CLUSTER.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28851 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-07 14:20:05 +00:00
Mark Rogers
a13c8cbf7e ALF-6772 - IMAP: User metadata viewed in Outlook
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28848 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-07 13:11:06 +00:00
Nick Burch
6fdc7bb79f ALF-9156 More on the Calendar code, including improved dates for the get webscript
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28847 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-07 12:00:50 +00:00
N Smith
0138ee4a45 Added a new REST method, publishing-events-query.post which allows you to query for publishing events based on id or published nodes.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28846 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-07 11:53:12 +00:00
Nick Burch
32938984cb ALF-9156 Calendar Java API tagging support, and convert the Event Get webscript to be java backed
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28840 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-06 17:14:52 +00:00
Nick Burch
d1c6383f6e ALF-9156 Flesh out more of the Calendar API, and start on using it for the rest API
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28839 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-06 15:55:15 +00:00
Kevin Roast
5b22f82860 ALF-9182 SE.S62 Share - DM Remote Store migration patch
- multi-threaded AVM->DM Share surf-config remote store migration
 - patch is now active and will migrate your site/user dashboards to the Sites folder
 - all new site/user dashboard config will be created under the Sites folders

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28836 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-06 14:14:27 +00:00
Nick Burch
9ef80c899d ALF-9156 Update the new Calendar Service to match the pattern agreed yesterday
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28829 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-06 12:21:34 +00:00
Mark Rogers
ddeccadc52 ALF-8583 - Lock Service always returns LOCK_OWNER for Owner.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28828 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-06 12:20:50 +00:00
Andrew Hind
9f0ab3d127 ALF-8990: RSOLR 032: Model track and build from SOLR
- sort out SOLR per core analyzer properties
- required DD refactoring for loading these particular properties and not using I18NUtils as SOLR needs to over-ride the class loader used ....
- dictionary DAO now supports over-riding the default datatype behaviour (much easier to change the analyser properties file used)
- property added in repositoy.properties
   - lucene.defaultAnalyserResourceBundleName=alfresco/model/dataTypeAnalyzers
- models can define per property, class(type and aspects)  and model analysis behaviour by specifying an analyser bundle - see the data type model for model level config 
   - the same notation is used elsewhere
- SOLR and Repository config for this has to be kept in sync by hand - consider syncing these later

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28826 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-06 09:34:20 +00:00
Neil McErlean
7901f5ce66 ALF-9385. Separation of taggingService from Blog CannedQueries.
Initial implementation provides separate 'findTaggedBlogPosts' method and removes taggingService from the CQs.



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28816 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-05 18:00:21 +00:00
Kevin Roast
38e82ebe68 SE.S62 Share - DM Remote Store migration patch - WIP
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28814 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-05 16:03:56 +00:00
Nick Burch
e83d743100 ALF-9156 - Partial CRUD support for Calendar Entries on a new Java Service, with stubbed tests
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28801 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-04 19:03:52 +00:00
Dave Ward
629bfa0735 Merged V3.4-BUG-FIX to HEAD
28741: Merged DEV/TEMPORARY to V3.4-BUG-FIX
      28740: ALF-8993: IMAP favourite star is not visible if imap is enabled via JMX
         The org.alfresco.repo.imap.ImapService interface was extended to expose getEnabled() and made the webscript to call ImapService.getEnabled().
   28742: ALF-8801: Broken French strings
   28745: ALF-6470: French string correction
   28746: ALF-5607: Installer deletion of directories on installation cancel.
   28756: ALF-9211: Install fails when path selected that contains accents or double byte chars (e.g. Japanese)
   - Fix from Bitrock
   - Not internationalized yet
   28758: Merged DEV to V3.4-BUG-FIX
      28743: ALF-8029: JSON returned by some audit queries not valide
             Quote user in query.get.json.ftl if it has value.
   28761: Merged DEV to V3.4-BUG-FIX
      28739: ALF-9123 : "Content URL conversion failed" error being thrown
      Note: Actually changed the implementation but the principle remains.
      In future, use a thread-safe boolean e.g. AtomicBoolean to carry data
      around about the running state; don't use a class member variable as
      it can be manipulated by competing threads, etc.
   28762: Fix ALF-9376: Typo in Version2Model
   28763: Merged DEV to V3.4-BUG-FIX
      28754: ALF-8461: Invalid property cm:source (cm:copiedFrom) causes not be become sys:incomplete
             Configurable property called 'propertiesToIgnore' was added to IncompleteNodeTagger,and configured to ignore "cm:source".
      Merge note: I fixed the stored 'propertiesToIgnore' to be a Set<QName> to prevent unnecessary conversions
   28764: ALF-9036: Fix NPE on XForm session timeout
   28765: ALF-9211: Externalized new installer message
   - Needs localizing
   28789: ALF-9407: Single quote characters in messages containing {} need to be doubled


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28793 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-04 15:00:07 +00:00
Neil McErlean
212e229c73 ALF-9151. SVC 39: Lucene removal: SiteService.
SiteService.listSites calls have been partially reimplemented to use GetChildrenCannedQueries.
For queries that search with a filter on sitePreset name, the searches are now CannedQueries.
This is because those queries were formerly using string equality comparisons to filter results, which GCCQ supports.
For queries that search with a filter on site cm:name, it is less simple. Searches such as "foo" are converted to (cm:name, "*foo*") comparisons in Lucene. Such 'contains' comparisons are not supported by GCCQ. These searches still use Lucene pending agreement on which approach to take to reimplementation here. Consistency with user &  group searches is required.
This check-in injects the necessary getChildrenCannedQuery beans into the SiteService.
It adds a new method listSites() which returns PagingResults<SiteInfo>. This is used where possible within the old listSites() lucene-based method and is exposed in the public Service for use by third parties.
Also added MethodSecurityInterceptor-based SiteService_security bean to the public-services-security-context.xml



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28791 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-04 14:22:47 +00:00
Nick Burch
0bcbbccca5 First cut of a calendar crud service (for review)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28785 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-04 12:08:52 +00:00
Gary Spencer
f8f02a9f95 Short term fixes to repo/AVM filesystems and a few other bits affected by the Alfresco JLAN cluster changes.
Hard code a standalone state cache into the repo/AVM filesystems.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28775 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-04 10:55:51 +00:00
Derek Hulley
8ae8c29a76 Fix date sort checking to handle equality, which applies to both ascending and descending
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28752 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-01 11:56:20 +00:00
Derek Hulley
f54c5e8bf5 Build fix: Relax tests now that Integer.MAX_VALUE is allowed for the row limit
- ALF-7167 (RINF 11) - CQ


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28750 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-01 10:51:36 +00:00
Jan Vonka
f18746b781 ALF-9347 (SVC 42) - Blog CQ impl - build/test fix
- follow-on to r28728 (did not fail locally)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28748 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-01 10:44:04 +00:00
Derek Hulley
79cf31aa8c Working towards ALF-8806 RINF 41: Lucene Removal: Fix CopyService
- Also pulled query-specific config into separate files


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28738 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-01 02:15:17 +00:00
Derek Hulley
a6e553c048 When there are no authentication credentials, CQ permissions are ignored
- The public service interceptors prevent unauthenticated access,
   while the internal services ('little' services) should not apply any permission checks
 - Added explicit Authority-related test to check
 - ALF-9033, ALF-9129 (RINF 50), ALF-9322, ALF-7167 (RINF 11)


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28737 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-01 00:03:54 +00:00
Dave Ward
ba38811c16 Build fix - Jan please review!
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28736 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-06-30 21:15:32 +00:00
Derek Hulley
6ce00a8372 ALF-7167: RINF 11: Canned queries
- ALF-9322: RINF 11: AbstractCannedQueryPermissions enhancements
   - Pulled in logic around hasMore() so that subclasses just have to obey
   - Added in cut-off size estimates
 - ALF-9337: RINF 11: Consolidate interceptor wrappers
   - Permissions respect PermissionCheckedValue
   - Added last-in-chain "afterAclMarking" to "afterInvocationManager": marks collections as checked
   - Added 'mixin' interfaces to handle input and output for permission checking of collections

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28734 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-06-30 18:08:20 +00:00
Jan Vonka
a2d83e1311 ALF-9347 (SVC 42) - Blog CQ impl
- initial refactor - we have the option to push-down some of the prop filtering
- note: BlogServiceImpl did not need to change
- TODO: review tag req w/ Neil (either remove and/or push down)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28728 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-06-30 14:54:28 +00:00
Jan Vonka
da43c06b68 ALF-7167 (RINF 11) - CQ
- fix executeQuery for nested result map (need to allow unbounded - see comment)
- also: trivial fix to GetAuthorities CQ (remove @SuppressWarnings)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28727 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-06-30 14:35:07 +00:00
Dave Ward
eddc7efe0c Merged V3.4-BUG-FIX to HEAD
28650: Merged DEV/TEMPORARY to V3.4-BUG-FIX
      28637: ALF-5601: WCM Reviewer should be able to modify 'Launch Date' of the review item.
         Set "wcmwf:launchDate" to read-only on "submitpendingTask".
   28697: Fix for ALF-2711 - Fix to handle incorrect (negative size!) content length headers sent by Adobe Flash when uploading files over 2GB.
   28702: Merged DEV to V3.4-BUG-FIX
      28693: ALF-9314: Unable to add to multi-valued properties via AVM Console
             The node property value of Collection type must be set within square braces
             as a comma separated values without spaces. E.g. [aaa,bbb,ccc] 
   28718: Merged PATCHES/V3.4.2 to V3.4-BUG-FIX
      28569: ALF-9253 / ALF-9166: 'A valid SecureContext was not provided in the RequestContext' exception on startup following upgrade to 3.4.1
      28618: ALF-8385 / ALF-9364: Merged DEV/TEMPORARY to PATCHES/V3.4.2
         28565: ALF-5887 Addition of RenameUser command line toolContext
            - PersonServiceImpl should not disable normal behaviour when handling duplicate Person NodeRefs as the userAuthorityCache does not get updated correctly
            - Tool (base class for Import, Export and RenameUser command line tools) should not automatically login if setLogin(false) has been called. 
   28719: Merged V3.4 to V3.4-BUG-FIX
      28648: ALF-9103: Remove obsolete (and mis-spelled) use-old-dm-alcs-context.xml.sample
      28701: Corrected library for - Fix for ALF-7860 - Regression: Close button doesn't work in Node Browser


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28721 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-06-30 11:36:51 +00:00
Nick Burch
24a746c5d8 When loading JS includes with a full classpath reference, handle the Eclipse classloader behaving slightly differently on absolute paths compared to the JVM one
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28716 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-06-30 10:31:12 +00:00