Commit Graph

749 Commits

Author SHA1 Message Date
Neil McErlean
d914c1e445 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
af57e9fb87 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
Florian Mü
2ebe76a72d 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
N Smith
df033727ad Removed the Environment from the Publishing REST API methods.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28939 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-12 10:46:59 +00:00
Florian Mü
94e7cd42b1 Fixed following filter in activities dashlet
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28938 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-12 10:32:24 +00:00
N Smith
22e9801c0c 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
Florian Mü
319eb8ec39 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
cb86321b59 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
761099b84e 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
6ea22b4b1d 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
Kevin Roast
04a9668097 Add sys:temporary aspect to surf config file before it is deleted
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28907 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-11 10:35:58 +00:00
Nick Burch
9bdeee7986 ALF-9156 Convert the last of the Calendar CRUD webscripts to Java (except for recurring parts)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28866 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-07 20:57:31 +00:00
Nick Burch
dfa5971d86 ALF-9156 Convert the Create Calendar webscript to Java, and provide infrastructure in the abstract parent to help with JSON input and Dates
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28861 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-07 16:49:42 +00:00
Nick Burch
4a873d55a4 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
Nick Burch
ae3a6f8b10 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
ba3e846eb5 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
e9003e53bd 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
5c1e37bb5c 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
Neil McErlean
ba537fe43e 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
d088cbe3de 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
45f6179b19 ALF-9156 - Begin to use the Calendar Service for a replacement java backed calendar webscript
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28802 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-07-04 19:05:19 +00:00
Dave Ward
f4f15adf14 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
c56000ccc2 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
1bceeec28e ALF-9156 - Finish unit tests for the existing Calendar (JS) REST apis
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28730 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-06-30 15:00:28 +00:00
Nick Burch
411811c763 More Calendar REST api crud unit tests for ALF-9156
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28723 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-06-30 12:09:37 +00:00
Andrew Hind
a46339b44e ALF-8990: RSOLR 032: Model track and build from SOLR
- SOLR tracking now reflects all models loaded and changed on the repo to which it points 
- model tracking and related fixes
- model XML now round trips for Boolean properties :-)
- upgraded to latest version of jibx - 1.2.3
- added API to load models and not class load constraint extensions (does not affect the generated model XML only constraint enforcement)
- removed solr specific m2 model binding
- fixed SOLR tracking test

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28714 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-06-30 09:18:46 +00:00
Nick Burch
c0e2c1a136 ALF-9156 Start on Calendar Rest API unit tests
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28712 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-06-29 22:32:00 +00:00
N Smith
b6b0c8fae9 Added capability to search for published nodes on PublishingEventFilter. Also, improved robustness of publishing-queue.post REST method.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28704 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-06-29 16:54:11 +00:00
Roy Wetherall
8ffa518037 GDoc:
- Added web script to return the status of the GDoc service (see ALF-8684)
  - Refactor of service code to fix some of the issues when configuration details are changed via JMX or Share



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28681 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-06-29 05:58:56 +00:00
Jan Vonka
5f6d75fa73 ALF-8969 (SVC 42) - BlogService get*
- minor: refactor BlogInfo interface/impl (collapse a few files, update imports)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28671 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-06-28 15:44:02 +00:00
Nick Burch
bb54fca97b ALF-9243 - de-lucene SiteExportGet by switching authority identification from find to get contained
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28661 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-06-28 13:46:05 +00:00
N Smith
250bb3a4cc Implemented publishing-queue.post REST API method.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28632 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-06-27 20:30:37 +00:00
Neil McErlean
ba6d532d55 Merged BRANCHES/DEV/SWIFT to HEAD:
r28607 Fixing a spring configuration error. I had injected the activityPostService instead of the activityService into some webscript controllers.



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28610 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-06-27 11:24:52 +00:00
Neil McErlean
9e38ed78ea Merged BRANCHES/DEV/SWIFT to HEAD:
28466: Fix for ALF-6541. maintainAspectRatio does not default to true as documented.
        Fixed the javadoc to reflect reality.

Merged BRANCHES/DEV/SWIFT to HEAD:
   28482 Implementation of ALF-8969 Lucene removal: Blog webscripts.
        ** Checking this in on Swift branch, as I have the work there. Will merge to HEAD.

        The blog webscript controllers have been ported from JavaScript to Java.
        A new foundation service, the BlogService has been added and the impls of the webscript controllers delegate into that service, thus encapsulating business logic within the service.
        The API for this service is based on the requirements of the existing webscripts, but is for the most part a 'sensible' API. One controller (blogposts.get.js) had very domain-specific requirements (get all of my drafts and all published posts) and it is implemented as a deprecated public method on the service.
        The API is not complete, but represents a good starting point for any future feature development.
        The various Lucene queries have been replaced with calls to the nodeservice (as an impl detail within the BlogService) which get all blog post nodes and then post-filter them based on property values, aspect/property presence etc. This will       be refactored into a CannedQuery in a subsequent check-in.
 
        I've written new test cases aimed at this API & have extended the REST API tests.

Merged BRANCHES/DEV/SWIFT to HEAD:
   r28483 Prevent NPEs in some circumstances. Related to ALF-8969.

Merged BRANCHES/DEV/SWIFT to HEAD:
   r28484 Fixing activity reports for Blog posting. Following on from previous chagnes related to ALF-8969.

