code: public static List<String> getCmisPermissions(CmsAccessControlEntry ace) {
  
          int permissionBits = ace.getPermissions().getPermissions();
          List<String> result = new ArrayList<String>();
          if (0 != (permissionBits & CmsPermissionSet.PERMISSION_READ)) {
              result.add(A_CmsCmisRepository.CMIS_READ);
          }
          if (0 != (permissionBits & CmsPermissionSet.PERMISSION_WRITE)) {
              result.add(A_CmsCmisRepository.CMIS_WRITE);
          }
          int all = CmsPermissionSet.PERMISSION_WRITE
              | CmsPermissionSet.PERMISSION_READ
              | CmsPermissionSet.PERMISSION_CONTROL
              | CmsPermissionSet.PERMISSION_DIRECT_PUBLISH;
          if ((permissionBits & all) == all) {
              result.add(A_CmsCmisRepository.CMIS_ALL);
          }
          return result;
      }
docs: Converts an OpenCms ACE to a list of basic CMIS permissions.<p>
  
  @param ace the access control entry
  
  @return the list of permissions