2642 Commits

Author SHA1 Message Date
Dave Ward
36cdb669b1 ALF-1999: Refactored AuthorityService.findAuthorities to support search options required by Alfresco Explorer client in efficient manner
- optional parentAuthority argument - when set will only search for authorities under a given group
- optional immediate flag - when false means do a recursive search. When true means only return first level. When true and parentAuthority is null means root groups.
- search expression - which is tested against the short name and the display name
- reworked all existing calls for new semantics
- this method is for UI search only - not for existence checking!
  - removed some ill-informed calls


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19203 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-10 18:46:02 +00:00
Derek Hulley
fbe601d121 Merged BRANCHES/V3.2 to HEAD:
18000: Merged DEV/BELARUS/V3.2-2009_11_24 to V3.2
        17719: ETHREEOH-3393: AuditConfig file is read every time the audit method is called in HibernateAuditDAO


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19200 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-10 18:02:31 +00:00
Nick Burch
60573f6fdb Merge the two Model tests suites together
Merging should save a little bit of startup time.
Also, add a few more checks inthe the MultilingualContentServiceImpl test,
 along with more comments explaining what it does.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19199 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-10 17:46:41 +00:00
Derek Hulley
07a68c5fa6 Merged BRANCHES/V3.2 to HEAD:
17409: ETHREEOH-1630 Webscript Kind=org.alfresco.repository.content.stream returns information about the Thumbnail webscript
   17444: Update svn:mergeinfo
   17940: Updated JBPM log level (GraphElement) to hide errors which should be handled by Alfresco retrying txn handler
   17989: AVM - unreported NPE in OrphanRepear (clustered)
   17997: WCM clustering - ensure Alfresco/JBPM job executor handles retries (from Alfresco retrying txn handler)


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19197 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-10 17:16:34 +00:00
David Caruana
1b8a6858c0 Merging /BRANCHES/DEV/BELARUS/HEAD-2010_03_09/ to HEAD:
19193: CMIS WS transaction atomicity problem was resolved.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19196 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-10 16:53:35 +00:00
Neil McErlean
f26115a739 Added JS API to the RenditionService
new renditionServiceScript bean
    new test method in RenditionServiceIntegrationTest which uses test_renditionservice.js
    ScriptRenditionService is the entry point to the JavaScript API impl
    Can now render a ScriptNode with a Java-saved or built-in RenditionDefinition
    Can get renditions for a source ScriptNode
        get all renditions
        get renditions from rendition definition x, e.g. "cm:doclib"
        get renditions whose mimetype starts with prefix.

