Where did the attachments go? another case of a good document ad input completely lost in discussions? As a matter of fact I have Alex's document from this discussion with me or in my case I can actually look in builder to figure it out...@Karen Weir will the original discussions albeit converted comes with its artifacts at some time? or is it similar to the original communities getting retired and all that content was lost that kind of situation or is the algorithm something like the discussion is very old(it happened in 2000) so lets axe things that are old
Thanks for notifying me @Appu_Nair1 , I'll bring this to the developers to review.
Karen
Where did the attachments go? another case of a good document and input completely lost in discussions? For what it is worth Alex Kowalenko's post was basically what each BitMap was. All programming languages know how to check for Bits. Here s a simple report in SQLserver that shows how to print out a value Oracle has the same things it is called BitAnd and since you know the Bits to check you can find it using Oracle as well. I hope Programmers reading this probably needs to understand that is the reason why we do this is because OT in Oscript has defined $PCreate as 4 which is 2^2 Alex's Document was a treatise on itself so I cannot quite match that.
2^2
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',
In Oscript one would see $PSee as 2
Apparently @Karen Weir posted a message saying that some discussions got the attachments back I do not see this Discussion with the original attachments so in case it helps a future using some of the ways
I leave this for any budding Oscripters out there...It is asimple script that pulls the values Dynamic unMask=PermMaskToAssoc(241795) scheduler.debugbreak()
function Assoc PermMaskToAssoc(\ Integer permissions ) Assoc permAssoc permAssoc.See = ( ( permissions & $PSee ) == $PSee ) permAssoc.SeeContent = ( ( permissions & $PSeeContents ) == $PSeeContents ) permAssoc.Modify = ( ( permissions & $PModify ) == $PModify ) permAssoc.EditAttr = ( ( permissions & $PEditAtts ) == $PEditAtts ) permAssoc.EditPerm = ( ( permissions & $PEditPerms ) == $PEditPerms ) permAssoc.DeleteVer = ( ( permissions & $PDeleteVersions ) == $PDeleteVersions ) permAssoc.Delete = ( ( permissions & $PDelete ) == $PDelete ) permAssoc.Reserve = ( ( permissions & $PCheckout ) == $PCheckout ) permAssoc.Create = ( ( permissions & $PCreateNode ) == $PCreateNode ) permAssoc.AddMajorVersion = ( ( permissions & $PAddMajorVersion ) == $PAddMajorVersion ) return( permAssoc ) end
if you go to LLIAPI Ospace and look at the StartUp script you will find how OT Programmers have done the Enumerations. or search for this String in Builder $LLIAPI.NodeUtil.fPermToString
Would this in SQL Server do as well?
case when CAST((dta.permissions & 2) as varchar) = 0 then 'None' else '' end +
case when CAST((dta.permissions & 2) as varchar) = 2 then 'See | ' else '' end +
case when CAST((dta.permissions & 36865) as varchar) = 36865 then 'See Contents | ' else '' end +
case when CAST((dta.permissions & 65536) as varchar) = 65536 then 'Modify | ' else '' end +
case when CAST((dta.permissions & 16) as varchar) = 16 then 'Edit Perms | ' else '' end +
case when CAST((dta.permissions & 131072) as varchar) = 131072 then 'Edit Attr | ' else '' end +
case when CAST((dta.permissions & 4) as varchar) = 4 then 'Add Items | ' else '' end +
case when CAST((dta.permissions & 16384) as varchar) = 16384 then 'Delete Vers | ' else '' end +
case when CAST((dta.permissions & 8) as varchar) = 8 then 'Delete | ' else '' end +
case when CAST((dta.permissions & 8192) as varchar) = 8192 then 'Reserve' else '' end ACL10