![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Database Root Access Rights Topic Summary: Created On: 6-Jul-2006 16:52 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: You need to get the folder handle of the DB root, like this: Folder fRoot = folder("/"). Once you got a handle on it you can look at the AccessRecords like this: AccessRec ar; for ar in fRoot do. - Louie | |
![]() |
|
Does anyone know the function to return access rights to the database root? When you right click the Database root and choose properties and then the access tab, I need to get all the information in that tab.
I've searched this forum and Telelogic's documentation and have come up fruitless. One workaround I have is to make a new Project that inherits from parent, but I would strongly prefer not to do this. Anyone have any ideas? ------------------------- Kevin Murphy http://www.baselinesinc.com The Requirements Management Experts |
|
![]() |
|
![]() |
|
You need to get the folder handle of the DB root, like this: Folder fRoot = folder("/"). Once you got a handle on it you can look at the AccessRecords like this: AccessRec ar; for ar in fRoot do.
- Louie |
|
![]() |
|
![]() |
|
It's the same as getting rights for any other folder:
AccessRec get({Object o|Module m|Project p| Folder f|Item i|View v}, [AttrType at,] string user, string &message) One thing to note: if the user doesn't have an entry in that table, get() returns a null--which means that the default access rights are in force for them. You can check the default by putting a null string in for the username. Also interesting is that DXL will tell you about access rights that you can't see from the DOORS explorer. If I right click on the root entry, "Properties" is grayed out, but the attached code works fine for any user. Hope it helps! Chris |
|
![]() |
|
![]() |
|
Louie,
So obvious! Thank you very much. Kevin ------------------------- Kevin Murphy http://www.baselinesinc.com The Requirements Management Experts |
|
![]() |
|
![]() |
|
Chris,
Thank you for the detailed response! Kevin ------------------------- Kevin Murphy http://www.baselinesinc.com The Requirements Management Experts |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Database Root Access Rights
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.