This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
| "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
| <%@ page language="java" contentType="text/html;charset=UTF-8" %> | |
| <%@ taglib prefix="template" uri="http://www.jahia.org/tags/templateLib" %> | |
| <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> | |
| <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> | |
| <%@ taglib prefix="jcr" uri="http://www.jahia.org/tags/jcr" %> | |
| <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> | |
| <%--@elvariable id="currentNode" type="org.jahia.services.content.JCRNodeWrapper"--%> | |
| <%--@elvariable id="out" type="java.io.PrintWriter"--%> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | ${currentNode.nodes} | |
| ${currentNode.identifier} | |
| ${currentNode.name} | |
| ${currentNode.path} | |
| ${currentNode.url} | |
| ${renderContext.site} | |
| ${renderContext.mainResource} | |
| ${renderContext.loggedIn} | |
| ${renderContext.liveMode} | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | Specific mixins: | |
| mix:title | |
| jmix:editorialContent - full contribute mode | |
| jmix:droppableContent - allow to be drag drop | |
| jmix:list | |
| jmix:cache - add option to override cache | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | currentNode is always available. | |
| 1. Access using EL expression | |
| ${currentNode.properties.propertyName.format} | |
| OR | |
| ${currentNode.properties['propertyname'].format} | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | It's possible to define specific views to fit different output formats. | |
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | val a:Int = 0 // immutable | |
| var b:Int = 0 // mutable | |
| def foo(a: Int): Int = ??? // function definition | |
| // anonymous function. (x: Int) is parameter. x * x is body | |
| (x: Int) => x * x | |
| // above can be rewriten with (with a name f) | |
| def f(x:Int): Int = x * x | |
| // function that accept another function in argument | |
| def f(g: Int => Int, a: Int): Int = f(a) + a | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | ** CREATE ** | |
| // empty node | |
| CREATE (n) RETURN n | |
| // node with properties | |
| CREATE (n {name : 'Fairuz'}) RETURN n | |
| // add relationship | |
| START a=node(1), b=node(2) | |
| CREATE a-[r:FRIEND_OF]->b | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | wsimport -keep http://192.168.56.101:8080/networkinventory/KuwaibaService?wsdl | |
| find . -name '*.class' -exec rm {} \; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | J4pExecRequest | |
| J4pListRequest | |
| J4pReadRequest | |
| J4pSearchRequest | |
| J4pVersionRequest | |
| J4pWriteRequest | |
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list | |
| echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list | |
| apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886 | |
| apt-get update | |
| apt-get install oracle-java7-installer |