Examples of StateItem


Examples of org.conventionsframework.model.StateItem

            throw new RuntimeException("cannot build StateItem without a state");
        }
        if (facesRedirect) {
            addFacesRedirect();
        }
        return new StateItem(outcome,entity, state,value,title,type,ajax,callback,update,global,resetValue,immediate, oncomplete,addEntityIdParam);
    }
View Full Code Here

Examples of org.conventionsframework.model.StateItem

            return;
        }
        if (itemIndex != -1) {
            Iterator<StateItem> i = stateItens.iterator();
            while (i.hasNext()) {
                StateItem stateItem = i.next();
                if (stateItens.indexOf(stateItem) > itemIndex) {
                    i.remove();
                }
            }
        }
        StateItem item = stateItens.get(itemIndex);
        statePullEvent.fire(new StatePullEvent(item));
        buildStateModel();
        invokeCallback(item);
    }
View Full Code Here

Examples of org.conventionsframework.model.StateItem

                        Level.SEVERE, null, ex);
            }
        }

        // update data in the managed bean
        StateItem item = stateItens.peekLast();
        statePullEvent.fire(new StatePullEvent(item));
        buildStateModel();
        invokeCallback(item);
        return item.getOutcome();
    }
View Full Code Here

Examples of org.conventionsframework.model.StateItem

            return;
        } else {//only a state annotation is present
            BeanState beanState = AnnotationUtils.findStateAnnotation(getClass());
            if (beanState != null) {
                if (beanState.beanState().equals(this.getBeanState().getStateName())) {
                    statePushEvent.fire(new StatePushEvent(new StateItem(beanState.outcome(), getEntity(), getBeanState(), beanState.value(), beanState.title(), this.getClass(), beanState.ajax(), beanState.callback(), beanState.update(),beanState.global(),beanState.resetValues(),beanState.immediate(),beanState.oncomplete(),beanState.addEntityIdParam())));
                }
            }
        }
    }
View Full Code Here

Examples of org.conventionsframework.model.StateItem

            } else {//only a state annotation is present
                BeanState state = AnnotationUtils.findStateAnnotation(getClass());
                if (states != null) {
                    if (state.beanState().equals(this.getBeanState().getStateName())) {
                        statePushEvent.fire(new StatePushEvent(new StateItem(state.outcome(), getEntity(), getBeanState(), state.value(), state.title(), this.getClass(), state.ajax(), state.callback(), state.update(),state.global(),state.resetValues(),state.immediate(),state.oncomplete(),state.addEntityIdParam())));
                    }
                }
            }
        }
    }
View Full Code Here

Examples of org.conventionsframework.model.StateItem

    private void matchState(BeanState[] value) {

        for (BeanState beanState : value) {
            if (beanState.beanState().equals(this.getBeanState().getStateName())) {
                statePushEvent.fire(new StatePushEvent(new StateItem(beanState.outcome(), getEntity(), getBeanState(), beanState.value(), beanState.title(), this.getClass(), beanState.ajax(), beanState.callback(), beanState.update(),beanState.global(),beanState.resetValues(),beanState.immediate(),beanState.oncomplete(),beanState.addEntityIdParam())));
            }
        }
    }
View Full Code Here

Examples of org.jboss.cache.aop.test.propagation.StateItem

      this.rootNode_ = new NodeImpl();
      rootNode_.setNodeFDN(rdn);
      rootNode_.setNodeRDN(rdn);
      rootNode_.setPropagationRule(orRule_);

      StateItem summary = new StateItemImpl(0);
      summary.setState(PropagationRule.STATE_CLEAR);
      rootNode_.setSummaryStateItem(summary);

      registMap(rootNode_);
   }
View Full Code Here

Examples of org.jboss.cache.aop.test.propagation.StateItem

         node.setPropagationRule(orRule_);

         node.setParentNode(parent);
         parent.addChildNode(node);

         StateItem summary = new StateItemImpl(0);
         summary.setState(PropagationRule.STATE_CLEAR);
         node.setSummaryStateItem(summary);

         registMap(node);

         PropagationRule rule = node.getPropagationRule();
View Full Code Here

Examples of org.jboss.cache.aop.test.propagation.StateItem

   }

   public void addStateItem(String parentFdn, long itemId, long defaultState) {
      Node node = findNode(parentFdn);
      if (node != null) {
         StateItem item = new StateItemImpl(itemId);
         item.setState(defaultState);

         node.addStateItem(item);

         PropagationRule rule = node.getPropagationRule();
         rule.summaryUpperPropagate(node);
View Full Code Here

Examples of org.jboss.cache.aop.test.propagation.StateItem

      String itemPrefix = prefix + " | ";
      List items = node.getStateItems();
      int size = items.size();
      for (int idx = 0; idx < size; idx++) {
         StateItem item = (StateItem) items.get(idx);
         printStateItem(item, itemPrefix);
      }

      String childPrefix = prefix + " + ";
      List children = node.getChildren();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.