Commit Graph

365 Commits

Author SHA1 Message Date
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
Nick Burch
19a026e3a4 Initial work for ALF-4131 - Update Replication Definition Webscript
Stubs out webscript and unit tests


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21589 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-04 11:13:15 +00:00
Neil McErlean
40a6a8caf6 Rating Service. Now limited to one rating scheme per user per node.
Without an explicit requirement for multiple rating schemes being applied to a node by a user and in order to simplify
the code and ease maintenance, the RatingService now only supports one rating scheme per node per user.
A rating can be applied, removed and a new rating in another scheme applied. But if the first is not removed, an exception will be thrown by the service.

This change was a simple edit in the model with changes to the service implementation and test code.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21585 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-04 07:44:07 +00:00
Gavin Cornwell
1dd3aa14f6 Merged BRANCHES/DEV/BELARUS/HEAD_2010_07_29 to HEAD:
21577: ALF-3895 : F66 REST API to get a specific workflow instance

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21584 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-04 07:27:55 +00:00
Gavin Cornwell
adfa5cfbca Added bpm:reassignable property to bpm:workflowTask with default value of true and added to invite task with default value of false.
Also fixed the hidden transition handling in task form processor, cancel for invite task is no longer returned and thus rendered in the UI.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21583 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-04 07:00:40 +00:00
Gavin Cornwell
eeff85b13a The check for whether a task can be updated has been loosened, means pooled tasks can now be claimed.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21582 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-04 05:55:38 +00:00
Nick Burch
a343197d68 Initial work for ALF-4132 - create replication definition webscript
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21574 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-03 15:12:35 +00:00
Gavin Cornwell
d6914eda7a Tidy up of task-instance related REST APIs (path and workflowInstance are now part of simple task response).
Also removed detailed=true parameter from my tasks dashlet so it gets smaller JSON response, everything it needs is now in the simple task response payload.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21573 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-03 15:10:50 +00:00
Nick Burch
d2ceb3bc73 Finish ALF-4130 - Replication Details get webscript
Includes unit tests for most states of replication definitions


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21572 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-03 14:32:44 +00:00
Gavin Cornwell
75065e6daa Merged BRANCHES/DEV/BELARUS/HEAD_2010_07_29 to HEAD:
21523: ALF-3895 : F66 REST API to get a specific workflow instance

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21569 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-03 13:21:31 +00:00
Nick Burch
dd5a727408 ALF-4130 - Continue work on replication details fetch webscript
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21566 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-03 11:47:58 +00:00
N Smith
90fbffbb58 Updated the Workflow Rest API classes to use the getter methods on various Workflow DTOs instead of accessing the public fields.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21565 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-03 11:41:28 +00:00
Nick Burch
fac612f159 Start on ALF-4130 (F105) - replication details fetch webscript.
Basics are returned, and unit tested, but the remainder of the details need to be retrieved, computed, output and tested


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21546 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-02 16:38:43 +00:00
Nick Burch
a1c412e4e6 Finish ALF-4129 - list replication definitions webscript
Fix up the freemarker output, add sorting support, and webscript unit tests


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21539 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-02 13:22:42 +00:00
Erik Winlof
04de456146 ALF-393: Added "detailed" parameter to task-instances webscript and made Share use "initiator" to decide if an "edit" button/icon shall be displayed
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21537 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-02 12:03:56 +00:00
Nick Burch
c7ba8fea8a ALF-4129 - More work on replication definitions listing webscript
Move towards a model builder, and start on unit tests


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21524 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-07-30 16:41:43 +00:00
Derek Hulley
efc0ca3913 ALF-4106 (ALF-4103): AuditService REST API
- Enable/disable auditing and tests
 - TODO: Use .ftl to generate JSON from model


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21520 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-07-30 15:48:02 +00:00
Nick Burch
54fc5b8f83 Initial cut of the replication definitions list webscript (ALF-4129)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21514 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-07-30 15:09:49 +00:00
Derek Hulley
528d7c6b66 Reverse-merged 21489: @override tags
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21499 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-07-30 09:31:30 +00:00
Dave Ward
4979a0b2bd Removed @Override tags for JDK 1.6
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21489 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-07-29 13:13:21 +00:00
Derek Hulley
67cca3bff0 ALF-4106 (ALF-4103): AuditService enhancements
- Additional methods to get all available applications
 - Web Script retrieval of applications and enabled/disabled states
 - Tests


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21485 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-07-29 12:15:27 +00:00
Derek Hulley
310000dd28 SAIL-240 (SAIL-294) AuditDAO: Web Script starter for AuditService incl. test
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21472 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-07-28 17:41:52 +00:00
Gavin Cornwell
21bab3d746 Merged BRANCHES/DEV/BELARUS/HEAD_2010_07_28 to HEAD:
21459: ALF-3897 (F79) REST API to get a specific task instance

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21463 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-07-28 15:01:00 +00:00
Gavin Cornwell
7eef4234aa Merged BRANCHES/DEV/BELARUS/HEAD_2010_07_19 to HEAD:
21326: ALF-3894 : F81 REST API to update properties for a particular task instance
   21376: ALF-3894 : F81 REST API to update properties for a particular task instance

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21404 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-07-26 10:54:01 +00:00
Gavin Cornwell
9bec2b070b Merged BRANCHES/DEV/BELARUS/HEAD-2010_07_09 to HEAD (with modifications)
21156: Implemented GET /api/task-instances/{task_instance_id}

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21181 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-07-14 22:20:54 +00:00
N Smith
5f41d9783f Created the new WorkflowFormProcessor which processes forms based on a workflow definition name.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21172 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-07-14 15:10:17 +00:00
Neil McErlean
2f6aaaa819 Rating Service. Added DELETE webscript and fixed bug.
There is now a rating.delete webscript.
  Plus a bug was fixed where the ratings weren't actually being deleted.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21161 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-07-14 13:28:46 +00:00
Mark Rogers
bd829f9c08 transfer service : work in progress.
implementation of transfer requsite.
    API change isComplete to isSync

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21130 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-07-13 14:04:23 +00:00
Neil McErlean
4db99ec25f Rating Service. Allow fractional ratings.
I've changed the ratings 'score' from an integer to a float as fractional ratings seems like a reasonable idea to me.
  This had impact all through the Java layer, the REST layer, the model and the test code.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21128 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-07-13 13:31:07 +00:00
Gavin Cornwell
53cee95d12 Changing workflow REST API URLs to be plural for consistency with other services and also some minor formatting of FTL
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21127 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-07-13 13:13:16 +00:00
Neil McErlean
e80119fe6c RatingService GET node ratings statistics via REST.
Added node rating stats to the ratings.get webscript (for each scheme):
    average (mean) of all ratings for this node.
    total (sum) of all ratings for this node.
    count of all ratings for this node.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21108 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-07-12 16:07:08 +00:00