Commit Graph

1193 Commits

Author SHA1 Message Date
Neil McErlean
3a431da024 Merge from DEV/SITE_CONFIGURABILITY to HEAD
22049: ALF-3786 Partial implementation of Configurable Site Creation Group.
         Site configuration groups can be configured via permissions management in the usual way.
         This check-in adds hasCreateSitePermissions() to various SiteService layers to better support
         client code when site creation restrictions have been imposed.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22053 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-27 15:29:32 +00:00
Gavin Cornwell
6dd6f37edc ALF-4485: F107 All relevant REST APIs have the ability to exclude task and workflow types
GET workflow-definitions, GET task-instances and GET workflow-instances all now support the new 'exclude' parameter. This is a comma separated list of types to exclude from the results, for example: "wf:adhocTask,wcmwf:*"

Also fixed the filtering logic used in GET task-instances and GET workflow-instances so that multiple filter parameters now work correctly together.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22046 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-27 14:02:06 +00:00
Nick Burch
aecf8c464b ALF-4505 - Change how replication definition "sort by last run" orders jobs that haven't ever been run
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22044 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-27 13:17:31 +00:00
Gavin Cornwell
753c0d9ac1 - Revert recent change that has caused boolean and number fields to stop working correctly
- Also added force=true to form config for transferTarget so the boolean field is always visible (i.e. before the aspect has been applied)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22042 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-27 12:27:32 +00:00
Nick Burch
eb4b8fd94e ALF-4348 - More replication job scheduling work
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22021 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-26 13:56:44 +00:00
Nick Burch
ce1f57c3b9 ALF-4346 & ALF-4348 - More work on schedulable actions, and start to expose this through to the replication service
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22019 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-26 13:36:37 +00:00
Mike Hatfield
22b3fc324b ALF-4176: F49 Execute 'Open in Source Repository" action against replica [browser window/tab opens details page for object directly against source repo]
ALF-4171: F26 View the status summary of running replication job(s)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22013 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-26 12:11:22 +00:00
Gavin Cornwell
a4f2f1d89a ALF-3102 & FORM-36: Allow the starting point to be defined for the association control also required to implement ALF-4070: F20 Selectable resources are limited to the current site (if appropriate)
The association control now accepts a 'startLocation' parameter, this can be set to any of the following:

{companyhome}
{userhome}
{siteshome}
{doclib}
{self}
{parent}
A NodeRef
An XPath

The NodeRef and XPath options can also be used for the category form control to start the category picker in a particular category.

The XPath option is already used by the replication job UI and an example of {doclib} is in the FDK.

Example config would be as follows:

<form>
   ....
   <appearance>
      <field id="fdk:images">
         <control>
            <control-param name="startLocation">{doclib}</control-param>
         </control>
      </field>
      <field id="fdk:reviews">
         <control>
            <control-param name="startLocation">/app:company_home/app:dictionary/app:transfers/app:transfer_groups/cm:default</control-param>
         </control>
      </field>
   </appearance>
