| | |
| | | * |
| | | * |
| | | * Copyright 2008-2010 Sun Microsystems, Inc. |
| | | * Portions copyright 2013 ForgeRock AS. |
| | | */ |
| | | package org.opends.server.workflowelement; |
| | | |
| | |
| | | public void finalizeWorkflowElement() |
| | | { |
| | | // Deregister the monitor provider. |
| | | if (this.statistics != null) { |
| | | DirectoryServer.deregisterMonitorProvider( |
| | | this.statistics.getMonitorInstanceName()); |
| | | if (statistics != null) { |
| | | DirectoryServer.deregisterMonitorProvider(statistics); |
| | | } |
| | | } |
| | | |
| | |
| | | * below this object. |
| | | * @return boolean |
| | | */ |
| | | public boolean hasChildWorkflowElement(WorkflowElement element) { |
| | | public boolean hasChildWorkflowElement(WorkflowElement<?> element) { |
| | | if (this.getChildWorkflowElements().size() == 0) { |
| | | return (this.equals(element)); |
| | | } |
| | | |
| | | for (WorkflowElement subElement:this.getChildWorkflowElements()) { |
| | | for (WorkflowElement<?> subElement : this.getChildWorkflowElements()) { |
| | | if (subElement.equals(element) || |
| | | subElement.hasChildWorkflowElement(element)) { |
| | | return true; |