Commit Graph

692 Commits

Author SHA1 Message Date
Kevin Roast
126fc1ebbb First parts of Create User functionality in new Admin Console.
- Can create new users - no form validation etc. yet.
 - User password is set.
ChangePassword webscript improved to support admin user setting a user password without knowing the old one.
JavaScript People API fixes.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14097 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-28 08:57:04 +00:00
Kevin Roast
1a77817c0e Script and Template processor extension object support for Presentation tier.
- Additional root scope java objects can now be configured in for use by plain web-tier WebScripts, SURF components and SURF templates.
 - Initial config files provided for SURF web-framework - script/template services context
 - Also the first steps towards pluggable script/template processing engines for WebScripts

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14076 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-23 15:13:09 +00:00
Gavin Cornwell
9a6392b4c2 Merged 3.1 to HEAD
13841: Build fix
   13988: Applied patch for ETHREEOH-1620 (webdav issues with WebSphere)
   13993: Partial (UI portion) fix for ETHREEOH-1500: Remove visibility of Workflow items
   13995: Fix for ETHREEOH-1883: Start advanced workflow wizard lists the WCM 'Direct Submit to Staging' workflow as one of the selectable workflows
   14061: Fix for ETHREEOH-1891: Form repeat element not working in 3.1

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14070 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-23 14:07:20 +00:00
Mike Hatfield
52935e0ecf Second part of ETHREEOH-1936. Execute extract-metadata action in new transaction.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14067 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-23 13:24:32 +00:00
Kevin Roast
388a16f9ca Merged V3.1 to HEAD
14031: Fix for ETHREEOH-1910
   14044: Fix for ETHREEOH-1805 and ETHREEOH-1907 - SURF now uses POST for Alfresco Login and does not toString() CredentailVault impls

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14054 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-22 13:00:36 +00:00
Dave Ward
01f5a926bf Refactor subsystems for authentication chaining
- An authentication chain of size 1 configured by default
- DefaultChildApplicationContextManager supports dynamic configuration of the authentication chain via Spring or JMX. Any number of instances of any type allowed in chain.
- SubsystemChainingAuthenticationComponent and SubsystemChainingAuthenticationService iterate across configured chain for Authentication
- SSO (NTLM / Kerberos) and CIFS authentication independently activatable for any component in chain (where supported).
- SubsystemChainingProxyFactory used to proxy directly to first active CIFS authenticator or SSO filter in the chain
- CIFS server knows not to bother starting if authentication chain doesn't have an active CIFS authenticator (e.g. LDAP only)
- Rationalization of subsystem configuration folder structure and JMX object naming
- Classpath based extension mechanism for community edition - alfresco/extension/subsystems/<category>/<typeName>/<id>/*.properties in classpath can be used to configure specific subsystem instances
- Simplification of JMX infrastructure. No longer Spring bean definition based, thus allowing dynamic creation/registration of new instances at runtime.
- New AuthenticationChainTest unit test

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14030 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-21 13:29:08 +00:00
Mark Rogers
814a730155 Fix failing test case.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14027 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-21 10:49:56 +00:00
Mike Hatfield
9a5eb7b4ae Fix to comment service
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14023 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-20 23:03:14 +00:00
Gavin Cornwell
6a99a86d59 FormService improvements
- A 'dataKeyName' property has been added to the field definition to point to the corresponding data
- FormProcessors can now return a submission url to use on the client
- FormProcessors are now responsible for returning a sensible URL to represent the 'item' being processed
- Updated all affected tests

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14021 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-20 14:53:04 +00:00
Derek Hulley
ce8de3d556 Fix for 'comments' scripts (aka cm:discussable); the addition of cm:discussable creates the necessary structures
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14010 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-20 13:26:43 +00:00
Gavin Cornwell
de74a6e44a - REST API for persisting form now returns a JSON response rather than HTML
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14007 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-20 10:38:09 +00:00
Gavin Cornwell
67020f42c2 Updated REST API URLs following discussion last week with Roy
- To get a form definition we now POST to /api/formdefinitions
 - To persist a form we now POST to /api/item_kind/item_id/formprocessor

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14005 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-20 09:37:44 +00:00
Gavin Cornwell
c379051889 Merged DEV/FORMS-REFACTOR branch to HEAD
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14000 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-18 22:42:15 +00:00
Mark Rogers
695f606034 Implementation of addition of trailing * in search groups pattern
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13994 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-17 12:25:38 +00:00
Mike Hatfield
eee887ef7b Fix regression: Copy to and Rename actions could leave folder tree in an odd state
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13984 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-16 15:17:35 +00:00
David Caruana
09c0e208c8 Merged V3.1 to HEAD
13957 Support for UsernameToken WS-Security.  Password Type 'PasswordText' with optional timestamp support.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13959 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-15 14:49:17 +00:00
Mark Rogers
4c99493d79 Implementation of Group REST API - update methods.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13946 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-14 17:13:47 +00:00
Mike Hatfield
2e1bb8dece Merged V3.1 to HEAD
13918: Form validation improvements. ETHREEOH-1756, ETHREEOH-1739, ETHREEOH-1704, ETHREEOH-1670, ETHREEOH-1519, ETHREEOH-1326, ETHREEOH-1707, ETHREEOH-1694
   13919: Copy To & Move To trees initial navigation regression
   13920: ETHREEOH-1734 - Edit offline only works in tree directory view. Fixes to actions remaining visible after pop-up dialog.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13933 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-14 09:30:32 +00:00
Mike Hatfield
1d41937ad3 Merged V3.1 to HEAD
13917: ETHREEOH-1804 - Uploading a document with the same name as an existing one overwrites the original
   13926: Line endings

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13932 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-14 09:02:28 +00:00
David Caruana
85278d0809 CMIS bag of stuff;:
- Add CMIS Allowable Actions to Abdera CMIS extension
- Add testAllowableActions(), testQueryAllowableActions
- Pass all AppClientTest (AtomPub server test suite) tests
- Fix encoding issues while parsing Atom requests
- Fix ignoring of Atom slug
- Fix support of pure Atom entries (those without CMIS extensions)
- Add test suite for custom sub-types / props (CMISCustomTypeTest)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13921 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-09 15:19:47 +00:00
Kevin Roast
043af1bbbd Fix to Invite REST API where inviteeUserName arg was not correctly checked when inviting external users.
Also cleanup the related .js scripts to use spaces not tabs - significantly aids debugging in the script debugger.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13913 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-09 14:16:50 +00:00
Kevin Roast
063f2df8b0 Fix to painfully broken PeoplePut REST API implementation.
- it was hilariously passing a Script object directly into a Template model - useful.
 - due to some recent changes the template model was finally being used in the person PUT template so this long-standing bug was triggered

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13901 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-08 12:49:22 +00:00
Mark Rogers
9444be11a4 Build fix - temprary remove test for GroupsTest.getChildren
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13899 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-08 08:40:24 +00:00
Mark Rogers
5f04d21556 First cut REST group api - read methods working.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13891 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-07 15:36:16 +00:00
Kevin Roast
3ab12a9558 REST APIs update to use correct people object when passing people lists.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13886 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-07 14:03:26 +00:00
Jan Vonka
e14d7455b6 Increase submit delay by 5s (remote-api unit test this time)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13885 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-07 14:02:59 +00:00
Kevin Roast
45dcf55613 User Account enabled/disabled status now shown on User Details screen in new Administration Console.
Repository JavaScript API now supports getting/setting user account enabled status (admin authority required).
Repository Template API now supports retrieving user account enabled status.
Fixed up line endings on template-services-context.xml.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13884 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-07 13:04:52 +00:00
David Caruana
ee3eb7d5d4 CMIS setContentStream()
- implemented as a web script
- complements the "get content" web script; just use put against same resource
- added testContentStream() to CMISTest

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13870 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-07 09:30:10 +00:00
Mike Hatfield
ead7728fa4 Merged V3.1 to HEAD
13863: ETHREEOH-1798 - Share does not work properly with folders containing a dot in their name

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13864 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-06 21:25:38 +00:00
Mike Hatfield
fbf4b20990 Moderated Site invites now visible in My Tasks dashlet
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13862 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-06 20:52:47 +00:00
David Caruana
550c29b1fa CMIS Allowable Actions (part 2)
- full coverage of includeAllowableActions in AtomPub methods as per spec
- add testQueryAllowableActions()

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13842 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-06 11:21:37 +00:00
Roy Wetherall
54e04b16ea Fixed up Person service unit test.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13840 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-06 11:03:28 +00:00
Neil McErlean
30fe241941 More test cases for child association persistence in forms
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13837 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-06 10:29:05 +00:00
Neil McErlean
440d00407f Persistence of child associations
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13835 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-06 10:08:10 +00:00
David Caruana
f11b1e8ffa CMIS Allowable Actions REST binding (part 1)
- add getAllowableActions()
- update getProperties(), getChildren() with includeAllowableActions flag
- testAllowableActions()

TODO:
- add includeAllowableActions flag for all other required methods
- Abdera extension to parse allowable actions

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13834 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-03 21:19:31 +00:00
Kevin Roast
697f6da71b The containing groups for a user can now be optionally returned via the Person REST API.
Some cleanup to Person REST API templates scripts and tests.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13829 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-03 16:02:55 +00:00
Kevin Roast
0e7976880c MOB-622 - View User Details in Users Admin Console.
- everything apart from account enabled/disabled and Groups displayed.
Consolidation of some common cm:content and cm:person labels into slingshot messages bundle.
YUI history manager used to allow Back+Forward navigation in Users Admin Console tool.
Improvements to Person Get REST API to retrieve additional user properties.
Some CSS fixes to Admin Console and User Profile.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13826 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-03 14:03:07 +00:00
Dave Ward
7bcaae9af7 Align Alfresco, CIFS and FTP authentication stacks for NTLM passthru, kerberos and LDAP
- PassthruServerFactory created to allows PassthruServers singleton to be shared by CIFS, FTP and Alfresco passthru authenticators
- Also added NTLM + Alfresco (non-passthru) example. Doesn't seem to work yet!
- ExtendedServerConfigurationAccessor interface added BaseSSOAuthenticationFilter to get at local server name info from file server configuration
- toString() added to CIFSAuthenticator so that we can still properly log the authenticator type
- Fixed WebDAVServlet to go through ServerConfigurationAccessor interface to avoid ClassCastException

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13823 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-03 11:29:18 +00:00
Mark Rogers
6b580c7cc4 Build fix for breaking test case.
Bug fix invitation service was approving too many invitations! 
Implemented security rules for who is allowed to cancel a moderated invitation.
Continuing implementation of group authority scripts.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13815 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-02 16:35:31 +00:00
David Caruana
3205b2c98c Cleanly split CMIS interfaces from CMIS implementation.
- org.alfresco.cmis => public interfaces
- org.alfresco.cmis.mapping / dictionary / search => implementation

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13808 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-02 13:50:10 +00:00
David Caruana
0f33af5dc1 Refactor CMIS property accessors (value / lucene mappers).
- remove notion of generic property accessor; consolidated on named property accessor
- build property accessors at time of CMIS Dictionary creation (cached, removes continuous creation of small objects); hooked into CMIS Property Definition
- remove property service
- lookup of property accessor quicker and constrained to properties in CMIS Dictionary
- fixup fallout in CMIS AtomPub, Web Services and Query

CMIS AtomPub, Web Services and Query tests pass.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13806 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-02 12:06:26 +00:00
Mark Rogers
f46c97873e Addition of invitations root scope script object to search for invitations accross web sites + unit test + web script.
Addition of group REST API - but there's nothing behind it so don't get excited!

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13797 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-01 15:25:39 +00:00
Mark Rogers
432105ae93 ALFCOM-2687 Implementing the list invitations web script and unit tests.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13790 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-03-31 21:39:21 +00:00
Gavin Cornwell
db93894278 - Initial checkpoint of framework/proof of concept for association UI
- Implemented temporary generic search based finder component
   - Default association control uses the object finder component
   - Implemented temporary service to retrieve objects of certain type with optional filtering

NOTE: Currently the support is limited to 0..1 associations

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13789 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-03-31 21:32:03 +00:00
Kevin Roast
2c43d8eb06 Fix for ETHREEOH-100, cleanup to some webscripts as ETHREEOH-100 now fixed.
Basic "people" API for FreeMarker - just getPerson() and getGroup() currently.
Template cache size and delay now configurable in RepositoryTemplateProcessor (like they already are in PresentationTemplateProcessor) - related default cache size tweaks.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13788 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-03-31 19:42:31 +00:00
David Caruana
dbec12a9c7 Refactor CMIS Dictionary part 2
- further simplification of CMISDictionaryService and fixup fallout
- added logging
- consolidate & fix property definition handling (only one definition per property)
- include support for aspect properties
- fix property.isInherited
- open up the door for types outside of CMIS doc, folder, rel & policy

Dictionary Service
- add isOverride() to PropertyDefinition

Invite Workflows
- ensure they create their own namespace for new types/props
- NOTE: the previous way uses a hole in the DictinaryService which has been there
        unnoticed for over 4 years, till now. At some point, the hole will be filled in.
        
Tests pass for CMIS REST / Web Services and Query.
Tests pass for Invitation Service.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13786 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-03-31 17:48:28 +00:00
Neil McErlean
16b4fc701f Switched on negative test cases in association persistence and impl in product code
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13782 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-03-31 11:27:41 +00:00
Gary Spencer
5a552200e1 Merge 3.1 to HEAD
13777: Fix NTLM filter cannot resolve server name when CIFS is disabled. ETHREEOH-1751.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13779 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-03-31 10:44:26 +00:00
Neil McErlean
8e9e0ad860 Persistence of associations
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13773 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-03-30 14:49:20 +00:00
David Caruana
509708b273 CMIS Dictionary Refactor
- follows pattern of Alfresco Dictionary
- simplified and much reduced DictionaryService interface
- model now compiled and cached (no more lots of small continuous object creations)
- walk model via simple getters
- validated (no dangling references)
- fix up property inheritance
- fix up sub-types for all types
- implements strict mode only for now (i.e. doesn't go outside of CMIS doc, folder, rel and policy)
- abstract helper for building other CMIS dictionaries (e.g. mapping all types in Alfresco)

Alfresco Dictionary:
- add event for initialized or re-initialized

Fix up usage in CMIS REST, Web Services and query. Tests pass.

REST support for custom sub-types and properties now reliable as constrained by validated CMIS model.

TODO:
- hook property value accessors into CMIS Dictionary

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13768 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-03-27 23:13:29 +00:00