2315 Commits

Author SHA1 Message Date
Dave Ward
04c877b808 Merged V3.2 to HEAD
16187: Merged V3.1 to V3.2
      16185: AbstractLuceneIndexerAndSearcherFactory.getTransactionId() must return null when there is no transaction
   16171: Merged V3.1 to V3.2
      16168: ETHREEOH-2797: Force patch.db-V2.2-Person to apply one more time to fix up corrupt users created by LDAP Import
         - Problem due to ETHREEOH-2023, fixed in 3.1.1
         - Also corrects ldap.synchronisation.defaultHomeFolderProvider to be userHomesHomeFolderProvider
         - Also requires fix to ETHREEOH-2475 to fix up duplicate users
      16167: ETHREEOH-2475: Fixed nested transaction handling in AbstractLuceneIndexerAndSearcherFactory to allow duplicate user processing in PersonServiceImpl to actually work


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16363 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-18 10:52:57 +00:00
Derek Hulley
818791d88a Audit query extension: Search for audited data of any type
- Pulled out some of the query joins in favour of more cache hits


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16359 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-18 03:16:40 +00:00
Derek Hulley
0fe6dee8bc Added static QNames to the NodeServicePolicy interfaces for simpler callback setup
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16357 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-18 00:20:17 +00:00
Derek Hulley
9fc752d9a7 Added utility method to produce a delta between node property maps
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16356 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-18 00:16:32 +00:00
Gavin Cornwell
b0f551db34 Added some protection to Period handling in the data dictionary when invalid period expressions are passed i.e. empty strings or non-numeric strings
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16355 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-17 22:04:22 +00:00
Jan Vonka
45d25dcd7e iBatis boolean parameterization in AVM select queries (follow-on for r16347)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16353 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-17 17:14:00 +00:00
Derek Hulley
c0d49f6284 Added source-target mappings for Audit data
- Audit entry creation API no longer requires an application name
 - Inbound data is remapped according to the mappings in the audit XML files


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16327 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-16 19:02:40 +00:00
Derek Hulley
a2970e7c49 Added method to check that a read-only or read-write txn is present
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16326 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-16 18:59:25 +00:00
Derek Hulley
95bfde2d56 Changed 'version' column from TINYINT to SMALLINT
- Tables are 'alf_prop_root' and 'alf_audit_app'
 - Added property test to update past the SMALLINT rollover to test reversion to 0
 - To modify your tables (not absolutely necessary)
   alter table alf_audit_app modify version SMALLINT NOT NULL;
   alter table alf_prop_root modify version SMALLINT NOT NULL;


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16320 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-16 16:55:37 +00:00
Kevin Roast
eab4762993 JavaScript API enhancements to support retrieval of local and inherited permissions and optional additional meta-data describing the permissions.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16286 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-15 20:26:03 +00:00
Derek Hulley
29733d3755 Fixed isAuditEnabled through stack
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16279 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-15 14:41:43 +00:00
Derek Hulley
cd7aff5703 Audit log clearing and related tests
- RM start(), stop() and clear() implemented


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16276 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-15 13:13:41 +00:00
Derek Hulley
2c33287ea3 Added 'enableAuditPath' and 'disableAuditPath'
- Various tests to see that the recorded data is changed
 - disabledPaths rely entirely on the property caching for fast retrieval


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16271 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-15 10:06:31 +00:00
Derek Hulley
b0aac65e9a Updates of root (unshared) properties are done via EntityLookupCache
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16269 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-15 10:03:18 +00:00
Derek Hulley
9d6d25b60a Added missed opportunity to cache a value during updateValue()
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16268 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-15 10:02:30 +00:00
Roy Wetherall
aac27e65e5 RM: MOB-1340 "No period provider for period type" on Folder creation
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16246 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-14 08:31:31 +00:00
Derek Hulley
29b94cf0d7 Audit and Prop table enhancements
- alf_prop_xxx tables
   - Added alf_prop_root table
   - alf_prop_value_xxx tables enforce uniqueness
   - Better splitting up of Collections and Maps (attempt to use exact storage type)
   - Moved some indexes around to reduce size but maintain index data lookups
   - Allow updates and deletes of properties via alf_prop_root (entry-point table)
 - Audit Application
   - Unique by name
   - Add 'disabled paths' to control audit behaviour (not wired into services)
   - Added concurrency checks for updates to the Audit Application (model change, etc)


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16217 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-11 13:59:45 +00:00
Derek Hulley
de1e940d73 Added String-Class conversions
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16216 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-11 13:52:33 +00:00
Neil McErlean
eb845ce02e custompropdefinitions.get now returns constraint shortname.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16215 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-11 13:33:25 +00:00
Gavin Cornwell
d28ac37351 - MOB-1259: Audit REST API: Added skeleton implementation for 'file audit log as record' action to allow Lawrence to implement the UI and have a service to call. URL is /api/rma/admin/rmauditlog, a JSON structure needs to be POSTed representing the destination for the record and the parameters for the audit log.
- All audit log URLs now need admin authentication
- Added 'event' parameter to audit trail, allows audit log to be restricted by event (not wired up yet though)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16165 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-09 10:36:17 +00:00
Jan Vonka
5c063f50f2 RM - custom/dynamic model support for incremental updates to title/description
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16152 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-08 17:15:47 +00:00
Jan Vonka
580a29ff4d AVM DAO refactor - test fix (x2)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16148 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-08 15:13:00 +00:00
Derek Hulley
d2be2015e4 Wired up RM node-based audit results
- Fixed up some file formatting
 - Added List-based audit results for RM


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16146 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-08 15:08:02 +00:00
Jan Vonka
efb73c6e4c AVM DAO refactor - fix child entry name pattern match (+ missing test), also orphan reaper max limit
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16145 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-08 12:58:46 +00:00
Jan Vonka
efda84932f AVM DAO refactor - handle null bool
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16143 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-08 12:04:33 +00:00
Jan Vonka
c2cca0311b AVM DAO refactor
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16138 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-08 09:55:22 +00:00
Derek Hulley
bae58d6ee7 Added key-value audit query
- Currently supports lookups on string values (RM use-case)


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16133 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-07 17:38:27 +00:00
Derek Hulley
fadc101ce4 Full resultset audit queries
- Use RollupRowHandler and nested ResultMap
 - Audit Map values are pulled back with entries


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16130 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-07 15:48:00 +00:00
Gary Spencer
a6eb590cc9 Merge 3.2 to HEAD:
15128: Merge 3.1 to 3.2:
   		15114: Added support for impersonation level sharing mode check, to fix Office2007 file open issue. ETHREEOH-2320.
	15130: Record-only
	15340: Merge 3.1 to 3.2:
   		14359: Fixed native call being used when <disableNative/> was configured. ETHREEOH-2105. (Record-only)
   		14484: Merged HEAD to v3.1: (Record-only)
       	13943 Added FTP IPv6 configuration, via the <IPv6 state="enabled|disabled"/> tag. Added the ftp.ipv6 property. MOB-714.
   		14523: Add trailing 'A' to CIFS server name, removed by recent checkin. (Record-only)
   		14561: Change the file server config bean to use the 'org.alfresco.fileserver' logging level.
   		14916: Fixes for local domain lookup when WINS is configured. ETHREEOH-2263.
   		14922: Merge HEAD to V3.1
       	14626: Fixes for the client side Windows desktop action application. part of ETHREEOH-401
   		15155: Fixes to client side desktop action exe handling of paths that are not mapped to the root of the Alfresco share. ETHREEOH-1613
	15341: Record-only
	15549: Check for null ClientInfo in the setCurrentUser() method and clear the auth context. Part of ETHREEOH-2538.
	15550: Fixed performance issue in the continue search code, add warn level output of folder search timing.
	15564: Merge 3.1 to 3.2:
   		14964: Port fix for convert content I/O exceptions to file server exceptions during write and truncate (part 2). ETWOTWO-1241
   		15233: Ignore nodes that no longer exist during the second stage of a file server folder search.
   		15234: Fixed incorrect length check when buffering MSOffice document writes.
	15565: Record-only
	15568: Fix for cut/paste file between folders on CIFS. ETHREEOH-2323 + ENH-515.
	15569: Record-only
	15644: Changed filesystem debug setting so it works with old and new config styles.
	15786: Record-only
	15787: Port of repo filesystem MS Office document locking fix. ETHREEOH-2579


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16122 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-07 13:04:53 +00:00
Dave Ward
a4445319d8 Merged V3.2 to HEAD
16107: Build fix
      - Now that org.alfresco.repo.template.People is using public AuthenticationService, only admins have rights to check account enablement

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16108 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-05 11:22:10 +00:00
Derek Hulley
4dc6006f1c Fixed usage of iBatis namespaces
- Turned namespacing on
 - Collapsed SqlMapConfig.xml files with the exception of that for activities, which uses a different datasource bean
 - Tried to use it and discovered a "feature": If any ID has a '.' in it, then it is assumed to be namespaced already ...
 - Fixed up all IDs for iBatis objects; replaced '.' with '_' except in our namespaces
 - Don't panic!  It's a find/replace job of ID strings.  Errors will be hard and fast, if there are any.  All DAO and activities tests run.
 - The AVM refactor will get some conflicts in the ibatis-context.xml
    - Either follow the same pattern and fix up the IDs, or
    - Keep a separate bean until some later time.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16106 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-05 10:59:01 +00:00
