code: public static List<String> getNativePermissions(int permissionBits, boolean denied) {
  
          List<String> result = new ArrayList<String>();
          String prefix = denied ? "opencms:deny-" : "opencms:";
          if ((permissionBits & CmsPermissionSet.PERMISSION_READ) != 0) {
              result.add(prefix + "read");
          }
          if ((permissionBits & CmsPermissionSet.PERMISSION_WRITE) != 0) {
              result.add(prefix + "write");
          }
  
          if ((permissionBits & CmsPermissionSet.PERMISSION_VIEW) != 0) {
              result.add(prefix + "view");
          }
  
          if ((permissionBits & CmsPermissionSet.PERMISSION_CONTROL) != 0) {
              result.add(prefix + "control");
          }
  
          if ((permissionBits & CmsPermissionSet.PERMISSION_DIRECT_PUBLISH) != 0) {
              result.add(prefix + "publish");
          }
          return result;
      }
docs: Converts an OpenCms access control bitset to a list of CMIS permissions representing native OpenCms permissions.<p>
  
  @param permissionBits the permission bits
  @param denied if the permission bitset refers to a list of denied rather than allowed permissions
  
  @return the list of native permissions