Exforsys

Online Training

3-Tier

This is a discussion on 3-Tier within the Software Patterns forums, part of the Testing category; I'm working on what I presume to be a standard n-tier configuration, but after searching the web and ...


Go Back   Exforsys > Testing > Software Patterns

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-17-2005, 06:27 AM
Fred
Guest
 
Posts: n/a
3-Tier

I'm working on what I presume to be a standard n-tier configuration, but
after searching the web and Usenet I still can't figure out a good way
to implement it.
The middle tier (henceforth "the server") handles persistence for the
business objects, and can do a few other things with them. 90% of the
presentation layer is standard insert/view/edit/delete. What the clients
are allowed to do is limited depending upon their credentials (i.e. the
operator and operator's group).
I'm doing this in C#/.NET; compatibility with other platforms is not an
issue (that's final as far as the boss/client are concerned, please
don't try to enlighten me). I'm assuming that the best way for the
presentation tier to access the business objects is marshal-by-reference
from the server, but I'm happy to be corrected if wrong. How should
security be implemented? Each object has to somehow know which operator
is accessing it. How can this be done in a way which prevents clients
from masquerading? How should the creation of new objects be handled?
I'm trying not to clutter the business classes with excessive
implementation-specific security code. In my preliminary implementation,
each property evaluates
bool f(Object subject, FieldInfo aspect, Operator op, Operation
operation)
passing a reference to the relevant object and field, the operator, and
insert/edit/view/append/delete. I'm still at the stage where this could
be easily changes for a better implementation.
I would be very grateful for any thoughts on the subject.



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-20-2005, 08:00 PM
Jason
Guest
 
Posts: n/a
Re: 3-Tier

Hi Fred,
One option you have is COM+ (AKA Component Services). If your componenent
is registered with COM+, you can assign role base security to certain
components or even to certain methods of components. A search for serviced
component should get you some good info...

Jason


"Fred" <no@spam.com> wrote in message
news:csg3ub$7ot$1@news.freedom2surf.net...
> I'm working on what I presume to be a standard n-tier configuration, but
> after searching the web and Usenet I still can't figure out a good way
> to implement it.
> The middle tier (henceforth "the server") handles persistence for the
> business objects, and can do a few other things with them. 90% of the
> presentation layer is standard insert/view/edit/delete. What the clients
> are allowed to do is limited depending upon their credentials (i.e. the
> operator and operator's group).
> I'm doing this in C#/.NET; compatibility with other platforms is not an
> issue (that's final as far as the boss/client are concerned, please
> don't try to enlighten me). I'm assuming that the best way for the
> presentation tier to access the business objects is marshal-by-reference
> from the server, but I'm happy to be corrected if wrong. How should
> security be implemented? Each object has to somehow know which operator
> is accessing it. How can this be done in a way which prevents clients
> from masquerading? How should the creation of new objects be handled?
> I'm trying not to clutter the business classes with excessive
> implementation-specific security code. In my preliminary implementation,
> each property evaluates
> bool f(Object subject, FieldInfo aspect, Operator op, Operation
> operation)
> passing a reference to the relevant object and field, the operator, and
> insert/edit/view/append/delete. I'm still at the stage where this could
> be easily changes for a better implementation.
> I would be very grateful for any thoughts on the subject.
>
>
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-24-2005, 12:47 AM
IPGrunt
Guest
 
Posts: n/a
Re: 3-Tier

Fred <no@spam.com> confessed in news:csg3ub$7ot$1@news.freedom2surf.net:

> I'm working on what I presume to be a standard n-tier configuration, but
> after searching the web and Usenet I still can't figure out a good way
> to implement it.
> The middle tier (henceforth "the server") handles persistence for the
> business objects, and can do a few other things with them. 90% of the
> presentation layer is standard insert/view/edit/delete. What the clients
> are allowed to do is limited depending upon their credentials (i.e. the
> operator and operator's group).
> I'm doing this in C#/.NET; compatibility with other platforms is not an
> issue (that's final as far as the boss/client are concerned, please
> don't try to enlighten me). I'm assuming that the best way for the
> presentation tier to access the business objects is marshal-by-reference
> from the server, but I'm happy to be corrected if wrong. How should
> security be implemented? Each object has to somehow know which operator
> is accessing it. How can this be done in a way which prevents clients
> from masquerading? How should the creation of new objects be handled?
> I'm trying not to clutter the business classes with excessive
> implementation-specific security code. In my preliminary implementation,
> each property evaluates
> bool f(Object subject, FieldInfo aspect, Operator op, Operation
> operation)
> passing a reference to the relevant object and field, the operator, and
> insert/edit/view/append/delete. I'm still at the stage where this could
> be easily changes for a better implementation.
> I would be very grateful for any thoughts on the subject.
>
>
>


Fred,

A simple suggestion.

Have you looked at the Patterns & Practices website?

http://www.microsoft.com/resources/p...s/default.mspx

Lots of architectural info. There is an excellent book on ASP.NET security
that includes advice on implementing distrubted apps, etc.

regards,

-- ipgrunt

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-24-2005, 07:50 AM
Fred
Guest
 
Posts: n/a
Re: 3-Tier

IPGrunt wrote:
> Fred,
>
> A simple suggestion.
>
> Have you looked at the Patterns & Practices website?
>
> http://www.microsoft.com/resources/p...s/default.mspx
>
> Lots of architectural info. There is an excellent book on ASP.NET security
> that includes advice on implementing distrubted apps, etc.


Good site - tx
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 11:15 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.