- 修复RouteService中错误过滤home路由的问题 - 后端现在正确返回所有用户有权限的路由 - 添加设备管理相关功能(列表、在线监控、电源管理、远程监控) - 添加详细的修复文档和重启脚本 - 更新权限配置脚本 问题根源:后端代码中有逻辑会过滤掉home路由,导致前端收到空数组,无法生成菜单 解决方案:移除过滤home路由的逻辑,让后端返回所有有权限的路由
229 lines
6.5 KiB
C#
229 lines
6.5 KiB
C#
//----------------------------------------------------------------------------
|
|
//
|
|
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
|
|
//
|
|
// File: CIM_ServiceAccessPoint.cs
|
|
//
|
|
// Contents: CIM_ServiceAccessPoint represents the ability to utilize or invoke a Service. Access points represent that a Service is made available for other entities to use.
|
|
// This file was automatically generated from CIM_ServiceAccessPoint.mof
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Collections.ObjectModel;
|
|
using System.Text;
|
|
using System.Globalization;
|
|
using System.Xml.Serialization;
|
|
using System.IO;
|
|
using Intel.Manageability.WSManagement;
|
|
using Intel.Manageability.Cim.Untyped;
|
|
|
|
|
|
namespace Intel.Manageability.Cim.Typed
|
|
{
|
|
/// <summary>
|
|
///CIM_ServiceAccessPoint represents the ability to utilize or invoke a Service. Access points represent that a Service is made available for other entities to use.
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ServiceAccessPoint")]
|
|
[System.Xml.Serialization.XmlRootAttribute("CIM_ServiceAccessPoint", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ServiceAccessPoint", IsNullable=false)]
|
|
public class CIM_ServiceAccessPoint : CIM_EnabledLogicalElement
|
|
{
|
|
/// <summary>
|
|
/// Default constructor.
|
|
/// </summary>
|
|
public CIM_ServiceAccessPoint() :base()
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Constructor that recieves an xml string for deserialization.
|
|
/// </summary>
|
|
/// <param name="xml">xml string to deserialize</param>
|
|
public CIM_ServiceAccessPoint(string xml): base((IWSManClient)null)
|
|
{
|
|
this.Deserialize(xml);
|
|
}
|
|
/// <summary>
|
|
/// Constructor which recieves a Ws-Management client object.
|
|
/// </summary>
|
|
/// <param name="client">Ws-Management client</param>
|
|
public CIM_ServiceAccessPoint(IWSManClient client): base(client)
|
|
{
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Key, Required, CreationClassName indicates the name of the class or the subclass used in the creation of an instance. When used with the other key properties of this class, this property allows all instances of this class and its subclasses to be uniquely identified.
|
|
/// </summary>
|
|
[CimField(true, true)]
|
|
public virtual string CreationClassName
|
|
{
|
|
get
|
|
{
|
|
return this.GetField("CreationClassName")[0];
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("CreationClassName",value);
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Key, Required, The Name property uniquely identifies the ServiceAccessPoint and provides an indication of the functionality that is managed. This functionality is described in more detail in the Description property of the object.
|
|
/// </summary>
|
|
[CimField(true, true)]
|
|
public override string Name
|
|
{
|
|
get
|
|
{
|
|
return this.GetField("Name")[0];
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("Name",value);
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Key, Required, The CreationClassName of the scoping System.
|
|
/// </summary>
|
|
[CimField(true, true)]
|
|
public virtual string SystemCreationClassName
|
|
{
|
|
get
|
|
{
|
|
return this.GetField("SystemCreationClassName")[0];
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("SystemCreationClassName",value);
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Key, Required, The Name of the scoping System.
|
|
/// </summary>
|
|
[CimField(true, true)]
|
|
public virtual string SystemName
|
|
{
|
|
get
|
|
{
|
|
return this.GetField("SystemName")[0];
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("SystemName",value);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of CIM_ServiceAccessPoint class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <param name="cimKeys">Keys for selecting the instances</param>
|
|
/// <returns>Collection of CIM_ServiceAccessPoint objects</returns>
|
|
public static new Collection<CIM_ServiceAccessPoint> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
|
|
{
|
|
List<CIM_ServiceAccessPoint> ret = CimBase.Enumerate<CIM_ServiceAccessPoint>(client, cimKeys);
|
|
return new Collection<CIM_ServiceAccessPoint>(ret);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of CIM_ServiceAccessPoint class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <returns>Collection of CIM_ServiceAccessPoint objects</returns>
|
|
public static new Collection<CIM_ServiceAccessPoint> Enumerate(IWSManClient client)
|
|
{
|
|
List<CIM_ServiceAccessPoint> ret = CimBase.Enumerate<CIM_ServiceAccessPoint>(client);
|
|
return new Collection<CIM_ServiceAccessPoint>(ret);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Delete the instance of CIM_ServiceAccessPoint if it is singular.
|
|
/// Note: This method will succeed only if a single instance of the class exists.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
public static new void Delete(IWSManClient client)
|
|
{
|
|
CimBase.Delete<CIM_ServiceAccessPoint>(client);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Represents the keys of the CIM_ServiceAccessPoint class.
|
|
/// </summary>
|
|
|
|
public new class CimKeys : CIM_EnabledLogicalElement.CimKeys
|
|
{
|
|
/// <summary>
|
|
/// Key, Required, CreationClassName indicates the name of the class or the subclass used in the creation of an instance. When used with the other key properties of this class, this property allows all instances of this class and its subclasses to be uniquely identified.
|
|
/// </summary>
|
|
|
|
public virtual string CreationClassName
|
|
{
|
|
get
|
|
{
|
|
return GetKey("CreationClassName");
|
|
}
|
|
set
|
|
{
|
|
SetOrAddKey("CreationClassName", value);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Key, Required, The Name property uniquely identifies the ServiceAccessPoint and provides an indication of the functionality that is managed. This functionality is described in more detail in the Description property of the object.
|
|
/// </summary>
|
|
|
|
public virtual string Name
|
|
{
|
|
get
|
|
{
|
|
return GetKey("Name");
|
|
}
|
|
set
|
|
{
|
|
SetOrAddKey("Name", value);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Key, Required, The CreationClassName of the scoping System.
|
|
/// </summary>
|
|
|
|
public virtual string SystemCreationClassName
|
|
{
|
|
get
|
|
{
|
|
return GetKey("SystemCreationClassName");
|
|
}
|
|
set
|
|
{
|
|
SetOrAddKey("SystemCreationClassName", value);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Key, Required, The Name of the scoping System.
|
|
/// </summary>
|
|
|
|
public virtual string SystemName
|
|
{
|
|
get
|
|
{
|
|
return GetKey("SystemName");
|
|
}
|
|
set
|
|
{
|
|
SetOrAddKey("SystemName", value);
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
|