3559 Commits

Author SHA1 Message Date
Nick Burch
bfa8a8c4ff ALF-9156 Tweaks to the calendar listing, to return better empty results where needed, and to include the container noderef too
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29038 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-14 14:24:16 +00:00
N Smith
812398be66 Fixing URL issues on publishing.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29035 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-14 13:39:07 +00:00
Nick Burch
72eb9be0bd Provide a new SiteDoesNotExistException, extending the existing SiteServiceException, to make it easier for code to identify this case
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29030 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-14 13:20:59 +00:00
Dave Ward
dbf61eef67 Merged V3.4-BUG-FIX to HEAD
28997: ALF-9400 / ALF-7940: handle the absence of a property value in CMIS web services by setting the property to null (consistent with REST apis)
   29000: ALF-6293: More verbose logging when installing services on Linux
   - Fix from Bitrock
   29003: ALF-9490: Removed overriden strings from the preBuildActionList that were stopping the correct translations from being picked up!
   - Plus extra strings externalized by Bitrock
   29013: ALF-9361: CLONE -sync Flat IMAP client with Alfresco is slow and inaccurate      
      Missed a binding of the beforeDeleteNode behaviour.   
   29023: Fix compilation error

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29029 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-14 13:08:53 +00:00
Florian Mü
1ac2c21ca6 OpenCMIS server bug fix: current version should be treated as a node, not as a version.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29028 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-14 12:32:45 +00:00
Neil McErlean
b3d8251bfb ALF-9441 part of ALF-9151.
potentialmembers.get.js now uses new ScriptAuthorityService.getGroups() method for immediately consistent results.
  Added new test case.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29027 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-14 12:07:27 +00:00
