Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DTreeACL Table - Permissions Column

Status
Not open for further replies.

MRefaii

Programmer
Mar 26, 2020
1
EG
How to decode or to crack the bit masking in order to identify permissions if it see, see contents and etc from DTreeACL table using sql server or any other programming language. Thank you
 
In SQl server you can do BitWise manipulation like this . In Oracle there is a function called BitAnd.


Code:
/* quick script that can look at a template and a spawned child for See,See Contents*/

/*ACLType=1 Owner,2 Group,3 PA,4 S,0 Below the ACL*/
/*/OTCS/llisapi.dll?func=doc.permHead&objID=2118877&nextURL=%2FOTCS%2Fllisapi%2Edll%3Ffunc%3Dll%26objId%3D2118877%26objAction%3Dbrowse%26viewType%3D1*/
/*/OTCS/llisapi.dll?func=doc.permHead&objID=20462573&nextURL=%2FOTCS%2Fllisapi%2Edll%3Ffunc%3Dll%26objId%3D2118877%26objAction%3Dbrowse%26viewType%3D1*/

select 
FLOOR(DTreeACL.Permissions/POWER(2,1))%2 'SEE',
FLOOR(DTreeACL.Permissions/POWER(2,15))%2 'SEE CONTENTS',
FLOOR(DTreeACL.Permissions/POWER(2,16))%2 'Modify',
FLOOR(DTreeACL.Permissions/POWER(2,17))%2 'Edit Attributes',
FLOOR(DTreeACL.Permissions/POWER(2,2))%2 'Add Items',
FLOOR(DTreeACL.Permissions/POWER(2,13))%2 'Reserve',
FLOOR(DTreeACL.Permissions/POWER(2,14))%2 'Delete Versions',
FLOOR(DTreeACL.Permissions/POWER(2,3))%2 'Delete',
* from DTreeACL where DataID in (20462573,2118877) /*573 is the template 877 is a object spawned from it*/
and ACLType=2 /* we are comparing Group Position*/

Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
Certified OT Developer,Livelink ECM Champion 2008,Livelink ECM Champion 2010
 
The schema companion guide ( will give you the basic ones, although many custom modules - including those from OT - may add extra ones. You can also get the full schema, but that requires and NDA so speak with you OT account person.

Greg Griffiths
Livelink Certified Developer & ECM Global Star Champion 2005 & 2006
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top