box.system.web.flash.concurrent.Callable interface">
|
ColdBox Platform Version 3.1.0 | ||||
| FRAMES | |||||
WEB-INF.cftags.component
coldbox.system.web.flash.AbstractFlashScope
public class AbstractFlashScope
An abstract flash scope that can be used to build ColdBox Flash scopes
| Constructor Summary | |
|---|---|
init(Controller controller)
Constructor |
|
| Method Summary | |
|---|---|
void |
clear()
Clear the temp flash scope and remove all data |
void |
clearFlash()
Clear the flash storage |
void |
discard([string keys=''])
Mark for discard all or a single flash temp variable for another relocation |
boolean |
exists(string name)
Check if an object exists in flash scope |
boolean |
flashExists()
Checks if the flash storage exists and IT HAS DATA to inflate |
any |
get(string name, [any default])
Get an object from flash scope |
private Controller |
getController()
Get the controller reference |
struct |
getFlash()
Get the flash storage structure to inflate it |
string |
getKeys()
Get a list of all the objects in the temp flash scope |
struct |
getScope()
Get the flash temp request storage used throughout a request until flashed at the end of a request |
private Util |
getUtil()
Get the coldbox utility class |
void |
inflateFlash()
Inflate the flash storage into the request collection and request temp storage |
boolean |
isEmpty()
Check if the flash scope is empty or not |
void |
keep([string keys=''])
Keep all or a single flash temp variable alive for another relocation |
void |
persistRC([string include=''], [string exclude=''], [boolean saveNow='false'])
Persist keys from the coldbox request collection in flash scope |
void |
put(string name, any value, [boolean saveNow='false'], [boolean keep='true'], [boolean inflateToRC='true'], [boolean inflateToPRC='false'], [boolean autoPurge='true'])
Put an object in temp flash scope |
void |
putAll(struct map, [boolean saveNow='false'], [boolean keep='true'], [boolean inflateToRC='true'], [boolean inflateToPRC='false'], [boolean autoPurge='true'])
Put a map of name-value pairs into the flash scope |
void |
remove(string name, [boolean saveNow='false'])
Remove an object from flash scope |
void |
removeFlash()
Remove the entire flash storage |
void |
saveFlash()
Save the flash storage in preparing to go to the next request |
numeric |
size()
Get the size of the items in flash scope |
private void |
statusMarks([string keys=''], boolean keep)
Change the status marks of the temp scope entries |
| Methods inherited from class WEB-INF.cftags.component |
|---|
|
| Constructor Detail |
|---|
public init(Controller controller)
controller - The ColdBox Controller| Method Detail |
|---|
public void clear()
public void clearFlash()
public void discard([string keys=''])
keys - The keys in the flash ram that you want to be discarded until the next relocationpublic boolean exists(string name)
name - The name of the valuepublic boolean flashExists()
public any get(string name, [any default])
name - The name of the valuedefault - The default value if the scope does not have the objectprivate Controller getController()
public struct getFlash()
public string getKeys()
public struct getScope()
private Util getUtil()
public void inflateFlash()
public boolean isEmpty()
public void keep([string keys=''])
keys - The keys in the flash ram that you want to mark to be kept until the next relocationpublic void persistRC([string include=''], [string exclude=''], [boolean saveNow='false'])
include - MUTEX: A list of request collection keys you want to persistexclude - MUTEX: A list of request collection keys you want to exclude from persisting. If sent, then we inspect all rc keys.saveNow - Whether to send the contents for saving to flash ram or not. Default is to wait for a relocationpublic void put(string name, any value, [boolean saveNow='false'], [boolean keep='true'], [boolean inflateToRC='true'], [boolean inflateToPRC='false'], [boolean autoPurge='true'])
name - The name of the valuevalue - The value to storesaveNow - Whether to send the contents for saving to flash ram or not. Default is to wait for a relocationkeep - Whether to mark the entry to be kept after saving to the flash storage.inflateToRC - Whether this flash variable is inflated to the Request Collection or notinflateToPRC - Whether this flash variable is inflated to the Private Request Collection or notautoPurge - Flash memory auto purges variables for you. You can control this purging by saying false to autoPurge.public void putAll(struct map, [boolean saveNow='false'], [boolean keep='true'], [boolean inflateToRC='true'], [boolean inflateToPRC='false'], [boolean autoPurge='true'])
map - The map of data to flashsaveNow - Whether to send the contents for saving to flash ram or not. Default is to wait for a relocationkeep - Whether to mark the entry to be kept after saving to the flash storage.inflateToRC - Whether this flash variable is inflated to the Request Collection or notinflateToPRC - Whether this flash variable is inflated to the Private Request Collection or notautoPurge - Flash memory auto purges variables for you. You can control this purging by saying false to autoPurge.public void remove(string name, [boolean saveNow='false'])
name - The name of the valuesaveNow - Whether to send the contents for saving to flash ram or not. Default is to wait for a relocationpublic void removeFlash()
public void saveFlash()
public numeric size()
private void statusMarks([string keys=''], boolean keep)
keys - The keys in the flash ram that you want to be discarded or kept until the next relocationkeep - Keep or Discard
|
ColdBox Platform Version 3.1.0 | ||||
| FRAMES | |||||