DirHumanParticipant.castPermissionFrom(permission)

Returns the permissions' integer value represented by a string composed by multiple permissions (characters).

The permission String argument is an unordered sequence of permission characters. If a character does not represent a possible permission, then the method returns -1.

See the getPermissionsValue() method for more information.

Example

 // Retrieve Permission Values
display "Get Permissions (X - returns 1): "
        + myPart1.getPermissionValue(permission : "X")

display "Get Permissions (G - returns 32) : "
        + myPart1.getPermissionValue(permission : "G")

display "Get Permissions (A - returns 8) : "
        + myPart1.getPermissionValue(permission : "A")

display "Cast Permission (XGA - returns 41): "
        + myPart1.castPermissionFrom(permission : "XGA")
      

Arguments:

Name Type Description Mode
permission String the string representing a Role permission or a list of them. in