Added RenditionService to ServiceRegistry.
    Necessary for the JS API, also desirable for completeness



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19195 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-10 16:06:07 +00:00
Nick Burch
6093fd4d1e Package up the Workflow tests into their own suite
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19190 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-10 14:28:51 +00:00
Derek Hulley
9e6fc0052d Made FileImportTest use an explicit folder for import tests
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19187 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-10 13:26:00 +00:00
N Smith
b2d3946da1 Changed ThumbnailServiceImpl to create renditions of type cm:thumbnail and set the thumbnail name property on them correctly.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19184 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-10 12:59:21 +00:00
Andrew Hind
4835da3dce Build Fix. Checked list.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19173 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-10 09:13:08 +00:00
Brian Remmington
ec4529a360 Added a missing class from the last check in. Sorry.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19172 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-10 08:39:00 +00:00
Brian Remmington
2c9854b53b Refactored XSLTRenderingEngine and TemplatingRenderingEngine (now called FreemarkerRenderingEngine) to extract common elements.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19168 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-09 21:19:25 +00:00
Nick Burch
47837f9286 Fix the AVM test suite so that all AVM tests can be run from it, and enable that instead of individual tests in build.xml
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19167 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-09 19:06:08 +00:00
Mark Rogers
ad5e708830 TransferService:
No-Op implementation of script transfer service.  
   TransferService interface rework for createTransferTarget

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19163 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-09 16:26:47 +00:00
Nick Burch
1c48dad589 The LinkValidation service needs to be core
For some reason, when run under eclipse, the link validation service
context file isn't needed, and tests can run fine without it. However,
when run under ant, if it isn't included in the core context, then tests
using the minimal application context break. So, move it to the
core context.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19161 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-09 15:58:56 +00:00
Roy Wetherall
a3db9d0db7 Site service copes with site root missing
- List sites methods return emtpty list when site root is missing
- Create site throws excpetion with root site is missing



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19158 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-09 15:31:37 +00:00
Brian Remmington
91ba631a3b SAIL-244: Added an XSLT Template Processor (hooked into the template service) along with an XSLT rendering engine that makes use of it.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19153 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-09 14:02:55 +00:00
Mark Rogers
7073ab6f88 ETHREEOH-4181 - Binary files are often saved as zero bytes, or truncated to a multiple of 8 bytes
- Adding more coverage to the unit test to verify that this never happens.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19149 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-09 12:24:28 +00:00
Neil McErlean
b0cc34e96b RenditionService. Deprecated ContentModel.ASPECT_THUMBNAILED and ASSOC_THUMBNAILS and pointed
users to their replacements in the RenditionModel.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19143 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-09 10:56:45 +00:00
Gary Spencer
4eeef21b55 Merge 3.2 to HEAD:
17444: (record-only)
    18955: If CIFS is not enabled then do not create the thread/memory pools during startup. ALF-585.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19138 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-09 09:49:02 +00:00
