Interface SecurityLabelAggregator


public interface SecurityLabelAggregator
This delegate sets the security labels for a published representation based on the data and their security labels being published.

Supported API: true
Extendable: true
  • Method Details

    • aggregate

      void aggregate(Map<String,String> mergeTo, SecurityLabeled finalTarget, Map<String,String> mergeFrom, SecurityLabeled mergeFromObject, Map<String,String> options) throws WTException
      Parameters:
      mergeTo - it is the output. Initially it has other labels
      finalTarget - the object in which the final result is saved with
      mergeFrom - labels that will be merged to mergeTo.
      mergeFromObject - the object where mergeFrom is retrieved. If mergeFromObject is a rep, its target object is used.
      options - parameters that can be used to control the merging.
      Throws:
      WTException - when a WTException is thrown, the current publish job fails.

      Supported API: true
    • isSecured

      boolean isSecured(Map<String,String> securityLabels, Map<String,String> options) throws WTException
      The method tests if the security labels ask for secure transaction archive in PE side. For example, in CAT case, if there is a label called ITAR, CAT implementation returns true. PE wouldn't keep the publish job's archive in a secure folder.
      Parameters:
      securityLabels - aggregated security labels
      options - parameters
      Returns:
      true is secured and false is public

      Supported API: true
      Throws:
      WTException