2215 Commits

Author SHA1 Message Date
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
Derek Hulley
686ec6479b Further DAO for audit values
- General-purpose property persisting in searchable schema
 - TODO: More high volume tests for general values


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15556 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-03 17:59:05 +00:00
Derek Hulley
8d90b426dc Further improvements to the EntityLookupCache for NULL values
- Supports entities that map IDs to potentially-null values
 - Fix some bugs


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15555 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-03 17:56:43 +00:00
Andrew Hind
5fbdc2d636 RM: Added support to query association type information on child relationships to a node
- PRIMARYASSOCTYPEQNAME:"test:assocType"
- ASSOCTYPEQNAME:"test:assocType"

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15505 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-31 10:50:12 +00:00
Gavin Cornwell
71b03eb014 Completion of MOB-1036: RM Form Filter. The form filter now retrieves any custom properties defined for the RM type being requested and adds their definition to the form. Updated the 'create' form config to use the 'hide' approach i.e. all fields are displayed except those explicitly hidden in the config, meaning all custom RM properties are displayed.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15488 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-30 12:55:26 +00:00
Kevin Roast
c1b4e119c1 Merged V3.2 to HEAD
15358: Merged V3.1 to V3.2
      15356: Fix for ETHREEOH-2561
   15417: Fix for ETHREEOH-2437 - use 'write' webscript transaction to create Calendar container on first refresh.
   15480: Merged V3.1 to V3.2
      15479: Fix to unreported issue with JS search API.
   15481: Fix to unreported XSS issue in Add As Favourite site functionality.
   15482: Maxresults value now passed into underlying search API in search lib JS for improved performance executing large searches in Share.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15483 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-30 08:46:18 +00:00
