1178 Commits

Author SHA1 Message Date
Derek Hulley
9e836f04f8 Yannick Pignot (European Commission) multilingual services
- EditionService for versioning of groups of translations
 - Quite a bit of trimming of whitespace that I have no intention of undoing.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5927 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-13 01:13:25 +00:00
Derek Hulley
c0f4f6daa7 Cleaner checks the failure mode to catch the VM shutting down during execution.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5925 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-12 22:57:09 +00:00
Andrew Hind
7ba2f7e011 Build Fix after removing update to parent node in the node service.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5923 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-12 21:45:28 +00:00
Britt Park
e510b43f0e Added onUpdateProperties callback to AVMNodeService.
This one callback slows down the AVM by close to 50%. 
Not good.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5921 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-12 15:39:17 +00:00
Kevin Roast
f074450627 Script specific Node class renamed to ScriptNode.
SVN rename command used to ensure file history is kept.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5920 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-12 15:10:48 +00:00
Gavin Cornwell
4c6a93a5a9 - Partial first cut of initial version of links management UI
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5917 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-11 20:54:23 +00:00
Derek Hulley
a6440c5ac2 Remove test again after accidental checkin
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5916 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-11 20:39:26 +00:00
Derek Hulley
9d6d3b0b9c Fix AR-1505: onUpdateNode is not called for parents when child nodes are added or removed
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5915 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-11 20:33:21 +00:00
Derek Hulley
cc948d8c39 Renamed TransactionComponent to TransactionServiceImpl
Fixed naming convention to be 'transactionService', 'TransactionService', but kept an alias 'transactionComponent'.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5905 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-11 10:10:38 +00:00
Derek Hulley
23cf6181e6 Removed very low-level check for content URL. This class is used independently of the content stores.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5901 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-09 04:27:46 +00:00
Derek Hulley
1a415b73dc Tighter handling of certain error conditions during content replication
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5900 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-09 01:20:14 +00:00
Derek Hulley
f30ccf8d6c Allow other types of content URLs other than store://...
Enforce restriction that all content URLs must be of form protocol://identifier
Allow for read-only stores.
Improved tests so that it is easier, when writing a new store, to determine if the store is compliant or not.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5899 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-09 00:43:02 +00:00
Jon Cox
9b03b15674 Point checkin.
Augmented AVMRemote to expose lookup that can fetch deleted nodes.
Minor fixup to excluder regex in avm-services-context.xml.
Added excluder to LinkValidationServiceImpl.
Prep to walk difference using SyncService (getting ready for incremental update of link validation tables).


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5898 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-08 23:21:24 +00:00
Gary Spencer
9e79f94c7d Switched to using the ICU4J library to normalize the UTF-8 strings after conversion from a byte array. AR-1507.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5892 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-08 08:54:48 +00:00
Ariel Backenroth
97e6fc07df implementing the regenerate renditions wizard
- refactoring to centralize regenerate code
- adding onchange event to UISelectList to trigger reload of page
- reorganizing some webproject code for better reuse
- fix for submit from create web content (a webproject property was added to submitdialog but not createwebcontent)


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5889 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-08 01:09:56 +00:00
Derek Hulley
458a400693 RuntimeExec class is tighter when the actual command is unavailable and guarantees a failure error code.
The RuntimeExecutableContentTransformer generates a more verbose error message when the tranformer fails to validate on startup.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5888 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-07 22:15:32 +00:00
Britt Park
32d169b99b AVMLockingService is better tested now. Added isAdminAuthority() to
AuthorityService.  Can be removed if this is objectionable.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5887 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-07 20:20:34 +00:00
Britt Park
60f4547fe0 Modifications and extensions to AVMLockingService complete. Needs much more testing.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5875 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-07 00:02:10 +00:00
Jon Cox
d4b3b42cab Point checkin for link validation & changed AVMSyncServiceClient to AVMSyncServiceRemote.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5872 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-06 22:06:38 +00:00
Kevin Roast
30136a58eb Fix up script service tests to expect native JavaScript array return types instead of assuming java arrays
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5869 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-06 17:16:43 +00:00
Kevin Roast
6cadd8573a All arrays returned by JavaScript API calls (i.e. node.children) now returned as proper JavaScript native Array objects.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5866 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-06 11:16:55 +00:00
Derek Hulley
1b24226f6b Fix for AR-1483: Multithreaded access to booleans via volatile access.
Made reindex logic a bit more obvious to the reader.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5861 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-06 08:56:27 +00:00
Kevin Roast
74b2ac0c79 REST API command support for launching the XForms edit content dialog. AVM Templating API addition to retrieve the list of modified items for a sandbox user.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5858 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-05 20:21:57 +00:00
Jon Cox
494859be2d Reorg so web-client can access LinkValidationService API from repo action framework.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5857 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-05 18:54:28 +00:00
David Caruana
cbeecf5fe5 Web Scripts:
- fix issues integrating with Flex (rename of tunnel url arguments)
- add admin to required authentication levels
- support json callback method (for browser based ajax requests)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5856 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-05 18:17:59 +00:00
Kevin Roast
4843b56e2a GetAspects() method now working correctly for AVM nodes in templating API
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5854 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-05 17:49:13 +00:00
Derek Hulley
8f836c1a6b Fixed AR-1483: Potential infinite loop caused by unsynchronized check on shared resource
Note: See the bug comments to see why I've added this in.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5851 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-05 15:55:50 +00:00
Derek Hulley
8e941454ce Temporarily disable the test while I fix the problem.
The test is fine, but it's the in-transaction create and delete of child assocations
that is causing the issue.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5848 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-05 12:00:32 +00:00
Britt Park
cd1aa771b4 Additions to the AVMLockingService API. All but one are implemented. None are tested.
Oh AVMLockingServiceTest will fail if not started from a clean database.  I'll fix that up 
in a bit.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5845 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-05 01:02:03 +00:00
Andrew Hind
f1347f3bf6 Build fix for permission model tests
Fix for "allowAll" + deny something for the same auth on the same node -> now denies

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5843 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-04 16:06:54 +00:00
Derek Hulley
6ff0696bf9 Added a raw download servlet at URL http://.../alfresco/dr?contentUrl=...?ticket=...
Added ContentService.getRawReader to get content directly using a content URL.  To access this, you need to be admin.
Fixed EHCacheAdapter to handle non-Serializable values.
Added tests for above and for AbstractRoutingContentStore.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5841 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-04 14:44:29 +00:00
Mike Hatfield
c2b6a11cd7 Added getTaskById(String taskId) to get a single workflow task (req'd by Office Add-In)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5840 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-04 13:07:11 +00:00
Kevin Roast
527addc354 Short URL format for common Alfresco servlets - for internal use
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5839 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-04 11:06:26 +00:00
Jan Vonka
1bfe9ad0dc Fix incorrect null check in DictionaryDAOImpl
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5837 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-04 09:18:51 +00:00
Derek Hulley
1b13a0a636 Test still affected by flushes
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5832 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-01 18:08:32 +00:00
Derek Hulley
dec1de7f34 Fixed flush mode for queries to get child associations.
This had the side-effect of fixing the ADMLuceneTest that was failing during in-transaction deletions of child associations.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5828 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-01 14:07:04 +00:00
Andrew Hind
6675ba0e6e Fix Full index rebuild with indexes in place
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5824 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-01 12:49:54 +00:00
Derek Hulley
819c7084a2 Added 'version' column to ADM entities
- A patch will assign initial version values to the entities
 - Deprecated TransactionUtil in favour of the RetryingTransactionHelper
 - Renamed RetryingTransactionHelper.Callback to RetryingTransactionHelper.RetryingTransactionCallback
   The name Callback clashes with many other classes in the classpath
 - Moved loads of components to be included in the retry behaviour
Duplicate name checks
 - This is done using a query, but the entity update is not written to the database early
 - Concurrent adds of the same-named child node will only fail at the end of the transaction
 - TODO: Detect the duplicate violation during transaction retrying
Workaround for ADMLuceneTest
 - Disable session size resource management during tests


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5823 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-01 12:40:17 +00:00
Andrew Hind
bbbd18923f Test fix
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5822 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-01 09:46:15 +00:00
Andrew Hind
f77adb953d Include avm recovery in the test
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5821 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-01 09:37:12 +00:00
David Caruana
8e38ff8253 Web Scripts:
- improved generated documentation (indexed by web script url & package)
- addition of ticket management web scripts
- addition of put, post & delete support to Web Script test server

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5820 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-31 18:03:17 +00:00
Andrew Hind
4bd5b0266c Index rebuld and vlidation support for AVM.
Added AVM indexes to the configuration checker

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5818 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-31 14:15:12 +00:00
Derek Hulley
e07a0a4c4b ML Authentication Issues:
- Everyone, including guest, gets explicit full rights to each new cm:mlContainer instance.
 - The MultilingualContentService better permission checks against the content nodes that go in and out of it.
 - Changed some of the API return values to be more explicit about whether the cm:mlContainer or cm:mlDocument is required.
 - Added explicit tests to ensure that even guest is able to manipulate the cm:mlContainer.
ML Languages List:
 - The default value is now punted to the top of the list.
Various neatening.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5816 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-31 03:42:59 +00:00
Derek Hulley
cc2705ef49 Removed some unused javadoc tags
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5815 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-31 03:34:33 +00:00
Derek Hulley
95972722b3 Empty translation must begin life with a null content URL
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5814 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-30 22:33:06 +00:00
Kevin Roast
4cfeec0306 Manage Task Dialog (from web-client) can now be launched from the MyTasks portlet for an individual task.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5813 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-30 16:35:40 +00:00
Derek Hulley
44bf30583e ML fixes
- The naming convention for a french empty translation of x.doc is x_fr.doc
 - Fixed mimetype and initial file sizes
 - Raised minor issue: AR-1487
 - Shortened crazy language names
 - Made language name ordering follow the declaration order in the config XML file


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5812 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-30 15:03:16 +00:00
Gavin Cornwell
389687464d - Expired content job now uses a query to find expired items rather than crawling all nodes
- Fixed bug when handling expired items submitted by users removed from web project
- Re-applied config for comments in manage task dialogs
- Re-applied config for expired items actions
- Removed fix width for comment column in workflow history

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5811 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-30 12:08:36 +00:00
Derek Hulley
7b2b57095c Fixed more tests
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5807 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-30 06:27:43 +00:00
Britt Park
0ea69ac954 Another pair of convenience methods for AttributeService:
removeEntries, which removes map entries by query.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5806 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-29 19:17:04 +00:00