cn.chenlichao.wmi4j
类 SWbemPrivilege

java.lang.Object
  继承者 cn.chenlichao.wmi4j.SWbemPrivilege

public class SWbemPrivilege
extends Object

The SWbemPrivilege object represents a single privilege. Created by chenlichao on 14-7-28.


方法摘要
 String getDisplayName()
          Displays a description of an SWbemPrivilege object.
 WbemPrivilegeEnum getIdentifier()
          The identifier property of an SWbemPrivilege object is an WbemPrivilegeEnum that represents the privilege that is being set or retrieved.
 String getName()
          A string that uniquely describes a privilege.
 boolean isEnabled()
          If this privilege is enabled or disabled.
 void setEnabled(boolean enabled)
          Enable the privilege or disable it.
 void setIdentifier(WbemPrivilegeEnum identifier)
          Set the identifier of privilege object.
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

方法详细信息

getDisplayName

public String getDisplayName()
                      throws WMIException
Displays a description of an SWbemPrivilege object. For example, the privilege that controls whether a user can execute the shutdown method of an object has the "Shut down the system" string in the displayName property.

返回:
Description string of the privilege.
抛出:
WMIException

getIdentifier

public WbemPrivilegeEnum getIdentifier()
                                throws WMIException
The identifier property of an SWbemPrivilege object is an WbemPrivilegeEnum that represents the privilege that is being set or retrieved.

返回:
WbemPrivilegeEnum identifier of privilege
抛出:
WMIException

setIdentifier

public void setIdentifier(WbemPrivilegeEnum identifier)
                   throws WMIException
Set the identifier of privilege object.

参数:
identifier - the identifier of privilege object.
抛出:
WMIException

isEnabled

public boolean isEnabled()
                  throws WMIException
If this privilege is enabled or disabled.

返回:
Return true if the privilege is enabled, otherwise return false.
抛出:
WMIException

setEnabled

public void setEnabled(boolean enabled)
                throws WMIException
Enable the privilege or disable it.

参数:
enabled - True will enabled the privilege, false will disable.
抛出:
WMIException

getName

public String getName()
               throws WMIException
A string that uniquely describes a privilege. For example, the privilege that controls whether a user can execute the shutdown method of an object has the "SeShutdownPrivilege" string in the name property.

返回:
A string that uniquely describes a privilege.
抛出:
WMIException


Copyright © 2014. All rights reserved.