Nick Burch
e22d74350d ALF-9156 Calendar listing permissions check unit tests
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29025 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-14 11:52:52 +00:00
Nick Burch
d60b7631af ALF-9156 More testing for the calendar multi-site listing canned query
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29024 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-14 11:29:17 +00:00
Neil McErlean
7c65a094d5 Refactor of the SiteService Lucene query to support users explicitly searching for "*" in the site-finder UI.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29015 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-14 09:11:09 +00:00
N Smith
68956f2c48 Added UrlShortener interface/implementation. Included support for shortening of Urls generated through publishing of content.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29014 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-14 09:11:04 +00:00
Nick Burch
b2459e54cf ALF-9156 Start on the backing ibatis/sql for the Calendar multi-site event listing canned query
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29005 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-13 21:57:37 +00:00
Nick Burch
0cb9a6b9f7 ALF-9156 Start on the calendar entry canned query, with date filtering, based on the Blog one
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28998 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-13 17:12:04 +00:00
Alan Davis
86f9dfea17 Merge DEV/V3.4-BUG-FIX to HEAD (28799-28800,28864,28875,28879,28916,28941,28956,28970,28993)
28993: HomeFolderProviderSynchronizer: Provider used for LDAP to continue to use username as home folder name directly under .../app:company_home/app:user_homes
   Property spaces.user_homes.regex.pattern now set to "" rather than "^(..)" which would have given a single level hash structure.
   28970: Merge DEV/ALAN/HOME_FOLDER to DEV/V3.4-BUG-FIX
      28947: - Introduction of version 2 HomeFolderProvider2 and re-factor of version 1
        so that the code used to create the folders is now in the HomeFolderManager.
      - Re-factor homeFolderProviderSynchronizer to handle HomeFolderProvider2.
      - Addition of AbstractHomeFolderProvider.V2Adaptor to allow external providers
        that extend AbstractHomeFolderPathProvider to be handled by
        homeFolderProviderSynchronizer.
      28860: Minor change to class comment and removed unused imports
      28858: ALF-4727 Hashed home folder provider added and used by default for LDAP sync users  - based on Romain Guinot work.
      ALF-7797 HomeFolderProviderSynchronizer added to move existing users (normally those added by LDAP sync) into location preferred by home folder provider.
      - HomeFolderProviderSynchronizer bug fixes
        - tenant accounts supported for first time
        - addition of a phase to create parent folders before moving home folder to avoid a race condition
        - check for conditions that would result in FileExistExceptions as we don't want a the transaction to be discarded as this results in retries.  
      - HomeFolderProviderSynchronizerTest integration test including tenant services
      - HomeFolderManager now sets the HOME_FOLDER_PROVIDER if it uses a default when HOME_FOLDER_PROVIDER is not set.
      - AbstractHomeFolderProvider clears cache when path reset as it will be invalid.
      - UIDBasedHomeFolderProvider.createNewParent creates its own mutable List as the one passed in may not be mutable.
      28580: Save code changes - added comments to do with LDAP syn overriding the HFP value and related to this added a global property to keep empty parent folders. 
      28347: HomeFolderProviderSynchronizer
      - issue to do with new run of sync having created a user via UI that has a home folder as one of the parent folders.
      - issue to do with catching exception when creating temporary folder - transaction is gone
      - give up if error in any phase
      28298: Addition of HomeFolderPathProvider (based on Romain's work) and addition of HomeFolderProviderSynchronizer.
   28956: Merged DEV to V3.4-BUG-FIX
      ALF-9428: Multitenancy users not preserved after upgrade from 3.2.2.7 to 3.4.2
                - Provide correct RunAs context in FixUserQNamesPatch batching.
   28941: ALF-9361 : CLONE -sync Flat IMAP client with Alfresco is slow and inaccurate
   28916: ALF-9421 The AlfrescoJavaScript action now includes company home in the JavaScript scope.
   28879: Fixed ALF-9296: Alfresco Dashboard: Impossible to approve/reject task from My Tasks dashlet on My Alfresco
   28875: Fixed ALF-6329: SPANISH - Share, translation on Transfer Target configuration
   28864: Message:
   ALF-9430: RuntimeExec waitForCompletion logic is obscure
    - Only a single flag 'isCompleted'
    - Set flag in try-finally
    - Added notify()
   However, the wait() code doesn't, in practice, get called because the waitForCompletion is synchronized with the run()
   and is called a while after the reading thread is triggered.  So the logic is less obscure and safer for the finally.
   28800: File for rev 28799: ALF-9240
   28799: Merged DEV to V3.4-BUG-FIX
      28797: ALF-9240: Issue with adding an aspect with large multivalued list
             Added unit test to stress, but could not reproduce

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28995 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-13 16:47:03 +00:00
Neil McErlean
aa700571db ALF-9385. Passed pagingReq skipCount and maxItems through to the Lucene query. Also removed some unnecessary logging.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28990 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-13 15:45:00 +00:00
Neil McErlean
f58f9c91c4 ALF-9385. Refactoring of the findTaggedBlogPosts method.
Now a more general  findBlogPosts(), which simplifies the webscript implementation slightly & removes possibility of an UnsupportedOperationException.
  Also added new test case that finds before/after/within specified date ranges.



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28988 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-13 15:33:32 +00:00
Nick Burch
128d5c9afc ALF-9156 Switch the Calender basic listing to using a canned query directly, and start on a permissions check for it (currently disabled)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28986 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-13 15:26:58 +00:00
Gavin Cornwell
097482c3ee SVC60: Review the use of findAuthorities() within ScriptAuthorityService (ALF-9247)
ScriptGroup i.e. the "groups" root object now has a getGroups method that behaves similarly to People.getPeople wherein depending on the filter provided determines whether consistent results are returned. Any filter that can be done with a canned query i.e. startsWith queries or "*" will go to the the AuthorityService.getAuthorities method otherwise the lucene based AuthorityService.findAuthorities is used.

The UI also no longer sends a leading *, it it still supported but the user must add it themselves.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28983 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-13 14:54:40 +00:00
N Smith
7392670c01 Fixed failing ChannelServiceImpl.testUpdateChannel.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28976 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-13 12:02:54 +00:00
N Smith
9534fcf21e The publish_web_content_processdefinition now always runs the PublishEventAction asynchronously. Added ScriptAction.executeAsynchronously(ScriptNode) method.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28975 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-13 11:45:51 +00:00
Derek Hulley
17a5ae11ff Added double-checks for associations when a potential failure is detected
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28974 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-13 11:44:57 +00:00
Brian Remmington
f12b5edafa Publishing:
- SlideShare channel now tested (the service seems pretty flaky, but the publishing works fine).
- A couple of tweaks to ensure that credentials are being stored correctly for each channel.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28966 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-13 08:21:05 +00:00
Florian Mü
23119a80b5 Added subscription service unit test
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28962 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-12 16:16:30 +00:00
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