1 package org.onap.policy.tutorial.tutorial;
3 import java.util.Arrays;
6 import org.onap.policy.models.tosca.authorative.concepts.ToscaPolicyTypeIdentifier;
7 import org.onap.policy.pdp.xacml.application.common.ToscaPolicyTranslator;
8 import org.onap.policy.pdp.xacml.application.common.std.StdXacmlApplicationServiceProvider;
10 public class TutorialApplication extends StdXacmlApplicationServiceProvider {
12 private final ToscaPolicyTypeIdentifier supportedPolicyType = new ToscaPolicyTypeIdentifier();
13 private final TutorialTranslator translator = new TutorialTranslator();
16 public String applicationName() {
21 public List<String> actionDecisionsSupported() {
22 return Arrays.asList("authorize");
26 public synchronized List<ToscaPolicyTypeIdentifier> supportedPolicyTypes() {
27 return Arrays.asList(supportedPolicyType);
31 public boolean canSupportPolicyType(ToscaPolicyTypeIdentifier policyTypeId) {
32 return supportedPolicyType.equals(policyTypeId);
36 protected ToscaPolicyTranslator getTranslator(String type) {