HP Operations Manager for Windows

 

IOvPmdPolicyGroup2 Interface Reference

Extension of IOvPmdPolicyGroup interface. More...

import "pmad.idl";

Inheritance diagram for IOvPmdPolicyGroup2:

IOvPmdPolicyGroup IOvPmdPolicyGroup80 List of all members.

Public Member Functions

HRESULT  AddLatestPolVersionToGroup ([in]IOvPmdLogicalPolicy2 *pPolicy)
HRESULT  IsLatestPolVersionAssigned ([in]IOvPmdLogicalPolicy2 *pPolicy,[out, retval] VARIANT_BOOL *bIsLogical)
HRESULT  GetLatestPolVersionList ([out, retval] SAFEARRAY(IDispatch *)*ppPolicies)
HRESULT  GetSpecificPolVersionList ([out, retval] SAFEARRAY(IDispatch *)*ppPolicies)

Detailed Description

The interface IOvPmdPolicyGroup2 inherits from the interface IOvPmdPolicyGroup, and adds several additional methods.
Since:
7.0

Member Function Documentation

HRESULT IOvPmdPolicyGroup2::AddLatestPolVersionToGroup [in] IOvPmdLogicalPolicy2 pPolicy  ) 
 
Semantics:
Adds a logical policy to the group. That is, the latest version of the policy is always assigned to the group. If a specific version of the same logical policy is already assigned to this group using the method AddPolicyToGroup(...), it is replaced by the latest version. Whenever the user creates a new policy version, the policy group is automatically updated.
Parameters:
pPolicy  - Interface pointer to the policy to be added.
Possible errors:
Database communication errors
Since:
7.0
HRESULT IOvPmdPolicyGroup2::GetLatestPolVersionList [out, retval] SAFEARRAY(IDispatch *)*  ppPolicies  ) 
 
Semantics:
Returns an array of all policies whose latest version has been assigned to this group. It does not include policies that are assigned to subgroups.
Parameters:
ppPolicies  - SAFEARRAY of IDispatch interface pointers to the policy versions. Use the method "IOvPmdPolicyManager::CVar(...)" to access the elements of the array within a VB script.
Possible errors:
Database communication errors
Since:
7.0
HRESULT IOvPmdPolicyGroup2::GetSpecificPolVersionList [out, retval] SAFEARRAY(IDispatch *)*  ppPolicies  ) 
 
Semantics:
Returns an array of all policy versions that have been assigned with a specific version to this group. It does not include policies which are assigned to subgroups.
Parameters:
ppPolicies  - SAFEARRAY of IDispatch interface pointers to the policy versions. Use the method "IOvPmdPolicyManager::CVar(...)" to access the elements of the array within a VB script.
Possible errors:
Database communication errors
Since:
7.0
HRESULT IOvPmdPolicyGroup2::IsLatestPolVersionAssigned [in] IOvPmdLogicalPolicy2 pPolicy,
[out, retval] VARIANT_BOOL *  bIsLogical
 
Semantics:
Checks whether the latest or a specific version of a given policy is assigned to this group.
Parameters:
pPolicy  - Interface pointer to the policy to be checked.
bIsLogical  Returns VARIANT_TRUE if the latest version of the given policy is assigned to the group
Returns VARIANT_FALSE if a specific version of the given policy is assigned to the group
Possible errors:
Database communication errors
Since:
7.0