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
- 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
- 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
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
- 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
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
- listpattern method now working for site and user dashboards
- inherited permissions correctly block invalid users from modifying or removing dashboard and component config for sites and users, private sites automatically hide child surf-config folder also
- added surf-config folder to sites bootstrap descriptor
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28382 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
28029: Added more tests for PublishingEventHelper and PublishingQueueImpl. Also added WebPublishingTestSuite.
28034: Support for ALF-8792: RSOLR 036: SOLR APIs to support index integrity checking
- ACL and ACLTX support
28036: WCM QS ML UI tweaks for marking something as the initial translation
28038: ALF-8548: WPUB: F165: Foundation API: Cancel a scheduled publishing event
- Code and initial test cases
28051: Fix for ALF-8836: No permission checks for SolrJSONResultSet
28057: WCM QS ML support for claiming intermediate non-translated folders when translating documents, with tests
28058: ML-WQS: Slight refactoring to remove RootNavInterceptor.
This functionality has been brought into the ApplicationDataInterceptor.
The effective root section is now made available to templates and components in the model.
28059: ALF-8499. SVC 10: Action Forms.
This checkin adds an ActionFormProcessor which supports the generation and persistence of Forms based on
Alfresco spring-injected action beans. The form processor produces a form field for each defined action parameter
as well as the ubiquitous executeAsynchronously boolean for action execution.
There is no styling of configuration of these forms and therefore NodeRef parameters will allow selection of any
cm:cmobject nodes and action constraints like ac-aspects will return every aspect defined in the system.
To expose these forms in the product, we would need to add form configuration for the built-in actions in order to manage and control such data.
28064: Fix for ALF-8857: Fix SOLR query caching to respect locale for ordering
28067: ALF-8846 : Intermittent: DMDeploymentTargetTest
added more debug logging and throw an explicit exception on trying to create a duplicate directory.
28068: Publishing: Tidy-up (javadoc and removal of a few unnecessary operations) prior to sprint 1 demo.
28069: Implemented EnvironmentImpl.checkStatus() method. Also created an AbstractWebPublishingIntegrationTest
and extended many of the web publishing tests from htis class.
28076: Publishing: More javadoc
28078: RINF 11: Canned queries
- minor: rename CannedQuery "query" to "queryAndFilter" and update/fix related JavaDoc (ALF-8827)
- update PagingRequest - precursor to merge with (Script) PagingDetails (ALF-8855)
28079: RINF 40: Lucene Removal: PersonService API (ALF-8805) - W.I.P.
- add GetChildren CQ support for (initially string) property filtering, including unit tests
- update GetChildren CQ to allow up to three filter and/or sort props
- add GetChildren CQ unit test for existing DB-based filtering of child types
- fix GetChildren CQ sorting, for spoofed referenceable props (including missing name)
28083: Fix for ALF-8858: Fix cache bugs (TX and ACLTX docs not tracked)
28097: Fix hard-coded checks for aspect counts following sys:localized changes
28126: Build/test fix (GetChildrenCannedQueryTest.testPropertyStringFiltering)
28147: RINF 40: Lucene Removal: PersonService API
- initial impl w/ unit tests
- note: separate task required to update JavaScript API (People.getPeople)
28157: RINF 40: Lucene Removal: PersonService API (ALF-8805)
- fix People.getPeople - put back FTS option (pending ALF-8924)
28162: Added PublishWebContentJbpmTest to test the Jbpm publish web content process definiion.
28178: Build fix. Removing a trailing comma that my ant build objects to.
28180: Preventing a NPE within TikaCharsetFinder. Was observed as part of tests for ALF-3757.
28182: RSOLR 037: Integrate CMIS Dictionary into SOLR engine
28183: ALF-8846 - fix DMDeploymentTarget(Test)
- make system auth explicit
- minor: fixup debug logging
28187: Fix for ALF-7308. The imgpreview thumbnail ... scale up small images...
I've exposed an ImageMagick configuration option ('>') as a new ImageRenderingEngine parameter, "allowEnlargement".
It's not mandatory, defaults to true, and is set to false for doclib and imgpreview thumbnails.
The net result is that doclib and imgpreview thumbnails of small graphics files (e.g. icons) will never have sizes exceeding their original size.
28191: RINF 09: Update FileFolderService (ALF-7168)
- minor: clean-up debug/trace logging
28192: Fix MT for GetChildren CQ
- FileFolderService -> list (ALF-7168)
- PersonService -> getPeople (ALF-8805)
28194: RINF 09: CMIS getChildren sorting fixes (part of ALF-7168)
- fix sorting by cmis:contentStreamMimeType and/or cmis:contentStreamLength
- add warning + debug (if some orderBy sort props need to be ignored - eg. too many or unknown)
- reviewed w/ Florian
28195: ALF-8910: RSOLR 037: Integrate CMIS Query Parser into SOLR engine
28211: Changes for ALF-8646: "RINF 38: Text data encryption"
28227: Changes for ALF-8646: "RINF 38: Text data encryption"
o fix build issue relating to missing property definition
28232: ALF-8928 - Performance degradation when loading documents from RepoStore
28233: Attempt to resolve OOM hangs in SWIFT builds
- Set mem.size.max=2048m
28234: Implementation of ALF-8986. Add support for transformation of Apple iWorks files.
A new transformer transforms (pages, numbers, keynote) iWorks 09 files to image or SWF for doclib & webpreview thumbnailing.
This transformer extracts an embedded JPEG or PDF file from a well-known location within the iWorks zip structure & uses that
to create Alfresco thumbnails. If these zip entries are not present for whatever reason, then the transformation fails in the usual way.
All of our iWorks 09 test files have an embedded JPEG and more than half have embedded PDFs.
28243: Init/refresh repo webscripts in single txn
- found whilst investigating ALF-8928
28268: Started implementing PublishEventAction. Also updated mapping of nodes from source to live environment to use associations.
28308: PublishEventAction now supports updating of nodes that have already been published.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28321 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
27908: ALF-8706: RSOLR 023: Locale is persisted for all nodes
- Part of ALF-7991: RSOLR 023: Locale support for query: Repository
- Added alf_node.locale_id mandatory column
- sys:localizable is now spoofed and mandatory on sys:base
- sys:locale property is always available
- The locale set is the I18NUtil.getLocale() (thread then server)
- TODO: Upgrade scripts, so drop database to take this change
27909: ALF-8706: RSOLR 023: Locale is persisted for all nodes
- Part of ALF-7991: RSOLR 023: Locale support for query: Repository
- Extended locale test to ensure that sys:locale can be set using properties during create
27910: ALF-8707: RSOLR 023: Upgrade to give nodes their default locales
- Part of ALF-7991:RSOLR 023: Locale support for query: Repository
- Upgrade scripts for PostgreSQL and MySQL: patch.db-V4.0-Node-Locale
27912: WCM QS ML Support for creating missing intermediate directories when adding an "orphan" translation, plus tests
27913: Fixed failing JbpmEngineUnitTest.
27914: Build fix. Fixes failing test DiscussionServiceTest.testDeleteTopLevelPost
27916: WCM QS ML forms config for overrideable name, and passing the initially orphaned flag through to the behaviour
27917: Enable the WCM QS ML Manage Translations action in the folder details page, as well as the document details page as before
27919: Quick build fix. Introduction of new property sys:locale on all nodes means that FormService is seeing some off-by-one errors.
27921: WCM QS ML - Support copying parts of the section collections to the new folder when translating a section, plus tests
27925: ALF-8707: RSOLR 023: Upgrade to give nodes their default locales
- Part of ALF-7991: RSOLR 023: Locale support for query: Repository
- Upgrade scripts for DB2, Oracle and SQLServer
27927: Update FileFolderService list/paging (RINF 09) & CQ permission checking (RINF 11)
- also added additional unit tests and update FileFolderPerformanceTester utility (for read / list testing)
27930: Corrected bean reference: "ServiceRegistry"
27931: Partially implemented EnvironmentImpl.getPublishingEvents(). This currently only supports searching on publishing event ids.
27933: Implemented PublishService.getPublishingEvent(String) method.
27934: WCM QS ML Pull over the locale resolver from Ian, and delegate much of the work to the main class
27941: ALF-7874 - Mime Type entries for detection and display for some Apple and Adobe formats
27947: ALF-2707 - Largely fix custom site properties that have multiple values, and custom site properties without a full definition, plus tests.
27964: ALF-7339:RSOLR 009: Index track and build from SOLR
- complete
ALF-7475: RSOLR 010: Index integrity check
- check ACL info
27966: RINF 09: FileFolderService list - if skipCount > number of items then return empty list
- related to ALF-7884 when using CMIS getChildren (via OpenCMIS - eg. http://localhost:8080/alfresco/cmisatom/...)
27968: ALF-7884 - getChildren() returns an error if skipCount > number of children
27970: WCM QS Fix issue in the webapp for sites where no port has been given yet
27972: WPUB: F150: Foundation API: Request that a node be removed from the live environment
- Initial support for "unpublish"
27975: ALF-8790:RSOLR 033: Automated build produces SOLR artifacts
- add configuration per core based on properties files
27976: ALF-8790: RSOLR 033: Automated build produces SOLR artifacts
- restructure, added properties files for config, track archived store
27977: ALF-8790: RSOLR 033: Automated build produces SOLR artifacts
- Solr zip included in continuous build
27978: Fixed missing policy event when sys:locale is changed.
27979: Fixed tests and checks after sys:locale became a mandatory property.
27982: ALF-8547: WPUB: F163: Foundation API: Create/update/remove a delivery channel
- Code and tests for channel update and delete
28007: Implemented starting publishing workflow on schedulePublishingEvent method. Added tests for PublishingEventHelper.
28008: Updated web-publishing-context.xml to include WorkflowService and workflowEngineId for PublishingEventHelper.
28009: Added more PublishingEventHelper tests.
28012: Support for ALF-8792: RSOLR 036: SOLR APIs to support index integrity checking
28013: Fix failing Web Publishing tests.
28015: Adding a DoNotCopy CopyBehaviourCallback for the fm:commentsRollup aspect. Part of ALF-8498.
28016: Bring over the WCM QS ML RootNavInterceptor from Ian, and productise it
28019: CMIS browser: close invalid connections
28025: Update the WCM QS ML behaviour, webscript and test to handle more things having locales by default
28026: ML-WQS:
- Wired up the RootNavInterceptor to detect locale based on path
- Wired up the replacement locale resolver to respect the locale determined by the RootNavInterceptor
- Adjusted "Manage Translations" page to render the data table correctly
- Adjusted site search box to restrict search to selected site localisation
- Adjusted top nav component to select menu items only from appropriate site localisation
28029: Added more tests for PublishingEventHelper and PublishingQueueImpl. Also added WebPublishingTestSuite.
28034: Support for ALF-8792: RSOLR 036: SOLR APIs to support index integrity checking
- ACL and ACLTX support
28036: WCM QS ML UI tweaks for marking something as the initial translation
28038: ALF-8548: WPUB: F165: Foundation API: Cancel a scheduled publishing event
- Code and initial test cases
28043: Added missing JCR mapping for property type d:locale
- This property type is not new, btw.
28312: RepoBM: minor cleanup
- remove hardcoded JMeter install dir
- add configurable user.dir (for default import of test data) - check that default zip exists
- update readme
- default threadfolder should be null (in case of absolute folder paths)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28320 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261