//--V469-583-S internal static WsModel GetWs_Admin(string wsId, out IManWorkspace imWsOut, WsLoadType wsLoadType = WsLoadType.ALL, bool newSession = false) { IManWorkspace imWs = null; //imWs = WsUtility.GetObjectByID<IManWorkspace>(wsId, newSession); imWs = WsUtility.GetObjectByID_Admin <IManWorkspace>(wsId, newSession); imWsOut = imWs; if (imWs == null) { return(null); } var wsModel = (new WsModel { IsLoaded = wsLoadType != WsLoadType.None, Description = imWs.Description, Name = imWs.Name, ObjectID = imWs.ObjectID, Owner = WsUtility.GetWsUser(imWs.Owner), SubType = imWs.SubType, WorkspaceID = imWs.WorkspaceID, WsProfile = WsUtility.ToLoad(wsLoadType, WsComponentType.Profile) ? GetWsProfile(imWs.Profile, imWs) : null, WsFldrs = WsUtility.ToLoad(wsLoadType, WsComponentType.Fldrs) ? GetWsFldrs(imWs.SubFolders, string.Empty) : null, WsGroups = WsUtility.ToLoad(wsLoadType, WsComponentType.Groups) ? GetSecurity(imWs.Security) : null }); return(wsModel); }