public SnapshotInfo(String sname, String sroot, String ctime, FsPermissionProto permission, String owner, String group) { this.snapshotName = sname; this.snapshotRoot = sroot; this.createTime = ctime; this.permission = permission; this.owner = owner; this.group = group; }
final public FsPermissionProto getPermission() { return permission; }
public static FsPermissionProto convert(FsPermission p) { return FsPermissionProto.newBuilder().setPerm(p.toExtendedShort()).build(); }
public static FsPermission convert(FsPermissionProto p) { return new FsPermissionExtension((short)p.getPerm()); }
public static FsPermissionProto convert(FsPermission p) { if (p == null) return null; return FsPermissionProto.newBuilder().setPerm(p.toShort()).build(); }
public static FsPermission convert(FsPermissionProto p) { if (p == null) return null; return new FsPermission((short)p.getPerm()); }
public static FsPermissionProto convert(FsPermission p) { if (p == null) { return null; } return FsPermissionProto.newBuilder().setPerm(p.toShort()).build(); }
public static FsPermission convert(FsPermissionProto p) { if (p == null) { return null; } return new FsPermission((short) p.getPerm()); }