publisher.publishDefaultAcls( rootFile );
checkAcls( rootFile );
}
public static RepositoryFile getPopulatedSolution() {
RepositoryFile root = new RepositoryFile( "root", null, null ); //$NON-NLS-1$
final int topFolderCount = 3;
final int subFolderCount = 3;
final int filesPerFolder = 4;
final byte[] fileData = "This is file data".getBytes(); //$NON-NLS-1$
for ( int i = 0; i < topFolderCount; i++ ) {
RepositoryFile topFolder = new RepositoryFile( "topFolder" + i, root, null ); //$NON-NLS-1$
for ( int j = 0; j < subFolderCount; j++ ) {
RepositoryFile subFolder = new RepositoryFile( "subFolder" + j, topFolder, null ); //$NON-NLS-1$
for ( int k = 0; k < filesPerFolder; k++ ) {
RepositoryFile aFile = new RepositoryFile( "aFile" + k, subFolder, fileData ); //$NON-NLS-1$
}
}
}
return root;
}