|
|
@ -15,7 +15,8 @@ namespace NzbDrone.Api.RootFolders
|
|
|
|
IBroadcastSignalRMessage signalRBroadcaster,
|
|
|
|
IBroadcastSignalRMessage signalRBroadcaster,
|
|
|
|
RootFolderValidator rootFolderValidator,
|
|
|
|
RootFolderValidator rootFolderValidator,
|
|
|
|
PathExistsValidator pathExistsValidator,
|
|
|
|
PathExistsValidator pathExistsValidator,
|
|
|
|
DroneFactoryValidator droneFactoryValidator)
|
|
|
|
DroneFactoryValidator droneFactoryValidator,
|
|
|
|
|
|
|
|
MappedNetworkDriveValidator mappedNetworkDriveValidator)
|
|
|
|
: base(signalRBroadcaster)
|
|
|
|
: base(signalRBroadcaster)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_rootFolderService = rootFolderService;
|
|
|
|
_rootFolderService = rootFolderService;
|
|
|
@ -29,8 +30,9 @@ namespace NzbDrone.Api.RootFolders
|
|
|
|
.Cascade(CascadeMode.StopOnFirstFailure)
|
|
|
|
.Cascade(CascadeMode.StopOnFirstFailure)
|
|
|
|
.IsValidPath()
|
|
|
|
.IsValidPath()
|
|
|
|
.SetValidator(rootFolderValidator)
|
|
|
|
.SetValidator(rootFolderValidator)
|
|
|
|
.SetValidator(pathExistsValidator)
|
|
|
|
.SetValidator(droneFactoryValidator)
|
|
|
|
.SetValidator(droneFactoryValidator);
|
|
|
|
.SetValidator(mappedNetworkDriveValidator)
|
|
|
|
|
|
|
|
.SetValidator(pathExistsValidator);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private RootFolderResource GetRootFolder(int id)
|
|
|
|
private RootFolderResource GetRootFolder(int id)
|
|
|
|