private Set<String> getDocCreatePermissionSet(final String perms) {
        if (NullSafe.isBlankString(perms)) {
            return Collections.emptySet();
        }

        final String[] parts = perms.split(",");
        final Set<String> types = new HashSet<>(parts.length);
        for (final String part : parts) {
            final String trimmed = part.trim();
            if (!trimmed.isEmpty()) {
                final int typeId = Integer.parseInt(trimmed);
                final String type = docTypeIdDao.get(typeId);
                if (type != null) {
                    types.add(type);
                }
            }
        }
        return types;
    }
Get permissions for users on folders plus any permissions that they inherit from their group membership.
Also join to the document create permission table to see what document create permissions users have explicitly
or inherit from their group membership.

@param request The Fetch request.
@return A result page of user permissions.
stroom-security/stroom-security-impl-db/src/main/java/stroom/security/impl/db/DocumentPermissionDaoImpl.java