public EntitlementCondition getEntitlementCondition() { AndCondition ac = new AndCondition(); ac.setDisplayType(getConditionType().getName()); Set<EntitlementCondition> ecs = new HashSet<EntitlementCondition>(); for (ViewCondition vc : getViewConditions()) { EntitlementCondition ec = vc.getEntitlementCondition(); if (ec != null) { ecs.add(ec); } } if (ecs.size() > 0) { ac.setEConditions(ecs); return ac; } else { return null; } }
public ViewCondition newViewCondition() { ViewCondition vc = new IpRangeViewCondition(); vc.setConditionType(this); return vc; }
public ViewCondition newViewCondition() { ViewCondition vc = new ActiveSessionTimeCondition(); vc.setConditionType(this); return vc; }
public ViewCondition newViewCondition() { ViewCondition vc = new PolicyViewCondition(); vc.setConditionType(this); return vc; }