String allowValue2 = rundata.getParameters().getString("allow_value2");
SecurityAllow allow = null;
if (allowType.equals("user"))
{
allow = new BaseSecurityAllow();
allow.setUser(allowValue);
securityAccess.getAllows().add(allow);
}
else if (allowType.equals("role"))
{
allow = new BaseSecurityAllow();
allow.setRole(allowValue);
securityAccess.getAllows().add(allow);
}
else if (allowType.equals("group"))
{
allow = new BaseSecurityAllow();
allow.setGroup(allowValue);
securityAccess.getAllows().add(allow);
}
else if (allowType.equals("groupRole"))
{
allow = new BaseSecurityAllow();
allow.setGroup(allowValue);
allow.setRole(allowValue2);
securityAccess.getAllows().add(allow);
}