BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

User permissions...

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OO design
View previous topic :: View next topic  
Author Message
Arda Han
Guest





PostPosted: Mon Oct 13, 2003 8:10 am    Post subject: User permissions... Reply with quote



Hello Everybody,

How can I control User permissions for modules? Some user view data but not
adding new record. What is best method for controlling user permissions?

Best wishes


Back to top
Joanna Carter
Guest





PostPosted: Mon Oct 13, 2003 8:27 am    Post subject: Re: User permissions... Reply with quote



Arda Han wrote:

Quote:
How can I control User permissions for modules? Some user view data but
not adding new record. What is best method for controlling user
permissions?

Create a User Class and a Permission Class.

Permission has a simple record like structure of User | Module

Load up a Permission List from your persistence.mechanism, passing the User
as a criterion

Create a Module Factory that will ask the Permission List for a Module for a
User.

If the Factory returns nil then the User does not have permission therefore
no Module was returned.

Calling code call the Module Factory and should check for nil; if not nil
then you have a valid Module.

Joanna

--
Joanna Carter
Consultant Software Engineer
TeamBUG support for UK-BUG
TeamMM support for ModelMaker



Back to top
Arda Han
Guest





PostPosted: Mon Oct 13, 2003 10:47 am    Post subject: Re: User permissions... Reply with quote



Joanna are you have an example for this? And what is your recommend for
creating MDI consepted applications via package. I use MDI applications and
create modules like package? Is it true way?

Best wishes

"Joanna Carter" <joannac (AT) btinternet (DOT) com>, haber iletisinde şunları
yazdı:3f8a6293 (AT) newsgroups (DOT) borland.com...
Quote:
Arda Han wrote:

| How can I control User permissions for modules? Some user view data but
| not adding new record. What is best method for controlling user
| permissions?

Create a User Class and a Permission Class.

Permission has a simple record like structure of User | Module

Load up a Permission List from your persistence.mechanism, passing the
User
as a criterion

Create a Module Factory that will ask the Permission List for a Module for
a
User.

If the Factory returns nil then the User does not have permission
therefore
no Module was returned.

Calling code call the Module Factory and should check for nil; if not nil
then you have a valid Module.

Joanna

--
Joanna Carter
Consultant Software Engineer
TeamBUG support for UK-BUG
TeamMM support for ModelMaker





Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OO design All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.