replaceApprover
boolean replaceApprover(IUser oldApprover,
IUser newApprover)
throws WcmException
This method will search the oldApprover in the list of approvers. It will not
search in assigned groups or roles, that means, the method will only success, if the approver is
directly assigned as approver.
If the approver is found, than he will be replaced by the newApprover.
If the resource currently has to be approved by the old approver, than the
notifications for the old approver will be recalled if possible and
the new approver will be notified.
- Parameters:
oldApprover
- no description
newApprover
- no description
- Returns:
- true if the approver is replaced, false otherwise.
- Throws:
WcmException