Derek Hulley
22981d78a1 PermissionModel initialization is now driven by context start
- It was using afterPropertiesSet, which was triggering early EHCache initialization
 - Not actually causing problems, but was masking deeper context issues


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19136 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-09 00:51:39 +00:00
Derek Hulley
ccd0614e8a Hack-fix for Repository start/stop issues
- Nick will investigate further
 - JBPM is shutting down Hibernate (along with shared resources) in a finalize()


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19135 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-09 00:47:59 +00:00
Derek Hulley
7e837dcc74 Removed svn:executable tag
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19134 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-09 00:43:42 +00:00
Derek Hulley
7a18e7e52b Removed svn:executable tag
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19133 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-09 00:39:21 +00:00
N Smith
0a8f6f97dc Fixing a bug in CMISRenditionServiceImpl that was causing test failures.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19130 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-08 17:56:56 +00:00
Neil McErlean
52dc95264c RenditionService. Reintroduced the spring-based configuration of ThumbnailDefinitions.
Major overhaul to the ThumbnailDefinition - RenditionDefinition conversion code.
Removed the imported rendition definitions acp, replacing it with the original rendering_actions_space xml.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19129 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-08 17:18:40 +00:00
Nick Burch
724d28279b Add some more debugging on cache shutdown - if Debug level is set, report which caches get shutdown
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19128 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-08 17:16:18 +00:00
Nick Burch
d2c2565599 Catch the exception you get when you try to read from a cache with an invalid state, and re-throw a more helpful error message
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19127 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-08 17:14:19 +00:00
Brian Remmington
db196b51d5 Altered test to use the rendition content model rather than the defunct thumbnail content model.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19125 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-08 15:56:29 +00:00
Nick Burch
21b6c8cf10 Tweak the minimal context to hopefully work on the build machine too, and then re-enable tests + combine one suite
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19122 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-08 14:23:51 +00:00
Dave Ward
ad11a47457 Merged V3.2 to HEAD
19109: Merged V3.2.0 to V3.2
      19098: ALF-1960: Fixed issues when syncing with deeply nested LDAP groups


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19116 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-08 11:27:25 +00:00
David Caruana
5a523e8744 Incorporate newly separated chemistry-abdera jar.
- Abdera cmis extension split from TCK
- update classpath
- resolve util conflict dependency between surf / chemistry abdera jars

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19108 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-08 10:26:12 +00:00
Neil McErlean
dbf66edf52 Javadoc tidy-up and update. The ThumbnailService still mentioned now defunct types and associations from the old Thumbnail model. These have been replaced with the correct rendition model types.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19107 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-08 10:20:28 +00:00
Neil McErlean
b39667ad40 RenditionService. Providing extra extension point in thumbnail-rendition conversion
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19105 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-07 14:49:32 +00:00
Neil McErlean
ef6595c3de Fixed bug in test code that was causing test failure
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19104 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-07 14:26:01 +00:00
Neil McErlean
bce28a5599 Merging DEV_TEMPORARY to HEAD (RenditionService)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19103 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-05 20:02:52 +00:00
Andrew Hind
ad84497735 Build Fix: Collateral damage from Fix for ALF-1578: Custom property data fields not searchable due to lucene DEFAULT.ftsIndexerJobDetail exception
- isIndexed needs a default is it is mandatory in the binding

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19095 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-05 13:18:33 +00:00
Roy Wetherall
81111c11d8 Added option to execute all rules on children
Added a boolean parameter to execute all rules action which traverses all child folders and executes all their rules too.  This should be used with caution as it it potentially expensive.



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19083 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-05 01:34:47 +00:00
Andrew Hind
1862567b34 Build fix
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19082 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-04 22:38:02 +00:00
Andrew Hind
b77cbc5ee2 Fix for ALF-1578: Custom property data fields not searchable due to lucene DEFAULT.ftsIndexerJobDetail exception
- corrected default behaviour in the M2 model by  moving from the JibXed classes (we tend not to define default values in the m2 binding)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19070 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-04 15:05:45 +00:00
Mark Rogers
e14e100480 A few more package-info
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19064 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-04 13:47:32 +00:00
Andrew Hind
9636cc5209 SAIL-342: Alfresco to CMIS ACL mapping: change isExtract to isExact on CMISAccessControlReport
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19057 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-04 11:17:24 +00:00
Jan Vonka
765ee0c581 AVM unit test improvements
- ensure AVMServiceTest.testSetup can run after AVMServicePermissionsTest.*
- include avm/**/*TestP.java (as per AVMTestSuite, until re-introduced)
- allow PurgeTestP to fail (if orphanReaper does not finish in max cycles)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19056 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-04 11:09:03 +00:00
Brian Remmington
7f66912891 Reintroduced the transfer test case that was showing a problem with the recent changes made to the TransactionalCache. This is now working.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19052 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-04 09:02:39 +00:00
Roy Wetherall
1544887f4e Link rules now automatically re-links
- Calling link rules on an already linked folder will automatically unlink from the exisiting folder before linking to the new one.
 - Unit tests updated



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19049 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-04 00:15:09 +00:00
Dave Ward
673add1796 Allow management of Alfresco Aspects through CMIS REST and SOAP APIs
- In CMIS methods that allow setting of node properties, the <cmis:properties> element may carry an <alf:setAspects> extension that lists
  - aspectsToRemove    
  - aspectsToAdd
  - properties (properties to set belonging to aspects rather than the node type)
- In CMIS methods that allow retrieval of node properties, the <cmis:properties> carries an <alf:getAspects> extension that lists
  - appliedAspects
  - properties (properties belonging to aspects rather than the node type)
- Added extension types to Alfresco-Core.xsd and referenced in extended WSDL
- Plumbed in to Web Service and REST APIs

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19037 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-03 18:03:58 +00:00
Derek Hulley
9a966ac2b3 Reversed out 18868: Transactional caches in nested transactions force the outer txn caches to drop new data
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19002 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-03 15:54:09 +00:00
Mark Rogers
46f2fe2812 Implementing (some of) transfer service review rework.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19000 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-03 15:10:31 +00:00
Paul Holmes-Higgin
ec876e46dc Updated files to LGPL
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@18974 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-03 10:32:39 +00:00
David Caruana
cd339edad4 Update to latest Chemistry TCK for new relationship tests
- also fix relationship issues as found by relationship tests

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@18954 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-02 18:08:21 +00:00