| Modifies the current set of overrides with the requested list
of Policy overrides. The first parameter policies is a sequence
of references to Policy objects. The second parameter set_add
of type SetOverrideType indicates whether these policies should
be added onto any other overrides that already exist
(ADD_OVERRIDE) in the PolicyManager, or they should be added to
a clean PolicyManager free of any other overrides
(SET_OVERRIDE).
Invoking set_policy_overrides with an empty sequence of
policies and a mode of SET_OVERRIDE removes all overrides from
a PolicyManager. Only certain policies that pertain to the
invocation of an operation at the client end can be overridden
using this operation. Attempts to override any other policy
will result in the raising of the CORBA::NO_PERMISSION
exception. If the request would put the set of overriding
policies for the target PolicyManager in an inconsistent state,
no policies are changed or added, and the exception
InvalidPolicies is raised. There is no evaluation of
compatibility with policies set within other PolicyManagers.
Parameters: policies - a sequence of Policy objects that are to beassociated with the PolicyManager object. Parameters: set_add - whether the association is in addition to(ADD_OVERRIDE) or as a replacement of (SET_OVERRIDE) anyexisting overrides already associated with the PolicyManagerobject. If the value of this parameter is SET_OVERRIDE, thesupplied policies completely replace all existing overridesassociated with the PolicyManager object. If the value of thisparameter is ADD_OVERRIDE, the supplied policies are added tothe existing overrides associated with the PolicyManagerobject, except that if a supplied Policy object has the samePolicyType value as an existing override, the supplied Policyobject replaces the existing override. throws: org.omg.CORBA.InvalidPolicies - a list of indices identifying theposition in the input policies list that are occupied byinvalid policies throws: org.omg.CORBA.BAD_PARAM - if the sequence contains two or more Policyobjects with the same PolicyType value, the operation raisesthe standard sytem exception BAD_PARAM with standard minor code30. |