How to make, tha adapter wiil be accessible only via manager classes for the client?

Posts   
 
    
Gabor
User
Posts: 97
Joined: 29-Jan-2005
# Posted on: 03-Feb-2005 06:54:26   

Hi,

I want to build an BL, in adapter scenario.

I need the BL functionality would be accessible only via manager classes.

How can i achieve, that the adapter be not instantiable from the client side?

Thanks

Gabor

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39752
Joined: 17-Aug-2003
# Posted on: 03-Feb-2005 08:57:56   

You use the database generic project in your gui tier and bl tier you use the database specific project in your bl tier

this means that the gui can't create a dataaccessadapter object, it has to call BL methods. So, the GUI can create new entity objects, fill them with data and then call for example CustomerManager.AddCustomer(entity); which is part of teh BL tier. In that method the entity is then checked and saved, making it impossible for the gui to do things with the database unless the BL tier's methods are called.

Frans Bouma | Lead developer LLBLGen Pro
Gabor
User
Posts: 97
Joined: 29-Jan-2005
# Posted on: 03-Feb-2005 09:28:43   

Oh yes. Thanks. Sometimes the most obvious things have to ask disappointed

Gabor
User
Posts: 97
Joined: 29-Jan-2005
# Posted on: 03-Feb-2005 10:09:57   

Frans,

Ok, now the UI gets only my BL classes.

Now how can i narrow the entities functionality too, ie. i don't want, the clients get access to the GetRelationInf_ RelattedEntities_ and similar entity's functionality, because on don't need them. I will manage all the functionality in the BBL managers.

Thanks, and apologize for the questions, that are so obvious for more experienced peoples. confused

Gabor

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39752
Joined: 17-Aug-2003
# Posted on: 03-Feb-2005 10:58:02   

Gabor wrote:

Frans,

Ok, now the UI gets only my BL classes.

Now how can i narrow the entities functionality too, ie. i don't want, the clients get access to the GetRelationInf_ RelattedEntities_ and similar entity's functionality, because on don't need them. I will manage all the functionality in the BBL managers.

These methods produce filters, not entities. You need these in your code.

Frans Bouma | Lead developer LLBLGen Pro