</form>

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21992 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-25 13:37:43 +00:00
Nick Burch
8ae41a2a94 Mark out which bits need to be changed to support ALF-4476
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21991 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-25 13:36:31 +00:00
Nick Burch
926effbcae ALF-4408 - prevent creation of duplicate named replication definitions, and update the unit tests to properly test this, not just almost test it...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21986 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-25 12:02:42 +00:00
Gavin Cornwell
8f0876a332 - Added 'pooledTasks' parameter to GET task-instances REST API
- Added 'definitionId' parameter to GET workflow-instances REST API
- All date parameters now support a value of "null" or an empty string to indicate that a NULL date should be searched for

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21970 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-24 15:50:45 +00:00
Mike Hatfield
9564af6a2d First round of date refactoring: Document Library pages now expect XML dates (ISO8601) from Share data webscripts
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21960 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-24 10:21:40 +00:00
Gavin Cornwell
60da75b178 Merged BRANCHES/DEV/BELARUS/HEAD_2010_08_23 to HEAD:
21942: ALF-4303 : F100 All REST APIs have the ability to restrict the results with a 'maxItems' parameter
               ALF-4377 : F103 All REST APIs have the ability to return paged results with a 'skipCount' parameter

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21955 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-24 08:07:07 +00:00
Gavin Cornwell
eae37b616f Added task update protection to the task form processor and changed the check in TaskInstancePut to use the new isTaskEditable method on the WorkflowService.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21918 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-23 07:24:12 +00:00
Erik Winlof
b47e03a455 ALF-3935 Cancel workflow, ALF-4074 task type blacklist, missing images from r21878 & minor changes
- Added missing images form last workflow "Summary" commit r21878
- My tasks dashlet uses task-type blacklist
- Its possible to cancel workflows form Workflow details
- Workflow "Summary" now has avatar image
- task-instance.delete now returns success: true
- people-finder's "add" button label now configurable (used by reassign task)
- Made the object-finder's "Add" button label customisable and the "Add/Select" buttons on each row depend on the multipleSelectMode option
- introduced new Alfresco.action namespace for common functionality that can be augmented on other components


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21914 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-20 17:03:55 +00:00
Mike Hatfield
b51b85b8c1 ALF-4158: F1 Create a replication job [name, title, description]
ALF-4165: F3 Edit, delete action for replication job from list of existing jobs

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21902 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-20 14:10:06 +00:00
Gavin Cornwell
d1924830c9 Added "type" property to the workflow instance response, mainly for future use and consistency with the task response, it currently duplicates the "name" property
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21901 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-20 13:49:50 +00:00
Gavin Cornwell
8cf1f25f3f Added "avatarUrl" property to the "owner" and "initiator" objects in workflow REST API
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21900 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-20 13:46:42 +00:00
Gavin Cornwell
79c700b6fb Merged BRANCHES/DEV/BELARUS/HEAD_2010_08_17 to HEAD:
21853: ALF-4304 : F101 All relevant REST APIs have filtering capabilities i.e. authority, state, priority and date range
               ALF-3902: F77 REST API to get all task instances

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21899 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-20 12:31:58 +00:00
Derek Hulley
55bd4fc42e Very minor formatting
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21895 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-20 10:41:09 +00:00
Gavin Cornwell
aa32a118ab - Added isTaskEditable, isTaskReassignable, isTaskClaimable and isTaskReleasable to WorkflowService
- Added isEditable, isReassignable, isClaimable and isReleasable flags to task model in REST API
- Added outcome property to task model in REST API (label instead of raw value)
- Change "definitionTypeTitle" property to "type" and fixed up fallout
- Changed UI to use the isXXX flags above rather than copious amount of repeated checks
- Updated workflow details page to use outcome label, isEditable flag and some changes following discussion with Linton
- Added tests

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21890 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-20 09:07:02 +00:00
Steven Glover
f17f156887 ALF-4194 - minor fixes
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21883 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-19 19:02:18 +00:00
Kevin Roast
aed6bca1f3 Share Advanced Search
- Fields and keywords now correctly ANDed together in generated query

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21869 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-19 11:36:24 +00:00
David Caruana
b5647e9662 Fix RepositoryStartStopTest; issues with...
- minimal-context.xml not pulling in appropriate dependencies for persistent scheduled actions
- audit failing to register CMIS change log extractor (failed locally, but not on build machine for some reason)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21852 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-18 11:40:14 +00:00
Erik Winlof
7037339de2 ALF-3934 "F34 Workflow history" & ALF-3968 "F33 Current tasks" and related changes
- Current tasks are displayed
- Workflow history is displayed
- Authority picker displays username
- Form background and border now themeable
- Claim, Release and Reassign are now disabled when the next page loads
- Corrected check before printing nodeRef in item.lib.ftl
- Package items label: "View more document actions" is now "View more actions" and with an "arrow" as icon instead of the "plus"


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21845 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-17 16:25:32 +00:00
Kevin Roast
d35a477c23 Share Advanced Search
- improvements to Search and Advanced Search maintaining search urls between pages
 - UI improvements to Search screen
 - Advanced Search screen now loads previously display form when moving between search/advsearch pages - NOTE: does not repopulate form fields yet

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21840 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-17 13:49:04 +00:00
Mark Rogers
63edaf4c88 ALF-4127 - F86 Provide target log to source repository
implemented with unit test.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21836 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-17 12:16:54 +00:00
Kevin Roast
df10ae91ed Share Advanced Search
- Refactored search forms list to use YUI button and menu
 - Fixes display in IE6

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21829 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-17 10:26:40 +00:00
Derek Hulley
a1f7724db4 ALF-4106 (ALF-4103): AuditService REST API
- Full start/stop/status using WebScripts
 - AuditService API additions to support
 - .ftl to generate json response
 - Some javadoc and debug additions


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21802 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-14 20:42:26 +00:00
Nick Burch
5832f32f5a Add in missing webscript tests to the suite, and sort the list of tests so it's easier to spot missing ones
(Several of these webscript tests seem to have been broken for a long time though...)


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21791 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-13 13:20:40 +00:00
Nick Burch
3c16d97c3c In the replication webscripts, return single responses still wrapped in data:{} entries
Update unit tests following this json change, and also fix them after the json changes from r21749


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21790 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-13 12:45:05 +00:00
Mike Hatfield
4716fae43a Replication Jobs UI: Improvements to summary page. Tidy and fix some JSON response templates.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21749 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-12 08:06:45 +00:00
Gavin Cornwell
f44b951918 Changed status response code of DELETE workflow-instance REST API to 200 to be consistent with all other DELETE APIs
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21747 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-11 18:11:16 +00:00
Erik Winlof
f9ca7b5019 Implemented ALF-3926 "F11 Workflow can be started with a context (current folder)"
- Better context/destination set for Start workflow when started form doclib 
- doclist REST api additions: metadata.container & items[].location.parent.nodeRef

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21743 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-11 16:32:03 +00:00
Kevin Roast
99a6c0f890 Share Advanced Search
- Basics of Form based search working
 - Search by type and form based configured fields for that type
 - Still a bit rough round the edges

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21741 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-11 14:48:37 +00:00
Nick Burch
984c17f7cd ALF-4296 - different replication definition delete webscript http response code
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21739 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-11 14:26:01 +00:00
Gavin Cornwell
5f04340129 Added check to PUT task-instance REST API to ensure that the user claiming a task has the authority to do so i.e. they are a member of one of the pooled actor groups assigned to task.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21736 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-11 13:58:20 +00:00
Nick Burch
af204372ec ALF-4296 - tweak how Status.STATUS_GONE is returned from the replication webscripts
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21730 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-11 11:52:58 +00:00
Nick Burch
53bca43b13 ALF-4133 & ALF-4284 - finish execute action webscripts, and return the details of the pending action in the result
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21720 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-10 17:01:38 +00:00
Steven Glover
d598e36b6d Initial checkin for AWE enhancements:
ALF-4285: AWE - F22 - I can delete a content item
ALF-4195: AWE - F18 - Can create a new content asset based on an existing item

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21716 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-10 15:17:05 +00:00
Gavin Cornwell
3c13c3dafa Merged BRANCHES/DEV/BELARUS/HEAD_2010_08_09 to HEAD:
21702: ALF-3903 : F91 REST API to get workflow instances for a node

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21714 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-10 14:21:37 +00:00
Mike Hatfield
01507ddfb9 Replication Jobs UI work-in -progress
- ALF-4177: Replication Admin Console Scaffolding
- ALF-4160: F2 View list of replication jobs and execution status [none|running|success|failed|cancelled]
- ALF-4159: F100 View Replication Job Details (name, description, status, schedule, payload etc)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21708 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-10 13:54:44 +00:00
Nick Burch
9945c6f44c ALF-4284 - allow cluster-wide visibility of pending actions, as well as running ones
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21707 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-10 13:38:56 +00:00
Gavin Cornwell
d55d58b860 Added "site" property to 'pickeritems' data webscript, if present provides the site short name the item is within. This is used by the workflow packageitems form control to determine which document details page to go to.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21691 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-09 19:53:49 +00:00
Nick Burch
7ed6d33810 ALF-4133 - Partial support for executing actions via the webscript
Will need a refactor of pending actions support before this can be finished, and unit tests can be enabled


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21683 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-09 14:26:33 +00:00
Nick Burch
5e3357245b Part of ALF-4133 - running replication actions list webscript, plus tests
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21678 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-09 09:43:55 +00:00
Nick Burch
a87236b80e Finish ALF-4134 - running action cancel request webscript
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21676 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-09 08:33:06 +00:00
Gavin Cornwell
d4f999b227 Merged BRANCHES/DEV/BELARUS/HEAD_2010_08_04 to HEAD:
21652: ALF-3898 : F68 REST API to cancel/delete a workflow instance

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21672 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-06 21:33:08 +00:00
Gavin Cornwell
5a053460df Merged BRANCHES/DEV/BELARUS/HEAD_2010_08_04 to HEAD:
21592 & 21649: Workflow REST APIs for retrieving workflow instance collections

Includes:
ALF-3900: F62 REST API to get all workflow instances
ALF-3901: F64 REST API to get all workflow instances of a particular workflow definition
ALF-3905: F65 REST API to get a filtered list of workflow instances of a particular workflow definition (by initiator, state, date, priority)
ALF-3906: F63 REST API to get a filtered list of workflow instances (by initiator, status, date, priority)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21671 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-06 21:19:09 +00:00
Gavin Cornwell
eaee7edec3 ALF-4178: F99 All task and workflow IDs are escaped so they can be used in webscript URLs
Removed unrequired escaping code since Mike fixed the underlying problem in the urlrewriter.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21670 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-06 20:08:13 +00:00