Commit 389bb02e authored by Paff's avatar Paff
Browse files

identities for component in AST

parent a1103601
......@@ -77,6 +77,11 @@ public class ASTSecArcFilterComponent extends PrototypeASTSecArcFilterComponent{
*/
protected List<ASTSecArcTrustlevelRelation> trustlevelRelations;
/**
* Lazy calculated identity link
*/
protected List<ASTSecArcIdentity> identities;
/**
* default constructor
*/
......@@ -100,6 +105,7 @@ public class ASTSecArcFilterComponent extends PrototypeASTSecArcFilterComponent{
encryptedSimpleConnectors = new ArrayList<ASTArcSimpleConnector>();
unencryptedSimpleConnectors = new ArrayList<ASTArcSimpleConnector>();
trustlevelRelations = new ArrayList<ASTSecArcTrustlevelRelation>();
identities = new ArrayList<ASTSecArcIdentity>();
//Critical ports from ports
for(ASTArcPort port : this.getPorts()) {
......@@ -156,6 +162,11 @@ public class ASTSecArcFilterComponent extends PrototypeASTSecArcFilterComponent{
trustlevel = (ASTSecArcTrustLevel) elem;
}
//check for identities
if(elem instanceof ASTSecArcIdentity) {
identities.add((ASTSecArcIdentity) elem);
}
}
//check for filter
......@@ -320,4 +331,17 @@ public class ASTSecArcFilterComponent extends PrototypeASTSecArcFilterComponent{
return trustlevelRelations;
}
/**
* Returns identity links for component
*
* @return identities
*/
public List<ASTSecArcIdentity> getAllIdentities() {
if(!componentTypeCalculated) {
checkComponentType();
}
return identities;
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment