Results 1 to 4 of 4

Thread: Which acegi files are affected by AndroMDA/Magicdraw?

  1. #1
    Join Date
    Jan 2008
    Posts
    3

    Default Which acegi files are affected by AndroMDA/Magicdraw?

    Within an university project me and my classmates have been assigned to implement the functionality of authentication against LDAP. The application uses Spring with Acegi and is build by Maven. We model in MagicDraw 9.5 (14.0 available).

    Since we are familiar with Spring and Acegi we wonder if we just can change the xml-files in the WEB-INF folder or any java-files. We worry that our changes could be overwritten by the next mvn install.

    So how can we see, which acegi related files are affected by MagicDraw? What do we have to do in MagicDraw and what directly in the mentioned files?

    Thanks in advance

  2. #2
    Join Date
    Jul 2005
    Location
    Geneva (Switzerland)
    Posts
    304

    Default

    That is definitely an AndroMDA related question. You have quite a few wonderfully smart and available people on the AndroMDA forums.

    I havent used AndroMDA for a while, but :

    AndroMDA should never overwrite an existing file outside of your target directory. So no worry on that one.

    Then, it depends on what you want to change. AndroMDA has a clever architecture, where it generates interfaces and base classes that you shouldnt change (if you want to modify them, you should change the model) and implementation classes, that you should modify to implement whatever you need.

    On the XML side, most templates provide "merge-points", where you can inject whatever you need in the generation.

    For the ACEGI stuff, it depends which cartridge you are using, how your files are generated, ...

    You should send your question on the AndroMDA forums with a more complete description of what you are trying to do (which cartridge you are using, which file you try to modify, what you try to modify, ...).

    Good luck !

  3. #3
    Join Date
    Jan 2008
    Posts
    3

    Default

    gehel, thank you for your answer.

    Quote Originally Posted by gehel View Post
    That is definitely an AndroMDA related question. You have quite a few wonderfully smart and available people on the AndroMDA forums.
    We posted our question on the AndroMDA forums, too; hope that it's ok.

    Quote Originally Posted by gehel View Post
    AndroMDA should never overwrite an existing file outside of your target directory. So no worry on that one.
    So as our security.xml where several filters are defined is NOT in some target-directory may be manually edited by us?

    In more detail, currently several filters are defined in that xml-file: httpSessionContextIntegrationFilter, authenticationProcessingFilter, contextHolderAwareRequestFilter, rememberMeProcessingFilter, anonymousProcessingFilter, formExceptionTranslationFilter, filterInvocationInterceptor

    We now want to add LDAP-authentication. As we know from the acegi literatur we can by adding a LDAP-provider to the authenticationManager.

    May we just edit the xml-file or do we have to change sth in MagicDraw/AndroMDA?

    Quote Originally Posted by gehel View Post
    For the ACEGI stuff, it depends which cartridge you are using, how your files are generated, ...
    We use the Spring catridge.

    Sorry, if I did not understand you, but we are very new to that issues and were thrown in at the deep end ;-)

  4. #4
    Join Date
    Jul 2005
    Location
    Geneva (Switzerland)
    Posts
    304

    Default

    You should probably take sometime to get used to AndroMDA. AndroMDA can be quite powerful, but it does take some time getting used to it.

    The changes yon mentioned are most probably ok. Have a try, change the files, run "mvn install" and see if your changes are still there.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •