2 * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
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
9 package org.opendaylight.groupbasedpolicy.renderer.ios_xe_provider.impl.manager;
11 import java.util.ArrayList;
12 import java.util.List;
13 import org.opendaylight.groupbasedpolicy.renderer.ios_xe_provider.impl.writer.PolicyWriter;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.renderer.rev151103.renderers.renderer.renderer.policy.Status;
15 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.renderer.rev151103.renderers.renderer.renderer.policy.configuration.renderer.endpoints.RendererEndpoint;
16 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.renderer.rev151103.renderers.renderer.renderer.policy.status.unconfigured.endpoints.UnconfiguredRendererEndpoint;
19 * Purpose: placeholder for
21 * <li>{@link PolicyWriter}</li>
22 * <li>{@link Status} parts</li>
25 public class PolicyConfigurationContext {
27 private final List<UnconfiguredRendererEndpoint> unconfiguredRendererEPBag;
28 private PolicyWriter policyWriter;
29 private RendererEndpoint currentRendererEP;
31 public PolicyConfigurationContext() {
32 unconfiguredRendererEPBag = new ArrayList<>();
36 * @return policyWriter for mountpoint currently being configured
38 public PolicyWriter getPolicyWriter() {
43 * @param policyWriter for mountpoint currently being configured
45 public void setPolicyWriter(final PolicyWriter policyWriter) {
46 this.policyWriter = policyWriter;
50 * @return list of not configurable policies
52 public List<UnconfiguredRendererEndpoint> getUnconfiguredRendererEPBag() {
53 return unconfiguredRendererEPBag;
57 * append given endpoint to collection of not configurable policies
58 * @param endpoint not configurable endpoint
60 public void appendUnconfiguredRendererEP(UnconfiguredRendererEndpoint endpoint) {
61 unconfiguredRendererEPBag.add(endpoint);
65 * @param currentRendererEP endpoint currently being configured
67 public void setCurrentRendererEP(final RendererEndpoint currentRendererEP) {
68 this.currentRendererEP = currentRendererEP;
72 * @return endpoint currently being configured
74 public RendererEndpoint getCurrentRendererEP() {
75 return currentRendererEP;