Tutorial - security rules

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Tutorial - security rules

Alex Baran
Hello All,

I'm new to AIDA and I have latest version from Cincom public sore repository.
Just tried to write my first Hello World app and found that a
tutorial(http://www.aidaweb.si/tutorial.html) don't mention existence
of security rules.
So my App stumbled at login dialog. Code bellow helped at solving the
issue by allowing HelloWorldApp>>viewMain for all users.

| site rules |
site := AIDASite named: 'aidademo'.
rules := Dictionary new.
rules
        at: site securityManager allUsersGroup
        put: (IdentitySet with: #viewMain).

site securityManager accessByObject
        at: #HelloWorldApp
        put: rules

Apologize, if I missed some points, it's my first time with AIDA.


Best regards,
Alex Baran
_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida
Reply | Threaded
Open this post in threaded view
|

Re: Tutorial - security rules

Alex Baran
Sorry, my previous message is not correct.
I found that security rules managed through web interface, and this is
mentioned in the tutorial.
My apologies.

Alex Baran wrote:

> Hello All,
>
> I'm new to AIDA and I have latest version from Cincom public sore repository.
> Just tried to write my first Hello World app and found that a
> tutorial(http://www.aidaweb.si/tutorial.html) don't mention existence
> of security rules.
> So my App stumbled at login dialog. Code bellow helped at solving the
> issue by allowing HelloWorldApp>>viewMain for all users.
>
> | site rules |
> site := AIDASite named: 'aidademo'.
> rules := Dictionary new.
> rules
> at: site securityManager allUsersGroup
> put: (IdentitySet with: #viewMain).
>
> site securityManager accessByObject
> at: #HelloWorldApp
> put: rules
>
> Apologize, if I missed some points, it's my first time with AIDA.
>
>
> Best regards,
> Alex Baran
> _______________________________________________
> Aida mailing list
> [hidden email]
> http://lists.aidaweb.si/mailman/listinfo/aida
_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida
Reply | Threaded
Open this post in threaded view
|

Re: Tutorial - security rules

Janko Mivšek
Hello Alex, welcome to the list!

Alex Baran pravi:

> Sorry, my previous message is not correct.
> I found that security rules managed through web interface, and this is
> mentioned in the tutorial.
> My apologies.

I just wanted to mention the same :) Aida has access rights implemented
more or less on the same way you wanted to implement it.

Have a lot of nice moments with Aida!
Janko



> Alex Baran wrote:
>> Hello All,
>>
>> I'm new to AIDA and I have latest version from Cincom public sore repository.
>> Just tried to write my first Hello World app and found that a
>> tutorial(http://www.aidaweb.si/tutorial.html) don't mention existence
>> of security rules.
>> So my App stumbled at login dialog. Code bellow helped at solving the
>> issue by allowing HelloWorldApp>>viewMain for all users.
>>
>> | site rules |
>> site := AIDASite named: 'aidademo'.
>> rules := Dictionary new.
>> rules
>> at: site securityManager allUsersGroup
>> put: (IdentitySet with: #viewMain).
>>
>> site securityManager accessByObject
>> at: #HelloWorldApp
>> put: rules
>>
>> Apologize, if I missed some points, it's my first time with AIDA.
>>
>>
>> Best regards,
>> Alex Baran


--
Janko Mivšek
AIDA/Web
Smalltalk Web Application Server
http://www.aidaweb.si
_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida
Reply | Threaded
Open this post in threaded view
|

Tutorial

Francisco A. Lizarralde-2
Hi all,

I'm trying the tutorial example and when I add a new address I want to
return to the AddressBook page, not te Address page.

I implemented it, this form:

actionEdit
       
    self redirectTo: (self observee parent) view: #main

instead of:

actionEdit
       
    self redirectToView: #main

but I not sure, if this is the right way.

Thanks in advance,

Francisco

_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida
Reply | Threaded
Open this post in threaded view
|

Re: Tutorial

Janko Mivšek
Hi Francisko,

Francisco A. Lizarralde pravi:

> I'm trying the tutorial example and when I add a new address I want to
> return to the AddressBook page, not te Address page.
>
> I implemented it, this form:
>
> actionEdit
>
>     self redirectTo: (self observee parent) view: #main
>
> instead of:
>
> actionEdit
>
>     self redirectToView: #main
>
> but I not sure, if this is the right way.

It is a perfectly right way. When you redirecting to the view of the
same domain object, a shorter method with only view argument is used.
But when you need to jump to another object, the longer two argument one
is needed.

Best regards
Janko

--
Janko Mivšek
AIDA/Web
Smalltalk Web Application Server
http://www.aidaweb.si
_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida
Reply | Threaded
Open this post in threaded view
|

Re: Tutorial

Herbert König
In reply to this post by Francisco A. Lizarralde-2
Hi Francisco,


FAL> actionEdit
       
FAL>     self redirectTo: (self observee parent) view: #main

I implemented it the same and it works well.

In viewMain I have:
e addLinkTo: self observee parent text: 'Back to Address Book'.

So the rule is if you have a reference to any object in the model you
can directly jump to any view of that objects app.

Sloppily spoken.

Cheers,

Herbert                            mailto:[hidden email]

_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida
Reply | Threaded
Open this post in threaded view
|

Re: Tutorial

Francisco A. Lizarralde-2
In reply to this post by Janko Mivšek
Beautiful. Aida Web really rocks !!!

Thank you, Janko.

Best regards,

Francisco

El lun, 02-03-2009 a las 21:28 +0100, Janko Mivšek escribió:

> Hi Francisko,
>
> Francisco A. Lizarralde pravi:
>
> > I'm trying the tutorial example and when I add a new address I want to
> > return to the AddressBook page, not te Address page.
> >
> > I implemented it, this form:
> >
> > actionEdit
> >
> >     self redirectTo: (self observee parent) view: #main
> >
> > instead of:
> >
> > actionEdit
> >
> >     self redirectToView: #main
> >
> > but I not sure, if this is the right way.
>
> It is a perfectly right way. When you redirecting to the view of the
> same domain object, a shorter method with only view argument is used.
> But when you need to jump to another object, the longer two argument one
> is needed.
>
> Best regards
> Janko
>

_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida
Reply | Threaded
Open this post in threaded view
|

Re: Tutorial

Francisco A. Lizarralde-2
In reply to this post by Herbert König
I'm new to Aida Web, but when I learn more, more I like it.

Thank you Herbert for your comment.

Best regards,

Francisco

El lun, 02-03-2009 a las 21:54 +0100, Herbert König escribió:

> Hi Francisco,
>
>
> FAL> actionEdit
>
> FAL>     self redirectTo: (self observee parent) view: #main
>
> I implemented it the same and it works well.
>
> In viewMain I have:
> e addLinkTo: self observee parent text: 'Back to Address Book'.
>
> So the rule is if you have a reference to any object in the model you
> can directly jump to any view of that objects app.
>
> Sloppily spoken.
>
> Cheers,
>
> Herbert                            mailto:[hidden email]
>
> _______________________________________________
> Aida mailing list
> [hidden email]
> http://lists.aidaweb.si/mailman/listinfo/aida

_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida
Reply | Threaded
Open this post in threaded view
|

Re: Tutorial - security rules

Alex Baran
In reply to this post by Janko Mivšek
Janko, thank you for invitation!

2009/3/2 Janko Mivšek <[hidden email]>:

> Hello Alex, welcome to the list!
>
> Alex Baran pravi:
>
>> Sorry, my previous message is not correct.
>> I found that security rules managed through web interface, and this is
>> mentioned in the tutorial.
>> My apologies.
>
> I just wanted to mention the same :) Aida has access rights implemented
> more or less on the same way you wanted to implement it.

It was my fault, I was captured by Swazoo+Aida readable sources, that
leaded me out of the beaten track :)  Nice work!

>
> Have a lot of nice moments with Aida!

Already had, waiting for more :)


Alex Baran

> Janko
>
>
>
>> Alex Baran wrote:
>>> Hello All,
>>>
>>> I'm new to AIDA and I have latest version from Cincom public sore repository.
>>> Just tried to write my first Hello World app and found that a
>>> tutorial(http://www.aidaweb.si/tutorial.html) don't mention existence
>>> of security rules.
>>> So my App stumbled at login dialog. Code bellow helped at solving the
>>> issue by allowing HelloWorldApp>>viewMain for all users.
>>>
>>> | site rules |
>>> site := AIDASite named: 'aidademo'.
>>> rules := Dictionary new.
>>> rules
>>>      at: site securityManager allUsersGroup
>>>      put: (IdentitySet with: #viewMain).
>>>
>>> site securityManager accessByObject
>>>      at: #HelloWorldApp
>>>      put: rules
>>>
>>> Apologize, if I missed some points, it's my first time with AIDA.
>>>
>>>
>>> Best regards,
>>> Alex Baran
>
>
> --
> Janko Mivšek
> AIDA/Web
> Smalltalk Web Application Server
> http://www.aidaweb.si
> _______________________________________________
> Aida mailing list
> [hidden email]
> http://lists.aidaweb.si/mailman/listinfo/aida
>
_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida