2279 Commits

Author SHA1 Message Date
Mark Rogers
804e9bf091 Bug fixes for RM Constraint Lists
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16072 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-03 15:15:23 +00:00
Dave Ward
879796355c Merged V3.2 to HEAD
16062: ETHREEOH-2792: Support login via external SSO systems (such as CAS) in Alfresco Share
      - In Alfresco, new "external" authentication subsystem maps user identity from HttpServletRequest.getRemoteUser() or configured header
      - In Share, the UserFactory also recognizes HttpServletRequest.getRemoteUser() - no special filters required
      - User ID propagated to Alfresco through X-Alfresco-Remote-User HTTP header
      - This can be done securely via the use of an SSL client certificate that identifies the Share application to Alfresco as a special 'proxy' user
      - New <keystore> section added to webscript-framework-config that allows specification of the keystore holding the client certificate and trusted CAs
      - Support for SSL authentication and propagation of Cookies through redirects added to RemoteClient so that initial redirects through sign on pages are supported
      - TODO: Wiki


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16065 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-03 11:16:02 +00:00
Derek Hulley
2cdc1777f9 Audit changes and fixes
- Removed notion of audit session
 - Removed 'scope' attribute for DataGenerator elements
 - Removed alf_audit_session table and replaced with alf_audit_app (see script)
 - DataGenerators are working properly


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16053 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-02 14:45:23 +00:00
Derek Hulley
381d7730c5 Fixed EntityLookupCache: ID-based caching was being missed if the value-key was null
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16052 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-02 14:37:09 +00:00
Andrew Hind
3351a38b6c Merged V3.2 to HEAD
16006: Merged V3.1 to V3.2 
        16003: Fix for ETHREEOH-2736: FTS Cleaning process removes valid search terms 


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16046 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-02 11:27:55 +00:00
N Smith
4f1cf347a1 Creating a TaskFormProcessor to allow properties on tasks to be edited through Forms.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16038 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-02 10:04:06 +00:00
Jan Vonka
bd9fe31142 Merged V3.2 to HEAD
16029: ALFCOM-3293 - MT: group management broken with domain mismatch error (fallout from CHK-7357)


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16036 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-02 09:25:50 +00:00
N Smith
c75a5343f9 Fixing JBPMEngineUnitTest
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16035 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-02 09:22:14 +00:00
N Smith
f110351835 Adding JBPMEngineUnitTest back in.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16034 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-02 09:10:59 +00:00
Dave Ward
415c90c971 MOB-1073: Fix build. Use dictionaryService.getAspect() rather than dictionaryService.getType() to look up aspects
- Also improved Boolean logic so that it's possible to switch on archiving via an aspect (as suggested by Derek)
- M2ClassDefinition.getArchive() now returns true, false or null
- false takes precedence and is the ultimate default
- fixed JIBX classpath


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16022 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-01 16:10:49 +00:00
N Smith
a949dcad97 Fixing compilation issues. Made FieldConstraint a static inner class.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16020 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-01 15:42:05 +00:00
N Smith
9aef9620ad Adding generic params to FilterFormProcessor and associated classes. Now the type of object being processed by the form processor is statically types at compile time.
The Filter interface uses the same generic params, ensuring that a filter can only be assigned to a FormProcessor if it handles the correct item type.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16016 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-01 14:42:05 +00:00
Derek Hulley
1793a46d7c Minor Audit test changes
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16015 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-01 14:37:26 +00:00
Derek Hulley
09f8a1b501 ApplicationContextHelper allows getting of contexts using different configurations
- If the configuration changes, the existing context will be shutdown
 - Can re-use ApplicationContextHelper for unit tests even if different contexts are needed


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16014 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-01 14:29:46 +00:00
Andrew Hind
fee50fdb9f RM Capabilities - more tests and fixes
- person service impl handles emtpy and null uids

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16011 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-01 14:09:57 +00:00
Andrew Hind
63970d1f10 RM Capabilities: more tests and fixes. Declare makes records ownerless.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16000 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-01 09:37:09 +00:00
Dave Ward
f820643c7d Build fix
- Fix handling of legacy dev-context.xml style property configuration
- LegacyConfigPostProcessor has to be given the maximum precendence so that it runs before PropertyPlaceHolderConfigurer
- Also has to fix up the live repository-properties bean that would already have been constructed before post-processing
- Include log4.properties in unit test classpath so we can tell what the heck is going on!


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15994 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-29 17:09:02 +00:00
Derek Hulley
200bf8d3a0 Added iBatis support for java.io.Serializable
- 'alf_prop_serializable_value' is working


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15993 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-29 00:47:25 +00:00
Dave Ward
7fbccecd71 MOB-1073: RM Ghosted Records
- The <archive> setting on model class definitions (controlling archival on node deletion) is now paid attention to for aspects as well as types
- Archive is on by default for aspects and off by default for types
- If a node's type or any of its aspects has archiving off then it will be purged rather than archived
- Only the cm:content and cm:folder types currently have archiving switched on
- RM subtypes of cm:content and cm:folder plus rm:record aspect switch off archiving
- A module can now include global property overrides in classpath*:alfresco/module/*/alfresco-global.properties
- The RM module currently sets two global properties:
   system.content.eagerOrphanCleanup=true # Switches on synchronous content purging
   rm.ghosting.enabled=true               # Enables the new RM ghosting functionality
- When ghosting is switched on, for nodes with the rma:record aspect the DestroyAction synchronously removes all content properties and applies the rma:ghosted aspect
- TODO: Any properties required for rma:ghosted?


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15990 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-28 15:26:15 +00:00
Jan Vonka
d5a1794c18 Dictionary M2 support to add/remove property constraint ref
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15988 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-28 15:02:57 +00:00
Jan Vonka
d26d4cbc5a Build/test update
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15982 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-28 10:49:22 +00:00
Derek Hulley
f0cd5ef0d8 Audit config, XSD and write-persistence tests
- Audit paths can now use mixed case (after alf_prop_string_value enhancements)
 - Pluggable data conversion when pushing values into persistence
 - Relaxed XSD to allow mixed-case key values
 - Regex checking of paths and names when building strings


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15976 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-27 16:16:05 +00:00
Jan Vonka
19d232f649 Build/test fix (File server configuration error -> Error creating filesystem AVM)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15960 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-27 10:52:22 +00:00
Derek Hulley
51a2ef5df3 alf_prop tables: Improvements to string-related queries and fix duplicate handling
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15946 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-27 05:24:09 +00:00
Derek Hulley
f16a0f2a74 AVMDiskDriver propagates the causal exception on filesystem startup failure
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15944 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-26 21:44:06 +00:00
Andrew Hind
ffbd522cca RM Capabilities: More tests and fixes (22 to go). Added RM access to the ownable service. RM roo.es can be assigned in the UI (with no localisation for the role names)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15942 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-26 20:07:23 +00:00
Dave Ward
e184c83df5 Merged V3.2 to HEAD
15940: Merged V3.1 to V3.2 (record only)
      15939: Merged V3.2 to V3.1
         15936: ETHREEOH-2498: Fixed problems with auto-creation of users in CIFS Authenticators (including Kerberos)
   15936: ETHREEOH-2498: Fixed problems with auto-creation of users in CIFS Authenticators (including Kerberos)
      - Converted to using RetryingTransactionHelper and avoid problems with nested transactionService
      - Will trigger LDAP sync if enabled
      - Also switched on disableNTLM in kerberos-authentication-context.xml to force Kerberos CIFS authentication in Kerberos subsystem


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15941 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-26 19:15:18 +00:00
Mark Rogers
49cb56a412 RM custom imap metadata extracter config functionality
- rest bindings working
 - should be sufficient functionaility to make progress on UI development
 - custom properties are not yet persisted anywhere

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15938 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-26 17:39:58 +00:00
Jan Vonka
6240a9b739 Dictionary/Constraint improvements (required by MOB-1276)
- fix concurrent mod

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15937 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-26 17:01:04 +00:00
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