1306 Commits

Author SHA1 Message Date
David Caruana
1544ecb1b6 Implement addNode and removeNode for adding/removing an existing node to/from a parent.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5983 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-15 16:05:12 +00:00
Andrew Hind
2c2b000f3e Fixs for AR 1411, 1510, 1517
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5982 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-15 15:41:45 +00:00
Derek Hulley
f1b226a279 Test configurable XML metadata extractors.
This doesn't include the wrapper extractor, yet, but there are two extractors that extract metadata from Eclipse Project XML and Alfresco Model XML files.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5980 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-15 15:11:54 +00:00
Derek Hulley
5cacfe861e Lock implementation was listening for beforeUpdateNode on the parent node.
We no longer raise update calls for the parent nodes, so this had to move to onBeforeCreateChildAssociation.
The node service was calling oncreateNodeAssociation, instead of the correct child association behaviour.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5974 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-15 11:19:32 +00:00
Kevin Roast
fa49ba7916 Webscript URLs now supported in the Custom View panel for the Browse, Space Details and Document Details screens.
Added new aspect definition to support Webscript custom views.
Web context path (i.e. /alfresco) is now automatically prefixed onto webscript urls specified in JSF runtimes.
Modified the existing webscript dashlet JSPs to remove the hardcoded /alfresco path.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5973 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-15 11:07:13 +00:00
Derek Hulley
2cc5f559ec Remove use of Java 6 feature
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5972 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-15 08:07:02 +00:00
Derek Hulley
646d634f76 Fix for use with case-sensitive DB
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5971 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-15 08:06:38 +00:00
Derek Hulley
f770bb0190 XPath-based XML metadata extractor
- No tests
 - Simple root element name redirector
Some comments fleshed out on the new mapping metadata extractor


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5969 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-15 02:30:14 +00:00
Derek Hulley
1b97517ce6 Removed beforeUpdateParent policy calls for association modifications.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5968 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-14 23:58:44 +00:00
Derek Hulley
0bb6f1cdb1 Javadoc: Minor reference fix
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5966 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-14 19:05:58 +00:00
Derek Hulley
e670eabfad Javadoc: Fixed @inheritDoc to be {@inheritDoc}
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5965 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-14 18:18:53 +00:00
David Caruana
bfaedb95ca Fix fallout from javascript/freemarker node conversion refactoring.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5963 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-14 18:11:23 +00:00
David Caruana
ea815d8e9f - Provide runtime show & hide of Alfresco Javascript Debugger
- Simplify Web Script home page

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5962 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-14 17:21:29 +00:00
Jan Vonka
7d160bc4d9 - updated comment with correct eg workflow definition name
- fixed typo

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5959 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-14 15:50:56 +00:00
Jan Vonka
e70a71dc10 - updated comment with correct eg workflow definition name
- fixed typo

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5958 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-14 15:50:37 +00:00
Derek Hulley
dd2f3985b9 Tests for the RetryingTransactionHelper
- Tests new inner transactions
 - Tests various modes of failure, including silent mark for rollback
Archive restore uses retries


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5953 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-14 12:34:39 +00:00
Kevin Roast
d403021a74 Fix to recent Script ValueConveter changes - NativeDate objects were being incorrectly converted to an empty Map.
Will fix build as script test was failing due to this.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5952 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-14 12:13:05 +00:00
Kevin Roast
04a78f17d2 Outlook email messages (in OLE2 .msg format) now converted to text for full-text indexing.
JUnit test for new transformer class.
Added new test to ContentTestSuite.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5951 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-14 10:51:51 +00:00
Derek Hulley
ede9345a5b Fixed retrying wrapper for non-propogating transactions.
Fixed retrying for the scenario where a transaction is marked for rollback but without an exception.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5950 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-14 08:39:04 +00:00
Derek Hulley
b65a6fe1a8 Relaxed TransactionalCache
- Treating the shared cache like a database w.r.t. concurrency leads to too many conflicts,
   when it is quite reasonable to just throw the cached values away when in doubt.
Fixed cache size tracing


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5949 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-14 08:25:13 +00:00
Derek Hulley
fb069d1680 Merged DEV/DEREK_2.1 to HEAD
- Removed Node.parentAssocs mapping
 - Added parentAssocs transactional cache to NodeDAO
 - Added concurrency detection to TransactionalCache
 - Fixed cluster sample config


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5948 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-13 23:50:14 +00:00
Derek Hulley
36ea25f822 Added retrying behaviour to asynchronous actions.
Logging of asynchronous action failures goes to the logger and not just console.
Injected ThreadPoolExecutor to be used for asynchronous actions.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5946 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-13 23:31:31 +00:00
Derek Hulley
7956a08df8 Fix for AR-1430: Table name too long for Oracle
- Shortened table name
 - A new table will be created, so reintroduced the patch under a new ID and target version 56


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5942 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-13 19:55:22 +00:00
Derek Hulley
7735ae0acd Minor fixes:
- ContentStore directory creation does a few retries if it fails
 - A little less Session clearing during content store cleaning


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5941 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-13 19:33:30 +00:00
David Caruana
2794a59085 - Refinements to Javascript/Freemarker Node conversions
- Removed hard-coded conversions from Web Scripts
- example category search web script aligned with documentation

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5940 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-13 17:23:47 +00:00
Andrew Hind
80939c8187 Fix when more locales present
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5939 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-13 16:47:07 +00:00
Derek Hulley
3a39cf90b6 Fixed version label to handle '0' as an initializer
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5929 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-13 10:40:07 +00:00
Derek Hulley
f1f2d4c035 Updated PdfBoxMetadataExtracter to new mappable format
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5928 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-06-13 02:01:45 +00:00
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