| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2007-2009 Sun Microsystems, Inc. |
| | | * Copyright 2007-2010 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.workflowelement; |
| | | |
| | |
| | | |
| | | WorkflowElement<?> workflowElement = |
| | | DirectoryServer.getWorkflowElement( |
| | | configuration.getWorkflowElementId()); |
| | | configuration.dn().getRDN().getAttributeValue(0).toString()); |
| | | if (workflowElement != null) |
| | | { |
| | | // Notify to observers that the workflow element is now disabled |
| | |
| | | |
| | | // Get the existing workflow element if it's already enabled. |
| | | WorkflowElement<?> existingWorkflowElement = |
| | | DirectoryServer.getWorkflowElement(configuration.getWorkflowElementId()); |
| | | DirectoryServer.getWorkflowElement( |
| | | configuration.dn().getRDN().getAttributeValue(0).toString()); |
| | | |
| | | // If the new configuration has the workflow element disabled, |
| | | // then disable it if it is enabled, or do nothing if it's already disabled. |