2250 Commits

Author SHA1 Message Date
Derek Hulley
b57ae75eff Added a registry for DataExtractors and DataGenerators
- Uses recently-added NamedObjectRegistry
 - Audit extractors and generators can now be Sprung using 'registeredName' instead of 'class'
 - Simpler to bring in complex, repo-dependent generators and extractors


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15935 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-26 16:43:40 +00:00
Derek Hulley
de4467b12d Removed 'afterPropertiesSet' and 'InitializingBean' from LuceneIndexBackupComponent
- It should use a bootstrap component as it accesses the NodeService
 - No bug raised; it just needs fixing


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15926 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-26 12:33:10 +00:00
Derek Hulley
ef67ac777a AuditComponent implementation and fallout
- alf_prop_string_value now includes a CRC column and handles Oracle empty string issues
 - All property values are/must now be Serializable for auditing
 - Pushing data into audit is working


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15915 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-26 06:01:52 +00:00
Jan Vonka
1bba527f56 Dictionary/Constraint improvements (required by MOB-1276)
- get constraints (for model)
- add optional title and/or description

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15913 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-25 21:29:27 +00:00
N Smith
9fff828051 Another attempt to stop the uild breaking. This is a quick fix solution, probably need to think about a longer term solution.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15912 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-25 17:43:43 +00:00
Roy Wetherall
46a20ae097 MOB-1253: Can't search on Vital Record Review Period
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15910 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-25 15:45:34 +00:00
Derek Hulley
00e2edb3de Fixed CrcHelper's derivation of the short string version
- The short string should always be lowercase


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15909 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-25 15:28:02 +00:00
N Smith
b684749ba2 Removing JbpmEngineUnitTest to try to stop the build breaking.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15880 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-25 09:35:19 +00:00
Andrew Hind
f8dbb57c5b RM: more capabilities tests and fixes
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15877 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-25 08:20:51 +00:00
Derek Hulley
598ecfb27b Audit validation using XSD and related tests
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15875 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-24 20:10:49 +00:00
Derek Hulley
b8c93f89f3 Minor tweaks to generics on API (more lenient)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15874 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-24 20:08:44 +00:00
N Smith
d4965c994e Changed JbpmEngineUnitTest to extends AbstractTransactionalSpringContextTest. I hope this will result in Spring correctly cleaning up the JbpmFactoryLocator and stop other tests failing.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15872 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-24 15:11:27 +00:00
Derek Hulley
442e1040d6 AuditComponent work for new auditing
- Pulled old AuditDAO methods into new AuditDAO interface
 - Combined AuditDAO implementations
 - First cut of high-level AuditSession creation
 - TODO: AuditSession data generation according to path


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15864 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-21 18:51:35 +00:00
Derek Hulley
00dfb8ee66 Audit session and bootstrap support
- Sessions are created using an application name (shared prop) and a persisted model ID
 - Added a bootstrap bean for audit that unmarshalls the models
 - Added hook points for repo-loading models, but won't implement yet


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15863 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-21 17:50:36 +00:00
N Smith
99395b7ed2 Moved the various test context files from config/test/alfresco/ to source/test-resource/jbpm-test. This was done to try and fix the currently broken build.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15859 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-21 16:38:59 +00:00
Jan Vonka
e34403e636 Fix NPE in ClassFeatureBehaviourBinding
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15854 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-21 12:25:01 +00:00
Mike Hatfield
35b9efe902 Merged V3.2 to HEAD
15421: ETHREEOH-2511 - Subject field encoding issue with IMAP
   15849: Fixes to IMAP UTF-8 handling

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15851 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-21 09:31:13 +00:00
Derek Hulley
dd54579244 New audit config using 3.2 XSD
- Added helper classes for auto-generating code (core project)
 - Audit configuration is loaded using a separate bean and unmarshalled using JAXB
 - First cut of data extractors and generators that will be required


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15842 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-20 16:06:31 +00:00
Dave Ward
a96352a781 Merged V3.2 to HEAD
15837: ETHREEOH-2701: Do not allow partial initialization of file server configuration bean
      - Even when all of the file servers are disabled, this bean must be queryable by the rest of the system
      - Therefore if it fails to initialize, the server should fail to start
      - Fatal exceptions now propagated by AbstractServerConfigurationBean.init()


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15839 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-20 14:58:10 +00:00
Derek Hulley
33cb2a4d75 Better indexing for string properties to support path-based lookups
- Normal prefix-index has been shortened to 32 chars (from 64)
 - Added a fully indexed 'string_end' column of 16 characters
 - iBatis queries are optimized to pull short strings from the index
 - Long paths and NodeRefs are well-indexed using this approach


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15833 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-20 13:03:29 +00:00
N Smith
f1e5670836 Still trying to get JBPMEngineUnitTest working on the build server.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15830 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-20 11:15:51 +00:00
Dave Ward
e2dff77bc6 Merged V3.2 to HEAD
15828: ETHREEOH-2601: Users dialog won't delete users who have no authentication information
      - Moved the AuthenticationService.deleteAuthentication() call inside PersonService.deletePerson() and protected with try - catch so that if there is no authentication information (for an upgraded/moved user) the person can still be deleted
      - Removed a bunch of redundant deleteAuthentication() calls


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15829 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-20 11:01:19 +00:00
Dave Ward
9974e627e8 Merged V3.2 to HEAD
15646: Merged V3.1 to V3.2
      15454: Fixed org.alfresco.repo.tenant.MultiTDemoTest that caused build failed.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15823 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-19 16:56:35 +00:00
