public void Rename(IFolder folder, string newName) { var callLog = Log.Call($"..., {newName}"); var fld = FolderRepository.GetFolder(folder.AsOqt().SysId); WipConstants.AdamNotImplementedYet(); Log.Add("Not implement yet in Oqtane"); //FolderRepository.RenameFolder(fld, newName); callLog("ok"); }
/// <summary> /// Activate extended logging for a specific duration /// </summary> /// <param name="duration"></param> /// <returns></returns> public static string ActivateForDuration(int duration) { WipConstants.DontDoAnythingImplementLater(); //var prop = GlobalConfiguration.Configuration.Properties; //prop.GetOrAdd(Constants.AdvancedLoggingEnabledKey, duration > 0); var timeout = DateTime.Now.AddMinutes(duration); //prop.AddOrUpdate(Constants.AdvancedLoggingTillKey, timeout, (a, b) => timeout); return($"test-test Extended logging activated for {duration} minutes to {timeout}"); }
public override bool CanEditFolder(IAsset item) { var id = (item as IFolder)?.Id ?? (item as IFile)?.ParentId ?? throw new ArgumentException("Should be a DNN asset", nameof(item)); WipConstants.DontDoAnythingImplementLater(); return(true); //var folder = FolderManager.Instance.GetFolder(id); //return folder != null && FolderPermissionController.CanAddFolder(folder as FolderInfo); }
public string RemoteManageUrl() { WipConstants.DontDoAnythingImplementLater(); return("//gettingstarted.2sxc.org/router.aspx?" + $"DnnVersion={Oqtane.Shared.Constants.Version}" + $"&2SexyContentVersion={Settings.ModuleVersion}" + $"&fp={HttpUtility.UrlEncode(Fingerprint.System)}" + $"&DnnGuid={Guid.Empty}" // we can try to use oqt host user guid from aspnetcore identity + $"&ModuleId={GetContext().Module.Id}" // needed for callback later on + "&destination=features"); }
public void /*object*/ GetFileByPath(string relativePath) { WipConstants.DontDoAnythingImplementLater(); //var dnnDynamicCode = new DnnDynamicCodeRoot().Init(GetBlock(), Log); //var portal = dnnDynamicCode.Dnn.Portal; //relativePath = relativePath.Replace(portal.HomeDirectory, ""); //var file = FileManager.Instance.GetFile(portal.PortalId, relativePath); //if (file == null) return null; //var folder = (FolderInfo)FolderManager.Instance.GetFolder(file.FolderId); //return FolderPermissionController.CanViewFolder(folder) // ? new // { // file.FileId // } // : null; }
protected void PreventServerTimeout300() => WipConstants.DontDoAnythingImplementLater();