(permittedGroup != null) ? true : false, fileMetadata, inputStream);
isPublic(permittedGroup), fileMetadata, inputStream);
    public void run(Integer itemId, InputStream inputStream, String originalFilename,            String displayName, FileItemPermittedGroupType fileItemPermittedGroupType)            throws FenixServiceException, ExcepcaoPersistencia, DomainException {        final Item item = rootDomainObject.readItemByOID(itemId);        final ExecutionCourse executionCourse = item.getSection().getSite().getExecutionCourse();        final Group permittedGroup = createPermittedGroup(fileItemPermittedGroupType, executionCourse);        final FilePath filePath = getFilePath(item);        final FileMetadata fileMetadata = new FileMetadata(displayName, item.getSection().getSite()                .getExecutionCourse().getNome());        final IFileManager fileManager = FileManagerFactory.getFileManager();        final FileDescriptor fileDescriptor = fileManager.saveFile(filePath, originalFilename,                (permittedGroup != null) ? true : false, fileMetadata, inputStream);        final FileItem fileItem = new FileItem(fileDescriptor.getFilename(), displayName, fileDescriptor                .getMimeType(), fileDescriptor.getChecksum(), fileDescriptor.getChecksumAlgorithm(),                fileDescriptor.getSize(), fileDescriptor.getUniqueId(), permittedGroup,                fileItemPermittedGroupType);        item.addFileItems(fileItem);    }