Dave Ward
9fc993a852 Merged V3.2 to HEAD
16092: ETHREEOH-2800: org.alfresco.repo.jscript.People should use AuthenticationService rather than the MutableAuthenticationDAO or otherwise it won't work in an authentication chain.
   16094: ETHREEOH-2800: The same for org.alfresco.repo.template.People


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16095 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-04 12:32:18 +00:00
Derek Hulley
034027961d Audit queries
- Any combination of application (e.g. RM, repo, etc), user and time
 - TODO: Extend queries to support finding audit entries by arbitrary audited values
 - TODO: Full map retrieval in single query


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16086 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-04 00:34:28 +00:00
David Caruana
c55d203bc6 Option to export content as node folder hierarchy inside ACP
- enable with following setters on ACPExportPackageHandler
        ACPExportPackageHandler acpHandler = new ACPExportPackageHandler(...);
        acpHandler.setNodeService(nodeService);
        acpHandler.setExportAsFolders(true);

- results in ACP contents as follows:
   /export.xml
   /content
        /a
           /b.txt
           /b
             /c.pdf

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16079 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-03 18:42:19 +00:00
David Caruana
b5b09541ef Option to export content as node folder hierarchy inside ACP
- enable with following setters on ACPExportPackageHandler
        ACPExportPackageHandler acpHandler = new ACPExportPackageHandler(...);
        acpHandler.setNodeService(nodeService);
        acpHandler.setExportAsFolders(true);

- results in ACP contents as follows:
   /export.xml
   /content
        /a
           /b.txt
           /b
             /c.pdf

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16078 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-03 18:41:17 +00:00
David Caruana
786bca9a67 Support for excluding aspects and child associations in export ACP.
- Added to ExportCrawlerParameters
  - public void setExcludeAspects(QName[] excludeAspects)
  - public void setExcludeChildAssocs(QName[] excludeChildAssocs)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16073 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-03 16:03:55 +00:00
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