All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.fraunhofer.iese.ind2uce.autoconfiguration.Ind2uceConfigurationProperties Maven / Gradle / Ivy

Go to download

IND2UCE :: Webproject related contents like JSON, Autoconfiguration of Spring, etc.

There is a newer version: 3.2.69
Show newest version
/*-
 * =================================LICENSE_START=================================
 * IND2UCE
 * %%
 * Copyright (C) 2016 Fraunhofer IESE (www.iese.fraunhofer.de)
 * %%
 * The Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V., Hansastrasse 27c, 80686 Munich, Germany (further: Fraunhofer) is holder of all proprietary rights on this computer program.  
 * You can only use this computer program if you have closed a license agreement with Fraunhofer or you get the right to use the computer program from someone who is authorized to grant you that right. 
 * Any use of the computer program without a valid license is prohibited and liable to prosecution. 
 * 
 * Copyright (C) 2018 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V. acting on behalf of its Fraunhofer Institute for Experimental Software Engineering (IESE)
 * 
 * All rights reserved.  
 * 
 * Contact: [email protected]
 * =================================LICENSE_END=================================
 */

package de.fraunhofer.iese.ind2uce.autoconfiguration;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * Configuration options for Ind2uce components.
 */
@ConfigurationProperties("ind2uce")
public class Ind2uceConfigurationProperties {

  /**
   * The id of the management point. Should match the following pattern:
   * ^urn:component:([a-zA-Z0-9-_\.])+:(pmp|pmp_server):([a-zA-Z0-9-_\.]|%[0-9a-f]{2})+$
   */
  private String pmpId;

  /**
   * The id of the decision point. Should match the following pattern:
   * ^urn:component:([a-zA-Z0-9-_\.])+:pdp:([a-zA-Z0-9-_\.]|%[0-9a-f]{2})+$
   */
  private String pdpUri;

  /**
   * For PEPs, the id of the scope this enforcement point belongs to. Should
   * match the following pattern: urn:es:[a-zA-Z0-9-_\.]+$"
   */
  private String esId;

  /**
   * For PEPs, the id of the scope type this enforcement point belongs to.
   * Should match the following pattern: urn:es-type:[a-zA-Z0-9-_\.]+$
   */
  private String esType;

  /**
   * The Url of the PMP to connect to.
   */
  private String pmpUri;

  /**
   * Number of threads used to process the events.
   */
  private int numThreads = 1;

  /**
   * For PDP, PMP: Should policies be validated against its schema.
   */
  boolean validateSchema = true;

  /**
   * Gets the id of the management point.
   *
   * @return the id of the management point
   */
  public String getPmpId() {
    return this.pmpId;
  }

  /**
   * Sets the id of the management point.
   *
   * @param pmpId the new id of the management point
   */
  public void setPmpId(String pmpId) {
    this.pmpId = pmpId;
  }

  /**
   * Gets the id of the decision point.
   *
   * @return the id of the decision point
   */
  public String getPdpUri() {
    return this.pdpUri;
  }

  /**
   * Sets the id of the decision point.
   *
   * @param pdpURI the new id of the decision point
   */
  public void setPdpUri(String pdpURI) {
    this.pdpUri = pdpURI;
  }

  /**
   * Gets the for PEPs, the id of the scope this enforcement point belongs to.
   *
   * @return the for PEPs, the id of the scope this enforcement point belongs to
   */
  public String getEsId() {
    return this.esId;
  }

  /**
   * Sets the for PEPs, the id of the scope this enforcement point belongs to.
   *
   * @param esId the new for PEPs, the id of the scope this enforcement point
   *          belongs to
   */
  public void setEsId(String esId) {
    this.esId = esId;
  }

  /**
   * Gets the for PEPs, the id of the scope type this enforcement point belongs
   * to.
   *
   * @return the for PEPs, the id of the scope type this enforcement point
   *         belongs to
   */
  public String getEsType() {
    return this.esType;
  }

  /**
   * Sets the for PEPs, the id of the scope type this enforcement point belongs
   * to.
   *
   * @param esType the new for PEPs, the id of the scope type this enforcement
   *          point belongs to
   */
  public void setEsType(String esType) {
    this.esType = esType;
  }

  /**
   * Gets the Url of the PMP to connect to.
   *
   * @return the Url of the PMP to connect to
   */
  public String getPmpUri() {
    return this.pmpUri;
  }

  /**
   * Sets the Url of the PMP to connect to.
   *
   * @param pmpURI the new Url of the PMP to connect to
   */
  public void setPmpUri(String pmpURI) {
    this.pmpUri = pmpURI;
  }

  /**
   * Gets the number of threads used to process the events.
   *
   * @return the number of threads used to process the events
   */
  public int getNumThreads() {
    return this.numThreads;
  }

  /**
   * Sets the number of threads used to process the events.
   *
   * @param numThreads the new number of threads used to process the events
   */
  public void setNumThreads(int numThreads) {
    this.numThreads = numThreads;
  }

  /**
   * Checks if is for PDP, PMP: Should policies be validated against its schema.
   *
   * @return the for PDP, PMP: Should policies be validated against its schema
   */
  public boolean isValidateSchema() {
    return this.validateSchema;
  }

  /**
   * Sets the for PDP, PMP: Should policies be validated against its schema.
   *
   * @param validateSchema the new for PDP, PMP: Should policies be validated
   *          against its schema
   */
  public void setValidateSchema(boolean validateSchema) {
    this.validateSchema = validateSchema;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy