public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { { int $size = xdr.xdrDecodeInt(); value = new nfsace4[$size]; for ( int $idx = 0; $idx < $size; ++$idx ) { value[$idx] = new nfsace4(xdr); } } }
public nfsace4(XdrDecodingStream xdr) throws OncRpcException, IOException { xdrDecode(xdr); }
public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException { { int $size = value.length; xdr.xdrEncodeInt($size); for ( int $idx = 0; $idx < $size; ++$idx ) { value[$idx].xdrEncode(xdr); } } }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { stateid = new stateid4(xdr); recall = xdr.xdrDecodeBoolean(); permissions = new nfsace4(xdr); }
public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException { stateid.xdrEncode(xdr); xdr.xdrEncodeBoolean(recall); permissions.xdrEncode(xdr); }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { na41_flag = new aclflag4(xdr); { int $size = xdr.xdrDecodeInt(); na41_aces = new nfsace4[$size]; for ( int $idx = 0; $idx < $size; ++$idx ) { na41_aces[$idx] = new nfsace4(xdr); } } }
public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException { na41_flag.xdrEncode(xdr); { int $size = na41_aces.length; xdr.xdrEncodeInt($size); for ( int $idx = 0; $idx < $size; ++$idx ) { na41_aces[$idx].xdrEncode(xdr); } } }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { stateid = new stateid4(xdr); recall = xdr.xdrDecodeBoolean(); space_limit = new nfs_space_limit4(xdr); permissions = new nfsace4(xdr); }
public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException { stateid.xdrEncode(xdr); xdr.xdrEncodeBoolean(recall); space_limit.xdrEncode(xdr); permissions.xdrEncode(xdr); }
acemask4 everyoneMask = toAceMask(mode, isDir, false); nfsace4 ownerAceAllow = new nfsace4(); ownerAceAllow.access_mask = ownerMask; ownerAceAllow.who = OWNER; ownerAceAllow.flag = NO_FLAGS; nfsace4 ownerAceDeny = new nfsace4(); ownerAceDeny.access_mask = acemask4.clear(ownerMask, acemask4.allOf(groupMask, everyoneMask)); ownerAceDeny.who = OWNER; ownerAceDeny.flag = NO_FLAGS; nfsace4 groupAceAllow = new nfsace4(); groupAceAllow.access_mask = groupMask; groupAceAllow.who = GROUP; groupAceAllow.flag = NO_FLAGS; nfsace4 groupAceDeny = new nfsace4(); groupAceDeny.access_mask = acemask4.clear(groupMask, everyoneMask); groupAceDeny.who = GROUP; nfsace4 otherAceAllow = new nfsace4(); otherAceAllow.access_mask = everyoneMask; otherAceAllow.who = EVERYONE;
private nfsace4 toACE(utf8str_mixed principal, int type, int mask, int flag) { nfsace4 ace = new nfsace4(); ace.who = principal; ace.access_mask = new acemask4(new uint32_t(mask)); ace.type = new acetype4(new uint32_t(type)); int flags = flag | (principal == Acls.GROUP ? ACE4_IDENTIFIER_GROUP : 0); ace.flag = new aceflag4(new uint32_t(flags)); return ace; }