972ef9a84247b0386dbb25f6fc3f3ee5360a5fbc
[netconf.git] / restconf / sal-rest-connector / src / main / java / org / opendaylight / restconf / rest / impl / services / RestconfOperationsServiceImpl.java
1 /*
2  * Copyright (c) 2016 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.restconf.rest.impl.services;
9
10 import javax.ws.rs.core.UriInfo;
11 import org.opendaylight.netconf.sal.restconf.impl.NormalizedNodeContext;
12 import org.opendaylight.netconf.sal.restconf.impl.RestconfDocumentedException;
13 import org.opendaylight.restconf.rest.api.schema.context.SchemaContextHandler;
14 import org.opendaylight.restconf.rest.api.services.RestconfOperationsService;
15 import org.opendaylight.restconf.rest.handlers.api.DOMMountPointServiceHandler;
16 import org.opendaylight.yangtools.yang.model.api.SchemaContext;
17
18 /**
19  * Implementation of {@link RestconfOperationsService}
20  *
21  */
22 public class RestconfOperationsServiceImpl implements RestconfOperationsService {
23
24     private final SchemaContextHandler schemaContextHandler;
25     private final DOMMountPointServiceHandler domMountPointServiceHandler;
26
27     /**
28      * Set {@link SchemaContextHandler} for getting actual {@link SchemaContext}
29      *
30      * @param schemaContextHandler
31      *            - handling schema context
32      * @param domMountPointServiceHandler
33      *            - handling dom mount point service
34      */
35     public RestconfOperationsServiceImpl(final SchemaContextHandler schemaContextHandler,
36             final DOMMountPointServiceHandler domMountPointServiceHandler) {
37         this.schemaContextHandler = schemaContextHandler;
38         this.domMountPointServiceHandler = domMountPointServiceHandler;
39     }
40
41     @Override
42     public NormalizedNodeContext getOperations(final UriInfo uriInfo) {
43         throw new RestconfDocumentedException("Not yet implemented.", new UnsupportedOperationException());
44     }
45
46
47     @Override
48     public NormalizedNodeContext getOperations(final String identifier, final UriInfo uriInfo) {
49         throw new RestconfDocumentedException("Not yet implemented.", new UnsupportedOperationException());
50     }
51
52 }