org.exoplatform.services.workflow.impl.bonita
Class FormCache

java.lang.Object
  extended by org.exoplatform.services.workflow.impl.bonita.FormCache

public class FormCache
extends java.lang.Object

Contains Forms that were previously created so that they do not need to be created every time. Created by Bull R&D

Author:
Rodrigue Le Gall,Brice Revenant Feb 21, 2006

Constructor Summary
FormCache()
           
 
Method Summary
 Form getForm(java.lang.String processId, java.lang.String activity, java.util.Locale locale)
          Retrieves a Form from the cache based on specified information
 void removeForms(java.lang.String processId)
          Remove all Forms corresponding to a Process Model
 void setForm(java.lang.String processId, java.lang.String activity, java.util.Locale locale, Form form)
          Puts a Form in the cache based on specified information
 java.lang.String toString()
          Creates a String representation of the cache for debugging purpose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FormCache

public FormCache()
Method Detail

getForm

public Form getForm(java.lang.String processId,
                    java.lang.String activity,
                    java.util.Locale locale)
Retrieves a Form from the cache based on specified information

Parameters:
processId - identifies the process
activity - identifies the state
locale - locale in which the Form should be retrieved
Returns:
the requested Form or null if missing

removeForms

public void removeForms(java.lang.String processId)
Remove all Forms corresponding to a Process Model

Parameters:
processId - identifies the process

setForm

public void setForm(java.lang.String processId,
                    java.lang.String activity,
                    java.util.Locale locale,
                    Form form)
Puts a Form in the cache based on specified information

Parameters:
processId - identifies the process
activity - identifies the state
locale - locale of the form
form - the Form to be cached

toString

public java.lang.String toString()
Creates a String representation of the cache for debugging purpose

Overrides:
toString in class java.lang.Object
Returns:
a String representation of the cache


Copyright © 2012 eXo Platform SAS. All Rights Reserved.