Further REST enhancements for 2.0.0

2015-09-15 Thread Francesco Chicchiriccò

Hi all,
I have just opened SYNCOPE-694 and SYNCOPE-695 for providing further 
enhancements to REST interface: the former for (long-overdue) turning 
POST-based updates into more compliant PATCH and PUT and the latter, 
inspired by OData, for providing attribute-based operations.


WDYT?

--
Francesco Chicchiriccò

Tirasa - Open Source Excellence
http://www.tirasa.net/

Involved at The Apache Software Foundation:
member, Syncope PMC chair, Cocoon PMC, Olingo PMC
http://people.apache.org/~ilgrosso/



[jira] [Created] (SYNCOPE-695) REST endpoints for attribute CRUD

2015-09-15 Thread JIRA
Francesco Chicchiriccò created SYNCOPE-695:
--

 Summary: REST endpoints for attribute CRUD
 Key: SYNCOPE-695
 URL: https://issues.apache.org/jira/browse/SYNCOPE-695
 Project: Syncope
  Issue Type: New Feature
Reporter: Francesco Chicchiriccò
 Fix For: 2.0.0


Currently AnyService (and its derivative, providing REST services for users, 
groups and any objects) defines CRUD methods for the whole entities, e.g. 
allows to create, update, read and delete users, groups and any objects.

Inspired by the OData standard, new REST endpoints can be defined so that the 
following calls are allowed.

{code}
GET /users/157/PLAIN
{code}

Returns the list of plain attributes for user 157 ({{DERIVED}} and {{VIRTUAL}} 
can also be used) with values.

{code}
GET /users/157/PLAIN/firstname
{code}

Returns the list of values for the {{firstname}} plain attribute of user 157.

{code}
PUT /users/157/PLAIN/firstname
{code}

Adds or replaces the list of values for the {{firstname}} plain attribute of 
user 157.

{code}
DELETE /users/157/PLAIN/firstname
{code}

Removes the plain attribute {{firstname}} from user 157.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Created] (SYNCOPE-694) PATCH and PUT update for users, groups and any objects

2015-09-15 Thread JIRA
Francesco Chicchiriccò created SYNCOPE-694:
--

 Summary: PATCH and PUT update for users, groups and any objects
 Key: SYNCOPE-694
 URL: https://issues.apache.org/jira/browse/SYNCOPE-694
 Project: Syncope
  Issue Type: Improvement
Reporter: Francesco Chicchiriccò
Assignee: Francesco Chicchiriccò
 Fix For: 2.0.0


Currently {{AnyService}} (and its derivative, providing REST services for 
users, groups and any objects) defines the update method as follows:

