示例#1
0
 @Override
 public Value getValue(String axisId, String valueId) throws PdcException {
   Value theValue = null;
   ClassificationPlan pdc = aClassificationPlan();
   for (Value aValue : pdc.getValuesOfAxisById(axisId)) {
     if (aValue.getPK().getId().equals(valueId)) {
       theValue = aValue;
       break;
     }
   }
   if (theValue == null) {
     throw new PdcException(
         getClass().getSimpleName() + ".getValue()",
         SilverpeasException.ERROR,
         "root.NO_EX_MESSAGE");
   }
   return theValue;
 }
示例#2
0
 @Override
 public List<Value> getAxisValues(int treeId) throws PdcException {
   ClassificationPlan pdc = aClassificationPlan();
   return pdc.getValuesOfAxisById(String.valueOf(treeId));
 }