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
ConstructorDescriptionAttributeProviderHandler
(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 matchingAttributeProvider
s based on theAssemblyConnector
and 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 matchingAttributeProvider
s based on theAssemblyConnector
and the currentAssemblyContext
. It return a list ofUsageSpecification
s which acts as credentials- Parameters:
conntector
- the targeted ConnectorassemblyContext
- the current assemblyContext- Returns:
- List with
UsageSpecification
, empty if no AttributeProviderExists
-