Nuxeo Enterprise Platform 5.3

org.nuxeo.ecm.webengine.security.guards
Class ScriptGuard

java.lang.Object
  extended by org.nuxeo.ecm.webengine.security.guards.ScriptGuard
All Implemented Interfaces:
Guard

public class ScriptGuard
extends Object
implements Guard

Author:
Bogdan Stefanescu

Field Summary
protected  javax.script.CompiledScript comp
           
protected  javax.script.ScriptEngine engine
           
protected  String script
           
protected  String src
           
protected  String type
           
 
Fields inherited from interface org.nuxeo.ecm.webengine.security.Guard
DEFAULT
 
Constructor Summary
protected ScriptGuard()
           
  ScriptGuard(String type, String script)
           
 
Method Summary
protected static boolean booleanValue(Object obj)
           
 boolean check(Adaptable context)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

script

protected String script

type

protected String type

src

protected String src

engine

protected javax.script.ScriptEngine engine

comp

protected javax.script.CompiledScript comp
Constructor Detail

ScriptGuard

protected ScriptGuard()

ScriptGuard

public ScriptGuard(String type,
                   String script)
Method Detail

check

public boolean check(Adaptable context)
Specified by:
check in interface Guard

booleanValue

protected static boolean booleanValue(Object obj)

toString

public String toString()
Overrides:
toString in class Object

Nuxeo Enterprise Platform 5.3

Copyright © 2010 Nuxeo SAS. All Rights Reserved.