Search in sources :

Example 6 with AccessMask

use of com.hierynomus.msdtyp.AccessMask in project iaf by ibissource.

the class Samba2FileSystemTestHelper method getFolder.

private Directory getFolder(String filename, AccessMask accessMask, SMB2CreateDisposition createDisposition) {
    Set<SMB2ShareAccess> shareAccess = new HashSet<SMB2ShareAccess>();
    shareAccess.addAll(SMB2ShareAccess.ALL);
    Set<AccessMask> accessMaskSet = new HashSet<AccessMask>();
    accessMaskSet.add(accessMask);
    Directory file;
    file = diskShare.openDirectory(filename, accessMaskSet, null, shareAccess, createDisposition, null);
    return file;
}
Also used : SMB2ShareAccess(com.hierynomus.mssmb2.SMB2ShareAccess) AccessMask(com.hierynomus.msdtyp.AccessMask) HashSet(java.util.HashSet) Directory(com.hierynomus.smbj.share.Directory)

Aggregations

AccessMask (com.hierynomus.msdtyp.AccessMask)6 HashSet (java.util.HashSet)6 SMB2CreateOptions (com.hierynomus.mssmb2.SMB2CreateOptions)4 SMB2ShareAccess (com.hierynomus.mssmb2.SMB2ShareAccess)4 File (com.hierynomus.smbj.share.File)4 Directory (com.hierynomus.smbj.share.Directory)2 FilterOutputStream (java.io.FilterOutputStream)2 OutputStream (java.io.OutputStream)2