You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shiro.apache.org by "Jean-Cédric Desrochers (JIRA)" <ji...@apache.org> on 2010/01/12 17:43:54 UTC

[jira] Created: (SHIRO-129) Aspecjt integration for annotation base authorization

Aspecjt integration for annotation base authorization
-----------------------------------------------------

                 Key: SHIRO-129
                 URL: https://issues.apache.org/jira/browse/SHIRO-129
             Project: Shiro
          Issue Type: New Feature
            Reporter: Jean-Cédric Desrochers


Here's the code I'm donating to the Shiro project to use aspectj as the aop kit to perform authorization of method invocation based on the defined Shiro's annotation.

The zip files contains the following:
 - java/src: source files to adapt an aspectj joint point to a shiro method invocation
 - java/test: unit test classes
- conf: configuration file for the test cases

To compile and run properly, the code requires the following:
 - junit jar
 - shiro jar
 - aspectj jars (I used AJDT within eclipse, so everything was integrated)



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (SHIRO-129) Aspecjt integration for annotation base authorization

Posted by "Kalle Korhonen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SHIRO-129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kalle Korhonen reassigned SHIRO-129:
------------------------------------

    Assignee: Kalle Korhonen

> Aspecjt integration for annotation base authorization
> -----------------------------------------------------
>
>                 Key: SHIRO-129
>                 URL: https://issues.apache.org/jira/browse/SHIRO-129
>             Project: Shiro
>          Issue Type: New Feature
>            Reporter: Jean-Cédric Desrochers
>            Assignee: Kalle Korhonen
>         Attachments: shiro example bank service.zip, shiro-aspectj integration.zip
>
>
> Here's the code I'm donating to the Shiro project to use aspectj as the aop kit to perform authorization of method invocation based on the defined Shiro's annotation.
> The zip files contains the following:
>  - java/src: source files to adapt an aspectj joint point to a shiro method invocation
>  - java/test: unit test classes
> - conf: configuration file for the test cases
> To compile and run properly, the code requires the following:
>  - junit jar
>  - shiro jar
>  - aspectj jars (I used AJDT within eclipse, so everything was integrated)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SHIRO-129) Aspecjt integration for annotation base authorization

Posted by "Jean-Cédric Desrochers (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SHIRO-129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Cédric Desrochers updated SHIRO-129:
-----------------------------------------

    Attachment: shiro example bank service.zip

a little sample bank service I'm giving as well to have a more concrete example of how to use the aspectj integration.

The content of the zip file is:
 - java/src: main source code of the sample
 - java/test: unit tests
 - conf: configuration files for shiro and the aspectj weaver tool
 - lib: required jar files to compile and run the test cases

To run the test cases you need to:
1) define the following vm argument: -javaagent:./lib/aspectjweaver.jar (where ./lib/spectjweaver.jar is the path to the weaver tool)
2) add in the classpath the conf/ directory and the jars of the lib/ directory

Upon VM launch, the weaver tool will look for the META-INF/aop.xml file (in the conf/ directory) to discover the aspects to apply and the scope of the weavable classes.  It is currently configured for the classes of the BankService sample.

I did not make a runnable little application to demonstrate the BankService in action, for me the test cases are self-explanatory.


> Aspecjt integration for annotation base authorization
> -----------------------------------------------------
>
>                 Key: SHIRO-129
>                 URL: https://issues.apache.org/jira/browse/SHIRO-129
>             Project: Shiro
>          Issue Type: New Feature
>            Reporter: Jean-Cédric Desrochers
>         Attachments: shiro example bank service.zip, shiro-aspectj integration.zip
>
>
> Here's the code I'm donating to the Shiro project to use aspectj as the aop kit to perform authorization of method invocation based on the defined Shiro's annotation.
> The zip files contains the following:
>  - java/src: source files to adapt an aspectj joint point to a shiro method invocation
>  - java/test: unit test classes
> - conf: configuration file for the test cases
> To compile and run properly, the code requires the following:
>  - junit jar
>  - shiro jar
>  - aspectj jars (I used AJDT within eclipse, so everything was integrated)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Work started: (SHIRO-129) Aspecjt integration for annotation base authorization

Posted by "Kalle Korhonen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SHIRO-129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on SHIRO-129 started by Kalle Korhonen.

> Aspecjt integration for annotation base authorization
> -----------------------------------------------------
>
>                 Key: SHIRO-129
>                 URL: https://issues.apache.org/jira/browse/SHIRO-129
>             Project: Shiro
>          Issue Type: New Feature
>            Reporter: Jean-Cédric Desrochers
>            Assignee: Kalle Korhonen
>         Attachments: shiro example bank service.zip, shiro-aspectj integration.zip
>
>          Time Spent: 2h
>  Remaining Estimate: 1h
>
> Here's the code I'm donating to the Shiro project to use aspectj as the aop kit to perform authorization of method invocation based on the defined Shiro's annotation.
> The zip files contains the following:
>  - java/src: source files to adapt an aspectj joint point to a shiro method invocation
>  - java/test: unit test classes
> - conf: configuration file for the test cases
> To compile and run properly, the code requires the following:
>  - junit jar
>  - shiro jar
>  - aspectj jars (I used AJDT within eclipse, so everything was integrated)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SHIRO-129) Aspecjt integration for annotation base authorization

