Example #1
0
        ///
        ///	 * <param name="groupMap">
        ///	 * @return </param>
        ///
        public virtual JDFPROccurrence getCreatePROccurrence(JDFAttributeMap groupMap)
        {
            JDFPROccurrence po = getPROccurrence(groupMap);

            if (po == null)
            {
                po = appendPROccurrence();
                po.setAttributes(groupMap);
            }
            return(po);
        }
Example #2
0
        public virtual JDFPRItem setPR(JDFAction action, int pageSet, JDFAttributeMap prMap, VString groupBy)
        {
            JDFAttributeMap groupMap    = null;
            JDFAttributeMap instanceMap = null;

            if (prMap != null)
            {
                groupMap = new JDFAttributeMap(prMap);
                SupportClass.SetSupport <string> @set = groupBy.getSet();
                groupMap.reduceMap(@set);
                instanceMap = new JDFAttributeMap(prMap);
                instanceMap.removeKeys(@set);
            }
            JDFPRItem pi = getCreatePRItem(action, groupMap);

            JDFPRGroup      pg         = pi.getCreatePRGroup(groupMap);
            JDFPROccurrence pgInstance = pg.getCreatePROccurrence(instanceMap);

            pgInstance.addOccurrences(1, action.getSeverity());
            pi.insertPageSet(pageSet);
            return(pi);
        }