Merged BRANCHES/DEV/SWIFT to HEAD:
   r28597 ALF-8969. Introduction of brute force Canned Queries for BlogService query methods.
        This will be merged to HEAD after a chat with Jan/Derek.

        Introduced 'brute force' Canned Queries for the various BlogService query methods.
          These use the underlying nodeService to retrieve result sets.
          They must use the small-n nodeService in order to get full result sets.
          Therefore I have had to add some AFTER_ACL_ENTRY checks to the BlogService_security bean for the query methods.
        Added various CannedQuery classes for the BlogService queries. They currently split into two:
          1. a GetBlogPostsCannedQuery which goes some way towards providing configurable query support, albeit driven by the needs of the Blog Service REST API.
          2. a DraftsAndPublishedBlogPostsCannedQuery, which is a very specific CQ aimed at a very specific scenario in the REST API.
        Changed the BlogService API to return a BlogPostInfo (simple POJO) rather than the less extensible NodeRef.
          This affected the webscript implementations.
        Added BlogPostInfo as an acceptable return type for security-based filtering in ACLEntryAfterInvocationProvider.

Merged BRANCHES/DEV/SWIFT to HEAD:
   r28598 Repackaged the CannedQuery-related classes to a dedicated subpackage. ALF-8969.

Merged BRANCHES/DEV/SWIFT to HEAD:
   r28602 Replacement of some JS controllers with Java-based ports. Part of ALF-8969.

Merged BRANCHES/DEV/SWIFT to HEAD:
   r28603 Disabling two test cases pending a refactoring. Related to ALF-8969.

Merged BRANCHES/DEV/SWIFT to HEAD:
   r28604 Fixing a compilation error.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28606 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-06-27 10:10:07 +00:00
Florian Mü
e353ed8f0a Activities Dashlet: made activities filter work
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28590 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-06-25 19:23:56 +00:00
Florian Mü
0a61f72c15 User status changes now generate activities
Activities Dashlet:
- added "I'm following" filter
- prepared activities filter (not working yet)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28589 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-06-25 17:58:43 +00:00
Dave Ward
8dc34a60c0 Merged V3.4-BUG-FIX to HEAD
28546: Merged V3.4 to V3.4-BUG-FIX
      28544: Fixes truncated German strings
   28567: AccessAuditorTest and PropertyAccessFilterTest added to AuditTestSuite. These tests had been excluded by build.xml.
   28570: Fixed ALF-7961: Constraint value with a comma shows multiple fields
   28574: ALF-9222 / ALF-9290: Cannot edit a file using Webdav (MacOS specific)


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28576 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-06-24 14:54:45 +00:00
Brian Remmington
5672913088 Publishing:
- Add latest gdata libs (1.45.0) with source code
 - cleaned the publishing context files out of the top-level application context
 - removed the notion of "content root" from publishing channels
 - added YouTube publishing channel with actions to publish and unpublish
 - added dummy channel types to ease UI development

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28575 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-06-24 14:40:10 +00:00
N Smith
2448e6d835 Updated channels.get webscript to support specifying a NodeRef.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28552 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-06-23 19:35:56 +00:00
Gavin Cornwell
35c4ec7c23 ACTVT 93: Refactored /api/workflow-instances/{id}/diagram REST API to extend StreamContent and use temporary file (ALF-8634)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28509 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-06-22 08:30:09 +00:00
Nick Burch
52fd30df92 Avoid "ERROR [alfresco.webdav.protocol] [http-8080-1] java.lang.NullPointerException" when browsing a webdav share where the mimetype of a document lacks a human readable version
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28506 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-06-21 23:21:47 +00:00
Florian Mü
f0acf43970 Completed subscriptions REST API and added a bit more UI logic
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28488 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-06-20 18:08:36 +00:00
Gavin Cornwell
5daf79d986 Server side implementation of ACTVT 93: The Share client exposes the diagram associated with a workflow (ALF-8634).
WorkflowService Java API now has a hasWorkflowImage() method which is used in the existing workflow instance REST API to determine whether to return a URL to the diagram ("diagramUrl" property) in the response. A new REST API has also been added (/api/workflow-instances/<id>/diagram) to allow retrieval of the PNG image data.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28485 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-06-20 16:01:32 +00:00
Steven Glover
6abcef0ba7 Checkin for RSOLR 031: "Remote API to get and compare models"
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28472 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-06-20 09:28:02 +00:00
Florian Mü
28ad07846e Subscription service REST API and a glimpse of UI
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28460 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-06-17 16:17:32 +00:00
N Smith
497c19cb59 Created channels.get Rest Api webscript.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28459 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-06-17 15:05:47 +00:00
Kevin Roast
bb5c53d645 Swift – SE.S21 Share - DM Remote Store:
- Final code cleanup and javadoc

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28455 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-06-17 13:26:00 +00:00
N Smith
fdeeab3397 Created channels.get Rest Api webscript. Tested in PublishingRestApiTest
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28454 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-06-17 12:46:17 +00:00
Kevin Roast
88f762622b Swift – SE.S21 Share - DM Remote Store:
- Special character (path/pattern encoding) support and fixes

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28452 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-06-17 11:44:38 +00:00
Jan Vonka
faf34d29fb ALF-9127 - WebDAV - fix unsafe use of SimpleDateFormat
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28420 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-06-16 09:46:50 +00:00