Search in sources :

Example 6 with Configuration

use of com.opensymphony.xwork2.config.Configuration in project benchmarx by eMoflon.

the class MediniQVTFamiliesToPersonsConfig method launchFWD.

private void launchFWD() {
    Configuration configuration = (Configuration) config.getContents().get(0);
    // Set direction in the configuration model
    configuration.setFromPersonsToFamilies(false);
    launch(fwdDir);
}
Also used : Configuration(Config.Configuration)

Example 7 with Configuration

use of com.opensymphony.xwork2.config.Configuration in project benchmarx by eMoflon.

the class MediniQVTFamiliesToPersonsConfig method launchBWD.

private void launchBWD() {
    Configuration configuration = (Configuration) config.getContents().get(0);
    // Set direction in the configuration model
    configuration.setFromPersonsToFamilies(true);
    // Copy configuration parameters into configuration model
    boolean preferCreatingParentToChild = configurator.decide(Decisions.PREFER_CREATING_PARENT_TO_CHILD);
    configuration.setPreferParentToChild(preferCreatingParentToChild);
    boolean preferExistingFamilyToNew = configurator.decide(Decisions.PREFER_EXISTING_FAMILY_TO_NEW);
    configuration.setPreferExistingToNewFamily(preferExistingFamilyToNew);
    launch(bwdDir);
}
Also used : Configuration(Config.Configuration)

Aggregations

PackageConfig (com.opensymphony.xwork2.config.entities.PackageConfig)4 Configuration (com.opensymphony.xwork2.config.Configuration)3 ActionConfig (com.opensymphony.xwork2.config.entities.ActionConfig)3 Configuration (Config.Configuration)2 ConfigurationException (com.opensymphony.xwork2.config.ConfigurationException)1 HashSet (java.util.HashSet)1 org.apache.struts2.config (org.apache.struts2.config)1 AccessDeniedException (org.springframework.security.access.AccessDeniedException)1 SecurityMetadataSource (org.springframework.security.access.SecurityMetadataSource)1 InsufficientAuthenticationException (org.springframework.security.authentication.InsufficientAuthenticationException)1 Authentication (org.springframework.security.core.Authentication)1 GrantedAuthority (org.springframework.security.core.GrantedAuthority)1 SecurityContext (org.springframework.security.core.context.SecurityContext)1