How to Using NetSqlAzMan with CompositeUI SmartPart

Dec 30, 2009 at 5:37 PM

my office already have an application using SmartClientSoftwareFactory

And in building a menu tree using CompositeUI.WinForms.WindowSmartPartInfo.

i have to embed security on that application.

I decide to validate security on each menu in that application (enable / disable it)

I decide to use and get NetSqlAzMan.Cache.StorageCache from the server to the client, so i can invalidate on the client side

any clue to doing this? Especially on the client side with CompositeUI.WinForms.WindowSmartPartInfo 

Is it using AOP or i have to build procedure to invalidate each smartpartinfo?

or something else?

 

thanks before

Jan 5, 2010 at 4:53 PM

Hi,

I don0t know SmartClientSoftwareFactory but NetSqlAzMan support AOP.

Please check Tutorial 6: “NetSqlAzMan Aspect Oriented Programming (Check permissions through .NET attributes)” in the pdf Guide.

Regards,

Andrea.

__________________________________
Andrea Ferendeles
NetSqlAzMan Project Coordinator  
E-mail aferende@hotmail.com Web http://netsqlazman.codeplex.com

Feb 14, 2010 at 8:12 AM

thx, i've success implement AOP on my application. it use NetSqlAzManAuthorizationContext class.

Btw My app is a client server application and

For some reason it's better for me to not direct access to database on client sidde, i'm encapsulate this class on server.

But NetSqlAzManAuthorizationContext class is not serializable, StorageCache is serializable, but do not have function to CheckSecurity() like NetSqlAzManAuthorizationContext class.

So for know i'm using StorageCache and validate manually with logical code

Would NetSqlAzManAuthorizationContext class serializable on next version? or StorageCache have function like CheckSecurity so can use the AOP? or there's another suggestion?

 

thx

 

Feb 15, 2010 at 6:57 AM

Hi,

you can generate StorageCache on server-side and serialize to the client.

Then assign StorageCache to the NetSqlAzManAuthorizationContext.StorageCache property and use NetSqlAzManAuthorizationContext.CheckSecurity() method as you know.

Another way could be using the WCF Cache Service. Have you tried it ?

Regards,

Andrea.

__________________________________
Andrea Ferendeles
NetSqlAzMan Project Coordinator  
E-mail aferende@hotmail.com Web http://netsqlazman.codeplex.com

Feb 15, 2010 at 9:24 AM

hi

i can't construct NetSqlAzManAuthorizationContext (must provide with the string connection, store name) i don't provide that parameter on client, so i can't go to next step

i'm not try WCF yet, maybe on my next application

 

thx

 

 

Feb 15, 2010 at 10:04 AM

Uhmmm.

I think that the WCF Cache Service is the best way to do this.


Regards,

Andrea.

__________________________________
Andrea Ferendeles
NetSqlAzMan Project Coordinator  
E-mail aferende@hotmail.com Web http://netsqlazman.codeplex.com