[JIRA] Created: (MAGNOLIA-2921) Now that we use generics, MgnlContext.doInSystemContext could return values

View: New views
9 Messages — Rating Filter:   Alert me  

[JIRA] Created: (MAGNOLIA-2921) Now that we use generics, MgnlContext.doInSystemContext could return values

by JIRA (on behalf of Philipp Bärfuss) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Now that we use generics, MgnlContext.doInSystemContext could return values
---------------------------------------------------------------------------

                 Key: MAGNOLIA-2921
                 URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-2921
             Project: Magnolia
          Issue Type: Improvement
          Components: core
            Reporter: Grégory Joseph
            Assignee: Grégory Joseph
             Fix For: 4.2




--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <dev-list-unsubscribe@...>
----------------------------------------------------------------


[JIRA] Updated: (MAGNOLIA-2921) Now that we use generics, MgnlContext.doInSystemContext could return values

by JIRA (on behalf of Philipp Bärfuss) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



     [ http://jira.magnolia-cms.com/browse/MAGNOLIA-2921?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Grégory Joseph updated MAGNOLIA-2921:
-------------------------------------

    Description: However, for compatibility's sake, we'll need to introduce a new method, and a new interface, and we'll have to play the game name for this new Operation interface.

> Now that we use generics, MgnlContext.doInSystemContext could return values
> ---------------------------------------------------------------------------
>
>                 Key: MAGNOLIA-2921
>                 URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-2921
>             Project: Magnolia
>          Issue Type: Improvement
>          Components: core
>            Reporter: Grégory Joseph
>            Assignee: Grégory Joseph
>             Fix For: 4.2
>
>
> However, for compatibility's sake, we'll need to introduce a new method, and a new interface, and we'll have to play the game name for this new Operation interface.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <dev-list-unsubscribe@...>
----------------------------------------------------------------


[JIRA] Work started: (MAGNOLIA-2921) Now that we use generics, MgnlContext.doInSystemContext could return values

by JIRA (on behalf of Philipp Bärfuss) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



     [ http://jira.magnolia-cms.com/browse/MAGNOLIA-2921?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on MAGNOLIA-2921 started by Grégory Joseph.

> Now that we use generics, MgnlContext.doInSystemContext could return values
> ---------------------------------------------------------------------------
>
>                 Key: MAGNOLIA-2921
>                 URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-2921
>             Project: Magnolia
>          Issue Type: Improvement
>          Components: core
>            Reporter: Grégory Joseph
>            Assignee: Grégory Joseph
>             Fix For: 4.2
>
>
> However, for compatibility's sake, we'll need to introduce a new method, and a new interface, and we'll have to play the game name for this new Operation interface.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <dev-list-unsubscribe@...>
----------------------------------------------------------------


[JIRA] Commented: (MAGNOLIA-2921) Now that we use generics, MgnlContext.doInSystemContext could return values

by JIRA (on behalf of Philipp Bärfuss) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



    [ http://jira.magnolia-cms.com/browse/MAGNOLIA-2921?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=24679#action_24679 ]

Grégory Joseph commented on MAGNOLIA-2921:
------------------------------------------

Leaving open for discussion:
* naming
* exception handling: I introduced ExceptionUtil.unwrapIf() to circumvent the fact the {{exec()}} doesn't throw any exception - throwing Exception would just be annoying for client code. On the other hand, since it's a custom interface anyway, and we're in the context of Magnolia operations, it seems having the {{exec()}} would be a reasonable behavior.

> Now that we use generics, MgnlContext.doInSystemContext could return values
> ---------------------------------------------------------------------------
>
>                 Key: MAGNOLIA-2921
>                 URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-2921
>             Project: Magnolia
>          Issue Type: Improvement
>          Components: core
>            Reporter: Grégory Joseph
>            Assignee: Grégory Joseph
>             Fix For: 4.2
>
>
> However, for compatibility's sake, we'll need to introduce a new method, and a new interface, and we'll have to play the game name for this new Operation interface.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <dev-list-unsubscribe@...>
----------------------------------------------------------------


[JIRA] Issue Comment Edited: (MAGNOLIA-2921) Now that we use generics, MgnlContext.doInSystemContext could return values

by JIRA (on behalf of Philipp Bärfuss) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



    [ http://jira.magnolia-cms.com/browse/MAGNOLIA-2921?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=24679#action_24679 ]

Grégory Joseph edited comment on MAGNOLIA-2921 at 10/30/09 2:09 AM:
--------------------------------------------------------------------

Leaving open for discussion:
* naming
* exception handling: I introduced ExceptionUtil.unwrapIf() to circumvent the fact the {{exec()}} doesn't throw any exception - throwing Exception would just be annoying for client code. On the other hand, since it's a custom interface anyway, and we're in the context of Magnolia operations, it seems having the {{exec()}} would be a reasonable behavior.
Then again, the first usage of {{doInSystemContext}} that I find is ModuleManager, where we do *not* have RepositoryExceptions (because they're handled within the operation)

      was (Author: gjoseph):
    Leaving open for discussion:
* naming
* exception handling: I introduced ExceptionUtil.unwrapIf() to circumvent the fact the {{exec()}} doesn't throw any exception - throwing Exception would just be annoying for client code. On the other hand, since it's a custom interface anyway, and we're in the context of Magnolia operations, it seems having the {{exec()}} would be a reasonable behavior.
 

> Now that we use generics, MgnlContext.doInSystemContext could return values
> ---------------------------------------------------------------------------
>
>                 Key: MAGNOLIA-2921
>                 URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-2921
>             Project: Magnolia
>          Issue Type: Improvement
>          Components: core
>            Reporter: Grégory Joseph
>            Assignee: Grégory Joseph
>             Fix For: 4.2
>
>
> However, for compatibility's sake, we'll need to introduce a new method, and a new interface, and we'll have to play the game name for this new Operation interface.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <dev-list-unsubscribe@...>
----------------------------------------------------------------


[JIRA] Commented: (MAGNOLIA-2921) Now that we use generics, MgnlContext.doInSystemContext could return values

by JIRA (on behalf of Philipp Bärfuss) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



    [ http://jira.magnolia-cms.com/browse/MAGNOLIA-2921?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=24680#action_24680 ]

Hudson CI server commented on MAGNOLIA-2921:
--------------------------------------------

Integrated in !http://hudson.magnolia-cms.com/nocacheImages/16x16/blue.gif! [magnolia_main-trunk #1062|http://hudson.magnolia-cms.com/job/magnolia_main-trunk/1062/]
      MgnlContext.doInSystemContext can now return values


> Now that we use generics, MgnlContext.doInSystemContext could return values
> ---------------------------------------------------------------------------
>
>                 Key: MAGNOLIA-2921
>                 URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-2921
>             Project: Magnolia
>          Issue Type: Improvement
>          Components: core
>            Reporter: Grégory Joseph
>            Assignee: Grégory Joseph
>             Fix For: 4.2
>
>
> However, for compatibility's sake, we'll need to introduce a new method, and a new interface, and we'll have to play the game name for this new Operation interface.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <dev-list-unsubscribe@...>
----------------------------------------------------------------


[JIRA] Resolved: (MAGNOLIA-2921) Now that we use generics, MgnlContext.doInSystemContext could return values

by JIRA (on behalf of Philipp Bärfuss) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



     [ http://jira.magnolia-cms.com/browse/MAGNOLIA-2921?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Grégory Joseph resolved MAGNOLIA-2921.
--------------------------------------

    Resolution: Fixed

Operations can now specify an exception thrown by the {{exec}} method if needed.
See {{info.magnolia.context.MgnlContextTest#testCanDeclareCheckExceptionToBeThrownByDoInSystemContext}}

> Now that we use generics, MgnlContext.doInSystemContext could return values
> ---------------------------------------------------------------------------
>
>                 Key: MAGNOLIA-2921
>                 URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-2921
>             Project: Magnolia
>          Issue Type: Improvement
>          Components: core
>            Reporter: Grégory Joseph
>            Assignee: Grégory Joseph
>             Fix For: 4.2
>
>
> However, for compatibility's sake, we'll need to introduce a new method, and a new interface, and we'll have to play the game name for this new Operation interface.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <dev-list-unsubscribe@...>
----------------------------------------------------------------


[JIRA] Issue Comment Edited: (MAGNOLIA-2921) Now that we use generics, MgnlContext.doInSystemContext could return values

by JIRA (on behalf of Philipp Bärfuss) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



    [ http://jira.magnolia-cms.com/browse/MAGNOLIA-2921?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=24720#action_24720 ]

Grégory Joseph edited comment on MAGNOLIA-2921 at 11/2/09 6:35 PM:
-------------------------------------------------------------------

Operations can now specify an exception thrown by the {{exec}} method if needed.
See {{info.magnolia.context.MgnlContextTest#testCanDeclareCheckExceptionToBeThrownByDoInSystemContext}}

Naming unchanged for now.

      was (Author: gjoseph):
    Operations can now specify an exception thrown by the {{exec}} method if needed.
See {{info.magnolia.context.MgnlContextTest#testCanDeclareCheckExceptionToBeThrownByDoInSystemContext}}
 

> Now that we use generics, MgnlContext.doInSystemContext could return values
> ---------------------------------------------------------------------------
>
>                 Key: MAGNOLIA-2921
>                 URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-2921
>             Project: Magnolia
>          Issue Type: Improvement
>          Components: core
>            Reporter: Grégory Joseph
>            Assignee: Grégory Joseph
>             Fix For: 4.2
>
>
> However, for compatibility's sake, we'll need to introduce a new method, and a new interface, and we'll have to play the game name for this new Operation interface.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <dev-list-unsubscribe@...>
----------------------------------------------------------------


[JIRA] Commented: (MAGNOLIA-2921) Now that we use generics, MgnlContext.doInSystemContext could return values

by JIRA (on behalf of Philipp Bärfuss) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



    [ http://jira.magnolia-cms.com/browse/MAGNOLIA-2921?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=24721#action_24721 ]

Hudson CI server commented on MAGNOLIA-2921:
--------------------------------------------

Integrated in !http://hudson.magnolia-cms.com/nocacheImages/16x16/yellow.gif! [magnolia_main-trunk #1069|http://hudson.magnolia-cms.com/job/magnolia_main-trunk/1069/]
      * exception thrown by exec method can now be specified
 * replaced deprecated usages


> Now that we use generics, MgnlContext.doInSystemContext could return values
> ---------------------------------------------------------------------------
>
>                 Key: MAGNOLIA-2921
>                 URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-2921
>             Project: Magnolia
>          Issue Type: Improvement
>          Components: core
>            Reporter: Grégory Joseph
>            Assignee: Grégory Joseph
>             Fix For: 4.2
>
>
> However, for compatibility's sake, we'll need to introduce a new method, and a new interface, and we'll have to play the game name for this new Operation interface.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <dev-list-unsubscribe@...>
----------------------------------------------------------------