N Smith
fb444fd68f Changed test-context.xml so it no longer directly references the dev.properties file but instead overrides the repository-properties bean defined in dev-context.xml. This was done to fix an issue with the build not working.
I also added more unit tests to JBPMEngineUnitTest.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15808 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-19 10:16:37 +00:00
Derek Hulley
528df9ef5f Audit DAO
- Audit config (alf_audit_cfg) now uses CRC check and persists via ContentService and alf_content_data
 - Reverted 3.3 references back to 3.2


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15805 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-19 02:30:42 +00:00
Derek Hulley
cd850a3d28 Javadoc: remove version 3.3 reference
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15804 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-19 02:16:14 +00:00
Gavin Cornwell
a07a545df9 MOB-1209: Add ability to pass optional context when generating a form. Also added a sample template to demonstrate a custom set layout.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15802 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-18 22:00:23 +00:00
Dave Ward
b9754e8d0c Merged V3.2 to HEAD
15602: Merged V3.1 to V3.2
      13861: Web Script 'Index' pages now require admin access
      13868: Fix org.alfresco.error.AlfrescoRuntimeException: Read-Write transaction started within read-only transaction
      13873: MT - fix ETHREEOH-1735 (web scripts re-directed to a different tenant's noderef - HTTP 500)
      13905: MT - fix ETHREEOH-1735 (follow-on ... fix the !)
   15798: ETHREEOH-2686: Resolved problem with site dashboards disappearing after NTLM login / session expiry
      - RemoteStore.hasDocument() throws IOException rather than returning false if a non HTTP 200 response is received from the remoteavm web ScriptContent
      - This prevents us from incorrectly caching the non-existence of certain pages
      - remoteavm webscript authentication changed back to "none" so that the share NTLMAuthenticationFilter can pre-fetch pages to determine their required authentication level
      - Multi-tenancy implications resolved by making "guest" the minimum required authentication for scripts in the Repository Webscript Container when MT is enabled


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15800 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-18 17:45:05 +00:00
Kevin Roast
58c074e716 Merged V3.2 to HEAD
15506: Fix for ALFCOM-3274 - removed double-encoding of webview dashlet title when set from Configure dialog.
   15543: Fixes for ETHREEOH-2596 and ETHREEOH-2392. Any Admin user now forced to enter old password when editing themselves in the Share User Admin console.
   15620:Merged V3.1 to V3.2
      15595: Merged DEV-TEMPORARY to V3.1
         15446: Appropriate JSP page was modified to align radio buttons.
      15597: Fix for ETHREEOH-2575 - all PNG files now appear in IE6, note that PNG transparency is not supported in IE6.
      15598: Merged DEV-TEMPORARY to V3.1
         15593: ETHREEOH-2445: Localization Issues [Email Templates and RSS Templates ACPs I18N]
      15599: Merged DEV-TEMPORARY to V3.1
         15491: ETHREEOH-2460: Localization Issues - Email template
      15601: *RECORD ONLY* Merged V3.2 to V3.1
         15504: ETHREEOH-2447: My Content page localisation failing. [backport from V3.2]
      15613: *RECORD ONLY* Removed reference to portlets message bundle - as per CHK-8518
   15784: Minor performance improvements to data dictionary classes relating to Permission evaluations.
   15791: Merged V3.1 to V3.2
      15693: Merged DEV-TEMPORARY to V3.1
         15648: ETHREEOH-2549: Templates in 3.1 will need localising
      15743: ETHREEOH-2586: JP:Layout error, the word "....." (cancel) should be in the same line
      15745: ETHREEOH-2493 - HTML and XML encoding fixes to Alfresco OpenSearch keyword and person search HTML/ATOM/RSS feed templates.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15793 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-18 15:09:08 +00:00
Derek Hulley
f00d441cae Nested collection (maps, sets, lists) property retrieval
- Single-shot query retrieves ordered view
 - MLText, HashMap and ArrayList currently supported


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15783 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-18 10:26:43 +00:00
Derek Hulley
ec7a10b7f8 Added cache clear method
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15778 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-18 08:58:53 +00:00
Gavin Cornwell
ba7d22e65d Build fix
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15762 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-17 09:12:34 +00:00
Derek Hulley
5f8bfcae7a Support for searchable, arbitrarily-nested properties
- TODO: ID-based caching for entities that can't be found by value (e.g. maps, serializable)
 - TODO: Serializable table
 - TODO: Dedicated tests for node properties (QName-Serializable maps with nested MLText)


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15753 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-14 14:53:12 +00:00
N Smith
f3f4b2b043 Fixed the jbpm.cfg.xml files to correctly use jbpm_engine rather than test_jbpm_engine.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15748 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-14 11:49:04 +00:00
N Smith
1dfbefe4d5 Nick S: Created a JBPMEngineUnitTest which uses much less of the Spring context and is much faster to run.
Also created a OneToManyMap and a OneToManyBiMap to help mock up the NamespaceService.

*** IMPORTANT!!! ***
The test requires a new database schema. The schema has the same name as the original schema but has _test after it, i.e. ${db.name}_test


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15746 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-14 10:58:14 +00:00
Mark Rogers
abafb8f4e5 Added a policy to fire the metadata extractor on ASPECT_IMAP_CONTENT
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15739 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-13 17:21:20 +00:00
Gavin Cornwell
cedcc20a4c MOB-1208 & MOB-1214: Form customisation improvements, generated form UI model now creates a 'map' of fields so that they can be directly accessed in custom templates (this provides the groundwork required to fix the RM record metadata screen). Default controls mapping have dropped the "d:" prefix as this is a repo detail and should be generic.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15723 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-13 09:58:02 +00:00
Andrew Hind
93876b8079 Fix for MOB-1221: Sorting on an indexed field that has not yet been applied to any node causes an exception in the SearchService
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15702 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-12 14:27:38 +00:00
Gavin Cornwell
5162e3e2e5 - Changed generation of unique identifier, no longer appears as a field on the create screens, instead gets generated after the node is persisted, the identifier is then generated using the same algorithm as used for records i.e. year-<pad0><node-dbid>. The idenifier still appears on the edit screen so can be changed if desired.
- Moved the StreamArchive webscript implementation to remote API project so it can be re-used by other non RM webscripts
- Added skeleton for transfer REST API

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15687 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-11 22:12:48 +00:00
Derek Hulley
fe4d547316 Further date property support (yyyy-mm-dd)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15666 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-11 04:56:29 +00:00
Derek Hulley
aeef3a5af8 Property DAO support for date (yyyy-mm-dd)
- Avoided nasty timezone issues by using Epoch millisecond time


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15665 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-10 19:08:23 +00:00
Derek Hulley
91d7db1126 EntityLookupCache uses separate cache-region wrappers for ID and value-based keys
- Avoids issues with Long-Long caching


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15663 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-10 19:03:25 +00:00
Derek Hulley
acaaa39e23 Added the default mappings to the Javadoc for RFC822
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15659 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-10 12:46:33 +00:00
Dave Ward
1e5592c51b Merged V3.2 to HEAD
15657: ETHREEOH-2638: Admin and guest users duplicated after upgrade to v3.2. Cannot delete duplicates due to missing authentication.
      - Split out alfrescoAuthorityStoreDefaultMembers.xml, only loaded on initial bootstrap so that admin and guest users not duplicated
      - Modified org.alfresco.repo.jscript.People and org.alfresco.web.bean.users.UsersDialog so that person deletion doesn't fail if internal authentication information doesn't exist


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15658 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-10 11:03:36 +00:00
Derek Hulley
2401bfc93e More property DAO changes
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15652 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-10 09:33:20 +00:00
Derek Hulley
1a04cecec8 Numeric conversions to and from Boolean
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15651 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-10 09:29:16 +00:00
Derek Hulley
720defedb4 Further EntityLookupCache enhancements and fixes
- Support for update and delete operations
 - Some cache-only operations
 - TODO: expose cache clear


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15650 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-10 09:27:06 +00:00
Dave Ward
8fa726f7df Merged V3.2 to HEAD
15636: ETHREEOH-2626: LDAP sync will no longer delete and recreate colliding users and groups in zones that aren't even in the authentication chain.
      - Instead such users and groups will be 're-zoned' to the first zone where they were found
      - Avoids losing site memberships, etc. on upgrade or change of authentication chain
      - Will continue to recreate users and groups from lower priority zones in the authentication chain
      - Updated unit tests appropriately


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15637 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-06 18:43:41 +00:00
Gavin Cornwell
c728352e1e More work on MOB-1188, RM custom metadata is now viewable and editable on RM container nodes created before the custom properties were defined.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15618 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-05 21:43:23 +00:00
Gavin Cornwell
b6c306dbf1 Another step towards completion of MOB-1188. Metadata of RM container types is now grouped when viewing and editing. All built in RM fields are grouped together (albeit in a semi-random order), all RM custom fields are grouped together at the bottom and all other 'general' metadata will be grouped together at the top.
NOTE: Custom RM metadata can still be missing if you're viewing a node created before the custom property was defined.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15609 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-05 12:14:44 +00:00