Examples of CaoActionList


Examples of de.mhus.lib.cao.CaoActionList

  @Override
  public CaoOperation execute(CaoList list, Object configuration)
      throws CaoException {
   
    CaoActionList actionList = new CaoActionList();
//TODO    CapCore.getInstance().getFactory().fillWithActions(null,list, actionList);
   
    JackElement element = (JackElement)list.getElements().next();
    CaoAction action = null;
    try {
      if (element.getNode().getPrimaryNodeType().getPrimaryItemName().equals("jcr:content")) {
        action = actionList.getAction("select.open");
      }
    } catch (Exception e) {
      //e.printStackTrace();
    }
   
    if (action == null) {
      try {
        if (element.getNode().getNodes().hasNext()) {
          action = actionList.getAction("select.open.list");
        } else {
          action = actionList.getAction("select.open.attributes");         
        }
      } catch (Exception e) {
        e.printStackTrace();
      }
    }
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.