Posted by "Jean-Cédric Desrochers (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SHIRO-129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Cédric Desrochers updated SHIRO-129:
-----------------------------------------

    Attachment: shiro-aspectj integration.zip

aspectj integration source code

> Aspecjt integration for annotation base authorization
> -----------------------------------------------------
>
>                 Key: SHIRO-129
>                 URL: https://issues.apache.org/jira/browse/SHIRO-129
>             Project: Shiro
>          Issue Type: New Feature
>            Reporter: Jean-Cédric Desrochers
>         Attachments: shiro-aspectj integration.zip
>
>
> Here's the code I'm donating to the Shiro project to use aspectj as the aop kit to perform authorization of method invocation based on the defined Shiro's annotation.
> The zip files contains the following:
>  - java/src: source files to adapt an aspectj joint point to a shiro method invocation
>  - java/test: unit test classes
> - conf: configuration file for the test cases
> To compile and run properly, the code requires the following:
>  - junit jar
>  - shiro jar
>  - aspectj jars (I used AJDT within eclipse, so everything was integrated)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Work logged: (SHIRO-129) Aspecjt integration for annotation base authorization

Posted by "Kalle Korhonen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SHIRO-129?page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#action_10994 ]

Kalle Korhonen logged work on SHIRO-129:
----------------------------------------

                Author: Kalle Korhonen
            Created on: 02/Feb/10 01:31 PM
            Start Date: 02/Feb/10 01:31 PM
    Worklog Time Spent: 1h 

Issue Time Tracking
-------------------

            Time Spent: 3h  (was: 2h)
    Remaining Estimate: 0h  (was: 1h)

> Aspecjt integration for annotation base authorization
> -----------------------------------------------------
>
>                 Key: SHIRO-129
>                 URL: https://issues.apache.org/jira/browse/SHIRO-129
>             Project: Shiro
>          Issue Type: New Feature
>            Reporter: Jean-Cédric Desrochers
>            Assignee: Kalle Korhonen
>             Fix For: 1.0
>
>         Attachments: shiro example bank service.zip, shiro-aspectj integration.zip
>
>          Time Spent: 3h
>  Remaining Estimate: 0h
>
> Here's the code I'm donating to the Shiro project to use aspectj as the aop kit to perform authorization of method invocation based on the defined Shiro's annotation.
> The zip files contains the following:
>  - java/src: source files to adapt an aspectj joint point to a shiro method invocation
>  - java/test: unit test classes
> - conf: configuration file for the test cases
> To compile and run properly, the code requires the following:
>  - junit jar
>  - shiro jar
>  - aspectj jars (I used AJDT within eclipse, so everything was integrated)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Work logged: (SHIRO-129) Aspecjt integration for annotation base authorization

Posted by "Kalle Korhonen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SHIRO-129?page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#action_10984 ]

Kalle Korhonen logged work on SHIRO-129:
----------------------------------------

                Author: Kalle Korhonen
            Created on: 26/Jan/10 07:07 AM
            Start Date: 26/Jan/10 07:07 AM
    Worklog Time Spent: 2h 

Issue Time Tracking
-------------------

            Time Spent: 2h
    Remaining Estimate: 1h

> Aspecjt integration for annotation base authorization
> -----------------------------------------------------
>
>                 Key: SHIRO-129
>                 URL: https://issues.apache.org/jira/browse/SHIRO-129
>             Project: Shiro
>          Issue Type: New Feature
>            Reporter: Jean-Cédric Desrochers
>            Assignee: Kalle Korhonen
>         Attachments: shiro example bank service.zip, shiro-aspectj integration.zip
>
>          Time Spent: 2h
>  Remaining Estimate: 1h
>
> Here's the code I'm donating to the Shiro project to use aspectj as the aop kit to perform authorization of method invocation based on the defined Shiro's annotation.
> The zip files contains the following:
>  - java/src: source files to adapt an aspectj joint point to a shiro method invocation
>  - java/test: unit test classes
> - conf: configuration file for the test cases
> To compile and run properly, the code requires the following:
>  - junit jar
>  - shiro jar
>  - aspectj jars (I used AJDT within eclipse, so everything was integrated)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (SHIRO-129) Aspecjt integration for annotation base authorization

Posted by "Kalle Korhonen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SHIRO-129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kalle Korhonen resolved SHIRO-129.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.0

Mavenized and committed as a new support module and a new sample (which might still undergo some refactoring but will be handled as a separate issue). Thanks for the contribution!

> Aspecjt integration for annotation base authorization
> -----------------------------------------------------
>
>                 Key: SHIRO-129
>                 URL: https://issues.apache.org/jira/browse/SHIRO-129
>             Project: Shiro
>          Issue Type: New Feature
>            Reporter: Jean-Cédric Desrochers
>            Assignee: Kalle Korhonen
>             Fix For: 1.0
>
>         Attachments: shiro example bank service.zip, shiro-aspectj integration.zip
>
>          Time Spent: 2h
>  Remaining Estimate: 1h
>
> Here's the code I'm donating to the Shiro project to use aspectj as the aop kit to perform authorization of method invocation based on the defined Shiro's annotation.
> The zip files contains the following:
>  - java/src: source files to adapt an aspectj joint point to a shiro method invocation
>  - java/test: unit test classes
> - conf: configuration file for the test cases
> To compile and run properly, the code requires the following:
>  - junit jar
>  - shiro jar
>  - aspectj jars (I used AJDT within eclipse, so everything was integrated)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.