Dave Ward
24f5a529c6 Merged V3.2 to HEAD
15473: ETHREEOH-2574: Fixed problem when LDAP sync attempts to delete a user who already exists but with username in a different case (e.g. guest -> Guest)
      - ACLs were getting left behind due to case issues
      - Now 'normalize' the name using getUserIdentifier()


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15474 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-29 16:22:20 +00:00
Andrew Hind
f0226fe5d1 RM: Capabilities and entry checks are now enforced for action execution
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15451 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-28 14:31:40 +00:00
Dave Ward
0d6a176f8d Merged V3.2 to HEAD
15388: ETHREEOH-1872: Better debug logging in authentication components
      - Now each authentication component logs every step of the authentication process (including reason for failure) if you switch on debug logging for that component or the entire org.alfresco.repo.security.authentication package. E.g.
      log4j.logger.org.alfresco.repo.security.authentication.ldap.LDAPAuthenticationComponentImpl=debug
      log4j.logger.org.alfresco.repo.security.authentication.AuthenticationComponentImpl=debug
      log4j.logger.org.alfresco.repo.security.authentication=debug
   15196: Further LDAP sync performance improvements
      - Bunch user and group creations into small transactions (except for differential sync on login)
      - Run a differential sync on startup (so that bulk of users are not brought over on first login)
      - Can be disabled by synchronization.syncOnStartup property
   15135: Node creation / ACL performance improvements
      - When an ACL was set on a leaf node such as a person, redundant 'shared' ACLs were created for child nodes with getInheritedAccessControlList(), even though no child nodes existed.
      - Now setInheritanceForChildren() makes a 'lazy' call to getInheritedAccessControlList(), only when it realises there are child nodes
   15133: Changes to datasource definition for improved performance
      - Enable caching and reuse of prepared statements (by default 40 for each connection)
      - Removed custom-connection-pool-context.xml.sample and instead introduced complete property set into repository.properties
      - Updated v3.2 Wiki docs http://wiki.alfresco.com/wiki/Database_Configuration#Overriding_the_Database_Connection_Properties


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15439 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-28 10:12:16 +00:00
Derek Hulley
fc2e47a119 Support 'alf_prop_string_value'
- Simple ID-string table
 - Non-unique and case-sensitive, but with re-use of entries as far as possible


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15430 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-27 13:55:08 +00:00
Mike Hatfield
e7e001ed69 Merged V3.2 to HEAD
15410: Fix for unreported issue where Sites menu "Add to favourites" wouldn't show site name
   15411: ScriptProcessors use non-caching load method for classpath-based scripts when log4j debug flag set
   15412: ALFCOM-3198 - file size misreported in Document Details

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15413 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-27 08:27:37 +00:00
Derek Hulley
20b602324c PropertyValueDAO and alf_prop_class implementation
- Contains patch that is incomplete i.e. future DAO unit tests won't work for incremental dev upgrades

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15405 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-25 03:23:04 +00:00
Gavin Cornwell
7d43509474 Part 1 of MOB-1036. Added form processor filter to intercept the requests for create forms for the records management container types i.e. series, category & folder. The filter adds a default value to the rma:identifier property so the 'Identifer' field in the create dialogs has a pre-populated default (a GUID for now).
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15386 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-24 14:19:41 +00:00
Gavin Cornwell
5a1e4717e0 Build fix
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15379 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-24 10:56:39 +00:00
Derek Hulley
de52dd981c Entity cache for ID- and value-based lookups backed by DAO
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15370 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-23 16:18:12 +00:00
Derek Hulley
1e81059ce1 Added copywrite header
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15367 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-23 15:37:06 +00:00
Kevin Roast
d3b100d078 Merged V3.2 to HEAD
15328: Fix for build failure RhinoScriptTest - optimized code path called for correct QName assoc type only.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15354 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-23 09:40:31 +00:00
Andrew Hind
dece4d5a4b Fix for MOB-1185: Alfresco FTS does not respect dual tokenisation when ordering (and locale etc etc)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15300 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-21 10:34:08 +00:00
Kevin Roast
1d57ca9d64 Merged V3.2 to HEAD
15297: Merged V3.1 to V3.2
      15093: Merged V2.1-A to V3.1
         12428: Fix for ADB-150
         13461: Fix for ADB-163 - Generic picker now resizes but has minimum width
         13462: Fix for ADB-164 ACT 7788 - Search button label now configurable as component attribute.
         13757: Fix for ADB-155
         14113: Fix for ABD-143
         14115: Fix for ADB-144
         14493: Fixes for ADB-155 (correction) and ADB-161, ADB-184, ADB-185, ADB-186, ADB-188, ADB-189.
      15162: Fix for ETHREEOH-2278 - missed during merge of ABD-143
      15278: Fix for ETHREEOH-2474 - search regression

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15298 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-21 08:25:30 +00:00
Andrew Hind
86d1ec7516 MOB-1179: Added sort support to Alfresco FTS
- Any sort info added to Search parameters will be respected
- the field can be "Score", "prefix:lname" "{uri}lname" and "@{uri}lname"  or "lname" (in the default namespace)
- only exposed field can be used as defined for FTS and the default namespace will be used if ommitted ...

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15291 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-20 20:44:39 +00:00
Andrew Hind
4a2bfaed4e MOB-1170: Implement RM capabilities (first cut)
- rm tests mostly pass

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15284 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-20 14:22:36 +00:00
Kevin Roast
fed100a646 Merged V3.2 to HEAD
15268: Fix to ScriptNode to return null in call to childByNamePath() when no permissions on requested child node.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15269 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-20 10:12:06 +00:00
Kevin Roast
ef91651662 RM Search sorting by up to 3 fields now implemented in UI and data webscript - still to be implemented at the fts-alfresco query level see MOB-1179
RM Search data webscript refactoring to remove obsolete code and adding sorting parameter
RM Saved Searches list now retrieved by the RM Search UI

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15257 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-17 13:13:08 +00:00
Dave Ward
9b6cac5a74 Merged V3.2 to HEAD
15255: ETHREEOH-2484: Default behavior for LDAP sync is now not to abort on a missing UID or GUID, as it seems more robust

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15256 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-17 12:01:16 +00:00
Dave Ward
63d84b8482 Merged V3.2 to HEAD
15240: Small correction to ETHREEOH-2508 fix. Handle 'empty name' case reported in user forums.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15241 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-16 17:44:02 +00:00
Dave Ward
7e95d1e5c8 Merged V3.2 to HEAD
15236: ETHREEOH-2508: Support for posixGroup class in Fedora Directory Server
      - If group member attribute doesn't parse as a DN, assume it contains a user ID directly

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15239 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-16 17:20:55 +00:00
Dave Ward
714481a6ac Merged V3.2 to HEAD
15232: Fix failing unit test
      - Need to test against authentication manager in alfrescoNtlm subsystem

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15235 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-16 15:40:58 +00:00
Andrew Hind
7eb5cc71a4 Support "now" for dates in lucene queries. d📅now d📅"now" d📅[MIN TO NOW] should all be supported
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15226 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-16 11:12:32 +00:00
Dave Ward
edb2c94241 Merged V3.2 to HEAD
15219: ETHREEOH-2328: Alfresco authentication component could use wrong ACEGI AuthenticationManager if not at the start of the authentication chain
      - Moved authentication manager so that it is local to the alfrescoNtlm authentication subsystem


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15225 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-16 11:08:39 +00:00
Derek Hulley
25c94b39a6 Merged V3.2 to HEAD
15220: Fixed ALFCOM-3222: RuleService check for copy doesn't handle permissions
   Removed svn:mergeinfo


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15223 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-16 10:45:35 +00:00
Kevin Roast
c7bcfd00a4 Added query template support to the new JavaScript Search API.
- JavaScript search query now supports adding query templates to the query definition object:

   search
   {
      query: string,
      store: string,
      language: string,
      templates: [],          optional, Array of query language template objects (see below) 
      sort: [],
      page: object
   }
   
   template
   {
      field: string,          mandatory, custom field name for the template
      template: string        mandatory, query template replacement for the template
   }

   see http://wiki.alfresco.com/wiki/Full_Text_Search_Query_Syntax#Templates

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15221 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-16 10:27:09 +00:00
Andrew Hind
65ceb8f926 Build Fix: switch back to "grant" rather than "abstain" when voters have nothing to say .... temp fix
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15191 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-15 09:45:47 +00:00
Andrew Hind
0848671c81 RM capabilities: no op impl for RM_QUERY; First cut of Action security wrappers; Tidy up for new access API and config changes to support it across all public services (except AVM)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15186 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-14 20:05:58 +00:00
Kevin Roast
7f0e03e131 Merged V3.2 to HEAD
15182: Much improved ScriptNode childByNamePath() implementation, ScriptNode API for getParents() and getParentAssocs() and test script for the new APIs.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15184 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-14 16:35:27 +00:00
Mike Hatfield
1adffd1e4e Pop-up with opportunity to edit metadata if Declare as Record action fails.
ScriptNode.parentAssocs() API.
Multi-parent indicator in DocLib (placeholder icon).

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15181 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-14 15:42:38 +00:00
Roy Wetherall
5185c894b7 RM Search Aspect Added
- Key properties are collasped onto a common aspect which is automatically maintained and applied to the record or record folder
  - Added immediately period type



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15177 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-14 13:51:45 +00:00