Decouple config and netconf subsystems.
[controller.git] / opendaylight / config / config-manager-facade-xml / src / main / java / org / opendaylight / controller / config / facade / xml / strategy / EditStrategyType.java
@@ -1,17 +1,17 @@
 /*
- * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
+ * Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
 
-package org.opendaylight.controller.netconf.confignetconfconnector.operations.editconfig;
+package org.opendaylight.controller.config.facade.xml.strategy;
 
 import java.util.EnumSet;
 import java.util.Set;
-import org.opendaylight.controller.netconf.api.NetconfDocumentedException;
-import org.opendaylight.controller.netconf.confignetconfconnector.exception.OperationNotPermittedException;
+import org.opendaylight.controller.config.facade.xml.exception.OperationNotPermittedException;
+import org.opendaylight.controller.config.util.xml.DocumentedException;
 
 public enum EditStrategyType {
     // can be default
@@ -46,12 +46,10 @@ public enum EditStrategyType {
             if (parsedStrategy != defaultStrategy){
                 throw new OperationNotPermittedException(String.format("With "
                         + defaultStrategy
-                        + " as "
-                        + EditConfigXmlParser.DEFAULT_OPERATION_KEY
-                        + " operations on module elements are not permitted since the default option is restrictive"),
-                        NetconfDocumentedException.ErrorType.application,
-                        NetconfDocumentedException.ErrorTag.operation_failed,
-                        NetconfDocumentedException.ErrorSeverity.error);
+                        + " as default-operation operations on module elements are not permitted since the default option is restrictive"),
+                        DocumentedException.ErrorType.application,
+                        DocumentedException.ErrorTag.operation_failed,
+                        DocumentedException.ErrorSeverity.error);
             }
         }