PentahoJcrConstants pentahoJcrConstants = new PentahoJcrConstants( session );
String absOrigParentFolderPath =
deleteHelper.getOriginalParentFolderPath( session, pentahoJcrConstants, fileId );
Serializable origParentFolderId = null;
RepositoryFile file = getFileById( fileId );
RepositoryFileAcl acl = aclDao.getAcl( fileId );
if ( !accessVoterManager.hasAccess( file, RepositoryFilePermission.WRITE, acl, PentahoSessionHolder
.getSession() ) ) {
return null;
}
// original parent folder path may no longer exist!