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

ASF subversion and git services commented on ISIS-497:
------------------------------------------------------

Commit 869668e2cb75447f4c1f783d0164f5a1797a5832 in branch refs/heads/master 
from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=869668e ]

ISIS-497: contributed associations.

                
> Allow service actions to be rendered as contributed collections or as 
> contributed properties.
> ---------------------------------------------------------------------------------------------
>
>                 Key: ISIS-497
>                 URL: https://issues.apache.org/jira/browse/ISIS-497
>             Project: Isis
>          Issue Type: New Feature
>          Components: Core, Viewer: Wicket
>    Affects Versions: viewer-wicket-1.2.0, core-1.2.0
>            Reporter: Dan Haywood
>            Assignee: Dan Haywood
>             Fix For: viewer-wicket-1.3.0, core-1.3.0
>
>
> Thus:
> a non-void service action that accepts a single argument of the entity type 
> is rendered as a property if it returns a scalar, or a collection if it 
> returns a list<T>.
> To prevent the service action from being contributed, use @NotContributed 
> annotation, which is extended to:
> @NotContributed  ... not contributed at all
> @NotContributed(As.ACTION)   .... but is contributed as a property/collection 
> (dependent on return type)
> @NoContributed(As.ASSOCIATION) .... but is contributed as an action
> Contributed collections are implicitly eagerly rendered.
> Contributed properties can be hidden from tables by annotating the service 
> action with @Hidden(where=ALL_TABLES), in the usual fashion.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to