コード例 #1
0
 public ShiftDifferentialRuleType getRuleTypeObj() {
   if (ruleTypeObj == null && StringUtils.isNotEmpty(ruleType)) {
     ruleTypeObj =
         TkServiceLocator.getShiftDifferentialRuleTypeService()
             .getActiveShiftDifferentialRuleType(getRuleType(), getEffectiveLocalDate());
   }
   return ruleTypeObj;
 }
  @Override
  public List<? extends HrBusinessObjectContract> getSearchResults(
      Map<String, String> fieldValues) {

    List<? extends HrBusinessObjectContract> temp = new ArrayList<HrBusinessObjectContract>();
    temp = super.getSearchResults(fieldValues);

    if (temp != null) {
      List<TimeCollectionRule> results = new ArrayList<TimeCollectionRule>();
      for (int i = 0; i < temp.size(); i++) {
        TimeCollectionRule timeCollectionRule = (TimeCollectionRule) temp.get(i);
        results.add(timeCollectionRule);
      }

      return TkServiceLocator.getTimeCollectionRuleService()
          .getTimeCollectionRules(GlobalVariables.getUserSession().getPrincipalId(), results);
    } else {
      return temp;
    }
  }
コード例 #3
0
 public List<ClockLocationRuleIpAddress> getIpAddresses() {
   if (ipAddresses.isEmpty()) {
     TkServiceLocator.getClockLocationRuleService().populateIPAddressesForCLR(this);
   }
   return ipAddresses;
 }