public dtoCallSubmissionFile(RequestedFile requestedFile, Boolean allowRemove, Boolean allowUpload) { Id = requestedFile.Id; FileToSubmit = new dtoCallRequestedFile(requestedFile); AllowRemove = allowRemove; AllowUpload = allowUpload; FieldError = Domain.FieldError.None; }
public dtoRequestedFilePermission(dtoCallRequestedFile file, dtoGenericPermission generic, long count) : base(file.Id) { File = file; Deleted = file.Deleted; AllowDelete = generic.AllowDelete && Deleted != BaseStatusDeleted.None; AllowVirtualDelete = Deleted == BaseStatusDeleted.None && generic.AllowVirtualDelete && !(count > 0); AllowUnDelete = Deleted != BaseStatusDeleted.None && generic.AllowUnDelete; AllowEdit = Deleted == BaseStatusDeleted.None && !(count > 0) && generic.AllowEdit; SubmissionCount = count; }
public dtoRequestedFilePermission(long id, dtoCallRequestedFile file) : base(id) { File = file; Deleted = file.Deleted; }