/** * create an entry in the export manifest for this file or folder * * @param repositoryFile * @throws ExportException */ private void addToManifest(RepositoryFile repositoryFile) throws ExportException { if (this.withManifest) { // add this entity to the manifest RepositoryFileAcl fileAcl = unifiedRepository.getAcl(repositoryFile.getId()); try { exportManifest.add(repositoryFile, fileAcl); } catch (ExportManifestFormatException e) { throw new ExportException(e.getMessage()); } } }
public RepositoryFileAclDto getAcl(String fileId) { return repositoryFileAclAdapter.marshal(repo.getAcl(fileId)); }