* @param situation The situation to check.
* @return if the condition is complied.
*/
public boolean isComplied(Situation situation) {
User user = situation.getUser();
Role userRoles[] = user.getRoles();
Role conditionRole = new Role(getExpression().trim());
boolean complied = false;
for (int i = 0; i < userRoles.length; i++) {
if (conditionRole.equals(userRoles[i])) {
complied = true;
}
}
return complied;
}