org.jwall.audit.script
Class ScriptEventView<E extends Event>

java.lang.Object
  extended by org.jwall.audit.script.ScriptEventView<E>

public class ScriptEventView<E extends Event>
extends Object

This class defines a bridge to access a user's view from within a script such as a ruby script. The script event view is similar to an AuditEventView but not as powerful.

Author:
Christian Bockermann <chris@jwall.org>

Constructor Summary
ScriptEventView(String user, EventView<E> parentView)
           
 
Method Summary
 Long count(String filterString)
           
 Map<String,Long> count(String variable, String filter)
           
 void delete(String txId)
           
 ScriptEvent get(String txId)
           
 List<ScriptEvent> list()
           
 List<ScriptEvent> list(String filter)
           
 List<ScriptEvent> list(String filter, int offset, int max)
           
 void tag(ScriptEvent event, String name)
           
 void untag(ScriptEvent event, String name)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptEventView

public ScriptEventView(String user,
                       EventView<E> parentView)
Method Detail

list

public List<ScriptEvent> list()

list

public List<ScriptEvent> list(String filter)

list

public List<ScriptEvent> list(String filter,
                              int offset,
                              int max)
                       throws Exception
Throws:
Exception

tag

public void tag(ScriptEvent event,
                String name)
         throws Exception
Throws:
Exception

untag

public void untag(ScriptEvent event,
                  String name)
           throws Exception
Throws:
Exception

delete

public void delete(String txId)

count

public Long count(String filterString)
           throws Exception
Throws:
Exception

get

public ScriptEvent get(String txId)
                throws Exception
Throws:
Exception

count

public Map<String,Long> count(String variable,
                              String filter)


Copyright © 2012 jwall.org. All Rights Reserved.