{code}
@POST
@Path("{key}")
@Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
@Consumes({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
Response update(@NotNull MOD anyMod);
{code}

where {{MOD extends AnyMod}}.

The idea is to move to a definition like as follows:

{code}
@PATCH
@Path("{key}")
@Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
@Consumes({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
Response update(@NotNull P anyPatch);
{code}

e.g. to more REST-compliant patch-based update.
This has the additional benefit of simplifying the interaction with clients 
(JavaScript, in particular) not based on {{syncope-client}} Java library.

It could also be useful to add a second update method as follows:

{code}
@PUT
@Path("{key}")
@Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
@Consumes({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
Response update(@NotNull TO anyTO);
{code}

where {{TO extends AnyTO}}.

This latter would allow to build simpler create / update interactions for 
clients based on {{syncope-client}} Java library.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


Fixed: apache/syncope#594 (SYNCOPE-156 - 54888f6)

2015-09-15 Thread Travis CI
Build Update for apache/syncope
-

Build: #594
Status: Fixed

Duration: 16 minutes and 33 seconds
Commit: 54888f6 (SYNCOPE-156)
Author: fmartelli
Message: [SYNCOPE-156] fix for build #593

View the changeset: 
https://github.com/apache/syncope/compare/7526a2d59c48...54888f6d9059

View the full build log and details: 
https://travis-ci.org/apache/syncope/builds/80437519

--

You can configure recipients for build notifications in your .travis.yml file. 
See http://docs.travis-ci.com/user/notifications




Broken: apache/syncope#593 (SYNCOPE-156 - 7526a2d)

2015-09-15 Thread Travis CI
Build Update for apache/syncope
-

Build: #593
Status: Broken

Duration: 9 minutes and 36 seconds
Commit: 7526a2d (SYNCOPE-156)
Author: fmartelli
Message: [SYNCOPE-156] modal window review in order to make content change 
possible at runtime

View the changeset: 
https://github.com/apache/syncope/compare/2aba8fba752f...7526a2d59c48

View the full build log and details: 
https://travis-ci.org/apache/syncope/builds/80434634

--

You can configure recipients for build notifications in your .travis.yml file. 
See http://docs.travis-ci.com/user/notifications




[jira] [Commented] (SYNCOPE-156) New admin UI

2015-09-15 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/SYNCOPE-156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14745496#comment-14745496
 ] 

ASF subversion and git services commented on SYNCOPE-156:
-

Commit 54888f6d9059f9e92ebb4dff3b287a2a15eb65a2 in syncope's branch 
refs/heads/SYNCOPE-156 from [~fmartelli]
[ https://git-wip-us.apache.org/repos/asf?p=syncope.git;h=54888f6 ]

[SYNCOPE-156] fix for build #593


> New admin UI
> 
>
> Key: SYNCOPE-156
> URL: https://issues.apache.org/jira/browse/SYNCOPE-156
> Project: Syncope
>  Issue Type: New Feature
>  Components: console
>Reporter: Francesco Chicchiriccò
> Fix For: 2.0.0
>
>
> Refactor and rewrite current console into a new, cleaner, admin UI.
> It is a important usability improvement to provide sensible and contextual 
> help messages on (mostly) each form field.
> [1] 
> http://syncope-dev.1063484.n5.nabble.com/About-admin-console-refactoring-td5710115.html
> [2] http://markmail.org/message/wtamknssq42pyjjc



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (SYNCOPE-156) New admin UI

2015-09-15 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/SYNCOPE-156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14745468#comment-14745468
 ] 

ASF subversion and git services commented on SYNCOPE-156:
-

Commit 85df1a77abf823f8c4c9305f7f0ea973b1ed3041 in syncope's branch 
refs/heads/SYNCOPE-156 from [~fmartelli]
[ https://git-wip-us.apache.org/repos/asf?p=syncope.git;h=85df1a7 ]

Merge branch 'master' into SYNCOPE-156


> New admin UI
> 
>
> Key: SYNCOPE-156
> URL: https://issues.apache.org/jira/browse/SYNCOPE-156
> Project: Syncope
>  Issue Type: New Feature
>  Components: console
>Reporter: Francesco Chicchiriccò
> Fix For: 2.0.0
>
>
> Refactor and rewrite current console into a new, cleaner, admin UI.
> It is a important usability improvement to provide sensible and contextual 
> help messages on (mostly) each form field.
> [1] 
> http://syncope-dev.1063484.n5.nabble.com/About-admin-console-refactoring-td5710115.html
> [2] http://markmail.org/message/wtamknssq42pyjjc



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (SYNCOPE-156) New admin UI

2015-09-15 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/SYNCOPE-156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14745469#comment-14745469
 ] 

ASF subversion and git services commented on SYNCOPE-156:
-

Commit 7526a2d59c482b708cbfe5da27f216023e554d01 in syncope's branch 
refs/heads/SYNCOPE-156 from [~fmartelli]
[ https://git-wip-us.apache.org/repos/asf?p=syncope.git;h=7526a2d ]

[SYNCOPE-156] modal window review in order to make content change possible at 
runtime


> New admin UI
> 
>
> Key: SYNCOPE-156
> URL: https://issues.apache.org/jira/browse/SYNCOPE-156
> Project: Syncope
>  Issue Type: New Feature
>  Components: console
>Reporter: Francesco Chicchiriccò
> Fix For: 2.0.0
>
>
> Refactor and rewrite current console into a new, cleaner, admin UI.
> It is a important usability improvement to provide sensible and contextual 
> help messages on (mostly) each form field.
> [1] 
> http://syncope-dev.1063484.n5.nabble.com/About-admin-console-refactoring-td5710115.html
> [2] http://markmail.org/message/wtamknssq42pyjjc



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)