| View previous topic :: View next topic |
| Author |
Message |
Arda Han Guest
|
Posted: Mon Oct 13, 2003 8:10 am Post subject: User permissions... |
|
|
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
|
Posted: Mon Oct 13, 2003 8:27 am Post subject: Re: User permissions... |
|
|
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
|
Posted: Mon Oct 13, 2003 10:47 am Post subject: Re: User permissions... |
|
|
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 |
|
 |
|