The Court of Appeal has ruled that a case taken by farmer in relation to designated land in Co. Donegal can "largely" proceed.