Commit Graph

395 Commits

Author SHA1 Message Date
Nick Burch
e83f5f2bd0 Add commented out unit test for ALF-4610, to show that we can cope with replication definitions with funny characters in the name
Unit test is disabled for now, as it triggers a springsurf webscript bug...


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22293 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-07 11:53:21 +00:00
Gavin Cornwell
07b8124b1b Added "version" property to GET workflow-definitions REST API
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22236 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-03 13:47:20 +00:00
Gavin Cornwell
c73b88bfae First set of workflow UI changes following Linton's review.
- (No Message) now shown when the user did not enter a message when workflow was started (only for workflows at the moment, tasks TBD)
- Removed timestamps from due dates in workflow details

Also renamed task.lib.ftl to workflow.lib.ftl and combined with workflow-definition.lib.ftl

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22224 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-03 11:35:25 +00:00
Gavin Cornwell
5f2858c986 Performance improvement for GET workflow-instances REST API.
Added "priority" and "dueDate" to WorkflowInstance object, which means a query for the workflow start task is no longer required to retrieve this information. A query was previously being done for every row in the results.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22210 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-02 21:17:57 +00:00
Derek Hulley
edc658958d ALF-4106 AuditService enhancements and fixes
- Enabling DEBUG logging for 'org.alfresco.repo.audit.inbound' will dump all auditable data
 - Fixed values output so that Serializable map entries are converted to Strings
 - Made plain the pre-audit client check (i.e. it doesn't need a path for checking)


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22203 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-02 20:15:36 +00:00
Derek Hulley
4d7b9c65cd ALF-4106 AuditService REST API: Added 'dataTrigger' to 'RecordValue'
- Prevents RecordValue elements from activating unnecessarily
 - Without any entries, everything behaves as before i.e. 'RecordValue' triggers on data entries at the current path


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22197 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-02 18:11:43 +00:00
Derek Hulley
10d3c01b3e ALF-4106 (ALF-4103): AuditService REST API; Query
- Added path- and value-based queries
 - Added limits
 - .desc.xml documentation
 - Further unit tests


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22187 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-02 15:13:42 +00:00
Derek Hulley
a12de8fa73 ALF-4106 (ALF-4103): AuditService REST API; Query
-  /api/audit/query/{application}
    fromId={fromId}
    toId={toId}
    fromTime={fromTime}
    toTime={toTime}
    user={user}
    forward={forward}
    limit={limit}
    verbose={verbose}


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22145 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-01 18:33:09 +00:00
Gavin Cornwell
c3df9d4598 ALF-3967: F54 A section of the document details page shows details of the workflows that the document is involved in
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22144 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-01 17:39:07 +00:00
Gavin Cornwell
703733d68f Added "message", "priority", "dueDate", "context" and "package" properties to the SimpleWorkflowInstanceResponse.
Unfortunately, priority and dueDate can not be retrieved from the WorkflowInstance in the Java API so they are hardcoded until that issue can be resolved.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22119 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-01 12:45:53 +00:00
Gavin Cornwell
915f85a6ab ALF-3896: F69 REST API to get the history (completed tasks) of a workflow instance (GET /api/workflow-instances/{workflow_instance_id}/task-instances)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22111 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-01 05:52:38 +00:00
Derek Hulley
092dbd87a2 ALF-4106: WS call to clear audit entries
-  /api/audit/clear/{application}?fromTime={fromTime}&toTime={toTime}


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22110 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-31 20:07:13 +00:00
Nick Burch
cfbfdb92ac When an action is marked as pending, it shouldn't have a started execution at time yet (ALF-4505)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22081 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-31 13:43:55 +00:00
Nick Burch
9b867fc350 When a replication task is executing, the rest API details shouldn't include information on the previous run, such as logs and messages (ALF-4505)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22078 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-31 12:01:26 +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
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
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
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
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
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
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
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
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
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
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
Nick Burch
a013f35828 Start on ALF-4134 - Get Details webscript
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21666 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-06 17:21:19 +00:00
Nick Burch
e4565431bb First part of ALF-4133 - webscript to fetch running actions
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21665 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-06 15:34:46 +00:00
Nick Burch
a36decbb8e ALF-4135 - Webscript support for deleting replication definitions
Includes webscript unit tests, and expands the service unit tests


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21641 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-05 13:44:01 +00:00
Nick Burch
2f8a9f1d58 Finish ALF-4132 & ALF-4131 - edit and create replication definition webscripts, including unit tests
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21598 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-04 14:17:53 +00:00