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