示例#1
0
 /** @param op opobj */
 public void passConfiguration(PENDataOp op) {
   if (null == op) return;
   op.setQxCtx(getQxCtx());
   op.setPenData(getPenData());
   op.setOriginsToPublish(getOriginsToPublish());
   op.setAuthentication(getAuthentication());
   op.setContext(getContext());
   op.setPenPolicy(getPenPolicy());
   try {
     op.setCurrentItem(getCurrentItem());
   } catch (InvalidName ignore) {
     ignore.printStackTrace();
   }
   op.setCurrentIterator(getCurrentIterator());
 }
示例#2
0
 /**
  * @param qxctx context
  * @param originObj origin
  * @param penPolicy policy obj
  * @param penDataObj pen data
  * @param id authentication
  */
 public void initializeRuntime(
     QxContext qxctx,
     Collection origins,
     PENPolicy penPolicy,
     PENData penData,
     Authentication id) {
   this.setQxCtx(qxctx);
   this.setPenData(penData);
   this.setOriginsToPublish(origins);
   this.setAuthentication(id);
   this.setContext(getContext());
   this.setPenPolicy(penPolicy);
   try {
     setCurrentItem(getCurrentItem());
   } catch (InvalidName ignore) {
     ignore.printStackTrace();
   }
   this.setCurrentIterator(getCurrentIterator());
 }