Class AttributeProviderHandler
java.lang.Object
org.palladiosimulator.pcm.confidentiality.context.scenarioanalysis.helpers.AttributeProviderHandler
Class for handling
AttributeProvider in the scenario analysis. It helps to identify
context/credential changes during the analysis-
Constructor Summary
ConstructorsConstructorDescriptionAttributeProviderHandler(List<org.palladiosimulator.pcm.confidentiality.context.system.AttributeProvider> attributeProviders) -
Method Summary
Modifier and TypeMethodDescriptionList<? extends org.palladiosimulator.pcm.confidentiality.context.system.UsageSpecification>getContext(org.palladiosimulator.pcm.core.composition.AssemblyConnector conntector, List<org.palladiosimulator.pcm.core.composition.AssemblyContext> assemblyContext) Searches for matchingAttributeProviders based on theAssemblyConnectorand the currentAssemblyContext.
-
Constructor Details
-
AttributeProviderHandler
public AttributeProviderHandler(List<org.palladiosimulator.pcm.confidentiality.context.system.AttributeProvider> attributeProviders) - Parameters:
attributeProviders-
-
-
Method Details
-
getContext
public List<? extends org.palladiosimulator.pcm.confidentiality.context.system.UsageSpecification> getContext(org.palladiosimulator.pcm.core.composition.AssemblyConnector conntector, List<org.palladiosimulator.pcm.core.composition.AssemblyContext> assemblyContext) Searches for matchingAttributeProviders based on theAssemblyConnectorand the currentAssemblyContext. It return a list ofUsageSpecifications which acts as credentials- Parameters:
conntector- the targeted ConnectorassemblyContext- the current assemblyContext- Returns:
- List with
UsageSpecification, empty if no AttributeProviderExists
-