Package org.exoplatform.services.jcr.impl.core

Examples of org.exoplatform.services.jcr.impl.core.NodeImpl.canAddMixin()


{

   public boolean execute(Context ctx) throws Exception
   {
      NodeImpl node = (NodeImpl)ctx.get("currentItem");
      if (node != null && node.canAddMixin("exo:owneable"))
      {
         node.addMixin("exo:owneable");
      }
      return false;
   }
View Full Code Here


{

   public boolean execute(Context ctx) throws Exception
   {
      NodeImpl node = (NodeImpl)ctx.get("currentItem");
      if (node.canAddMixin("dc:elementSet"))
         node.addMixin("dc:elementSet");
      node.setProperty("dc:creator", new String[]{node.getSession().getUserID()});
      ValueFactoryImpl vf = node.getSession().getValueFactory();

      node.setProperty("dc:date", new Value[]{vf.createValue(node.getSession().getTransientNodesManager()
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.