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

functions.Operation.ext Maven / Gradle / Ivy

There is a newer version: 1.24.1
Show newest version
extension functions::TypeChecks;
extension functions::SecurityRole;

cached boolean isOperation(uml::Element element):
    element.isInstanceOf("org.eclipse.uml2.uml.Operation");
    
cached uml::Operation asOperation(uml::Element element):
    (uml::Operation) element;
    
cached boolean hasSecurityRoles(uml::Operation operation):
    !operation.getSecurityRoles().isEmpty;

cached List[String] getSecurityRoles(uml::Operation operation):
    operation.getAssociatedSecurityRoles().addAll(operation.owner.getAssociatedSecurityRoles()).toSet().name.sortBy(e|e);

cached List[String] getSecurityRolesForDocumentation(uml::Operation operation):
    operation.getAssociatedSecurityRoles().addAll(operation.owner.getAssociatedSecurityRoles().select(e|e.excludeFromDocumentation == false)).toSet().name.sortBy(e|e);







© 2015 - 2024 Weber Informatics LLC | Privacy Policy