2335 Commits

Author SHA1 Message Date
Derek Hulley
95b648f165 ContentReader and ContentWriter conversions to String now use toString()
- Previously, the ContentReader to String conversion was reading the binary data


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16492 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-24 14:37:54 +00:00
Derek Hulley
58f148650a Minor in-line comments
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16488 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-24 14:26:29 +00:00
Derek Hulley
6e0979ea2c Added invokeBeforeDeleteNode calls for all nodes down a deletion stack
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16480 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-24 09:57:45 +00:00
Derek Hulley
0a118c62aa Mimetype is only defaulted if the content URL is not empty too
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16478 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-24 09:14:08 +00:00
Andrew Hind
8e115abc86 RM: Fix for MOB-1564: Unable to file via IMAP into a record folder that the user has file permissions on
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16471 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-23 21:45:30 +00:00
Derek Hulley
f0b95093e6 Failure to read an audit entry logs a warning and skips the entry
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16467 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-23 17:18:08 +00:00
Derek Hulley
7e0d38e62a ContentData will now force it to 'application/octet-stream'
- The Share UI sets the mimetype to empty string ('') if the mimetype is unknown


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16466 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-23 17:13:06 +00:00
Mark Rogers
0a36194042 MOB-1512 - Date field processing for metadata extraction.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16458 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-23 12:48:41 +00:00
Derek Hulley
a48ac3deca Added method to delete multiple child contexts for unique property contexts
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16441 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-22 15:17:45 +00:00
Kevin Roast
1935a73684 Fix for MOB-1558 - ThumbnailService no longer makes explicit permission checks based on DM permissions - RM users can now see content previews and document thumbnails correctly if they have ReadRecords access or similar.
ThumbnailServiceImplTest executed with no errors.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16440 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-22 14:32:54 +00:00
Derek Hulley
f0d6c44156 Added component to manage unique property triplets
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16434 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-22 12:51:40 +00:00
Derek Hulley
3f18dafd2b Added conversion support for StoreRef-String conversion
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16433 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-22 12:49:36 +00:00
Derek Hulley
14515875c7 Added table and DAO: alf_prop_unique_ctx
- Ensure uniqueness across any three (incl. null) Serializable values
 - Required to support RM rma:identifier contextual uniqueness

DB Update for MySQL:

drop table if exists alf_prop_unique_ctx;
CREATE TABLE alf_prop_unique_ctx
(
   id BIGINT NOT NULL AUTO_INCREMENT,
   version SMALLINT NOT NULL,
   value1_prop_id BIGINT NOT NULL,
   value2_prop_id BIGINT NOT NULL,
   value3_prop_id BIGINT NOT NULL,
   UNIQUE INDEX idx_alf_prop_unique_ctx (value1_prop_id, value2_prop_id, value3_prop_id),
   CONSTRAINT fk_alf_prop_unique_ctx_1 FOREIGN KEY (value1_prop_id) REFERENCES alf_prop_value (id) ON DELETE CASCADE,
   CONSTRAINT fk_alf_prop_unique_ctx_2 FOREIGN KEY (value2_prop_id) REFERENCES alf_prop_value (id) ON DELETE CASCADE,
   CONSTRAINT fk_alf_prop_unique_ctx_3 FOREIGN KEY (value3_prop_id) REFERENCES alf_prop_value (id) ON DELETE CASCADE,
   PRIMARY KEY (id)
);

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16417 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-21 22:20:29 +00:00
Andrew Hind
53fddcb5f7 RM: Fix ScriptNode to check public methods can be executed using PublicServiceAccessService (and not be based on an assumed permission check)
- rm doc details are now displayed correctly when users do not have DM read

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16415 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-21 20:19:29 +00:00
Derek Hulley
17ad855edc RM Audit: More RM data extraction during audit (node type, identifier)
- Audit queries for a node context work (by accident: needs proper fix)
 - TODO: Query filter for node actions name
 - TODO: Query filter for node type

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16405 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-21 11:46:52 +00:00
Roy Wetherall
7005d27c77 RM: Tempory fix to surpress Access Denied exception when user with ReadRecords view file plan
- This fix needs review but this change allows testing to continue further



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16391 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-20 21:21:55 +00:00
Derek Hulley
ed3d9014f0 Merged V3.1 to HEAD
15963: Fix ETHREEOH-1962: Hibernate flush ordering incorrect for alf_qname
   - This merge will come from V3.2 15972 as well, but should not cause issues


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16389 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-20 19:10:08 +00:00
Derek Hulley
db8181d496 Missed check in
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16381 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-19 14:17:44 +00:00
Dave Ward
c3bf64c111 Fix Enterprise build - allow system to boot up in read only mode again
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16374 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-18 16:28:21 +00:00
Derek Hulley
d0d6d61373 Audit paths and keys may now also contain '_' (underscore)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16366 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-18 11:53:12 +00:00
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