- 修复RouteService中错误过滤home路由的问题 - 后端现在正确返回所有用户有权限的路由 - 添加设备管理相关功能(列表、在线监控、电源管理、远程监控) - 添加详细的修复文档和重启脚本 - 更新权限配置脚本 问题根源:后端代码中有逻辑会过滤掉home路由,导致前端收到空数组,无法生成菜单 解决方案:移除过滤home路由的逻辑,让后端返回所有有权限的路由
99 lines
2.8 KiB
C#
99 lines
2.8 KiB
C#
//----------------------------------------------------------------------------
|
|
//
|
|
// Copyright (c) Intel Corporation, 2008 - 2014 All Rights Reserved.
|
|
//
|
|
// File: WSIdentify.cs
|
|
//
|
|
// Contents: WSIdentify is a part of the CimFramework project.
|
|
// It implements an identify object.
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
using System;
|
|
using System.Reflection;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using System.Xml;
|
|
using System.Xml.XPath;
|
|
using System.Xml.Serialization;
|
|
using Intel.Manageability.Cim;
|
|
using Intel.Manageability.Exceptions;
|
|
|
|
namespace Intel.Manageability.Cim
|
|
{
|
|
/// <summary>
|
|
/// Represent identify object
|
|
/// </summary>
|
|
public class WSIdentify : CimData
|
|
{
|
|
/// <summary>
|
|
/// Constructor
|
|
/// </summary>
|
|
/// <param name="element">XmlElement which represent WSIdentify class</param>
|
|
public WSIdentify(XmlElement element):
|
|
base("WSIdentify", "")
|
|
{
|
|
if (element == null)
|
|
throw new ArgumentNullException("element");
|
|
Deserialize(element.OuterXml);
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
/// Return the Protocol Version.
|
|
/// </summary>
|
|
public string ProtocolVersion
|
|
{
|
|
get { return this.GetField("ProtocolVersion")[0]; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Return the Protocol Vendor.
|
|
/// </summary>
|
|
public string ProductVendor
|
|
{
|
|
get { return this.GetField("ProductVendor")[0]; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Return the Product Version.
|
|
/// </summary>
|
|
public string ProductVersion
|
|
{
|
|
get { return this.GetField("ProductVersion")[0]; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Return the DASH Version.
|
|
/// </summary>
|
|
public string DASHVersion
|
|
{
|
|
get { return this.GetField("DASHVersion")[0]; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Return the Security Profiles.
|
|
/// </summary>
|
|
public string[] SecurityProfiles
|
|
{
|
|
get{ return this["SecurityProfileName"]; }
|
|
}
|
|
|
|
|
|
public override void AddField(string name, string[] values)
|
|
{
|
|
throw (new NotSupportedException("AddField: Not supported operation for WSIdentify"));
|
|
}
|
|
|
|
public override void SetOrAddField(string name, string[] values)
|
|
{
|
|
throw (new NotSupportedException("SetOrAddField: Not supported operation for WSIdentify"));
|
|
}
|
|
public override void SetField(string name, string[] values)
|
|
{
|
|
throw (new NotSupportedException("SetField: Not supported operation for WSIdentify"));
|
|
}
|
|
}
|
|
}
|