|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.object.AbstractLighthouseContext
com.waveset.object.SimulatedLighthouseContext
A base implementation of LighthouseContext that throws exceptions for unimplemented methods, and stubs out others. Custom contexts may wish to subclass this rather than implement LighthouseContext to reduce the number of methods that need to be implemented.
Field Summary | |
static java.lang.String |
code_id
|
Fields inherited from interface com.waveset.object.LighthouseContext |
COMP_ACCESS_POLICY, COMP_AUTH_CACHE, COMP_LOGIN_CONFIG_INFO, COMP_PROVISIONER, COMP_RECONCILER, COMP_REPOSITORY, COMP_SUBJECT_AUTH_CACHE, COMP_TASK_MANAGER, COMP_WORKFLOW, OP_CACHE, OP_CACHE_TIMEOUT, OP_CLEAR_CACHE, OP_NO_RESULT |
Fields inherited from interface com.waveset.object.ObjectSource |
HIGH_VALUES, OP_ALLOW_NOT_FOUND, OP_ATTRIBUTES, OP_BLOCK_SIZE, OP_BUFFERED, OP_CONDITIONS, OP_END_BEFORE, OP_FAST, OP_FILTER, OP_FORCE, OP_KEEP_LOCK, OP_MAX_ROWS, OP_NO_CACHE, OP_NO_RULE_DRIVEN_MEMBERS, OP_ONLY_NAMES, OP_ORDER_BY, OP_START_AFTER, OP_SUBJECT, OP_SUBTYPES, OP_USER |
Constructor Summary | |
SimulatedLighthouseContext()
Build a new empty context. |
|
SimulatedLighthouseContext(java.lang.String filename)
Build a context persisting data in the given file. |
Method Summary | |
WavesetResult |
checkinObject(PersistentObject obj,
java.util.Map options)
Create a new object. |
WavesetResult |
checkinView(GenericObject view,
java.util.Map options)
Checkin a view. |
GenericObject |
checkoutView(java.lang.String id,
java.util.Map options)
Checkout a view. |
WavesetResult |
commitView(GenericObject view,
java.util.Map options)
Commit a view. |
GenericObject |
createView(java.lang.String id,
java.util.Map options)
Create a view. |
QueryResult |
getObjects(java.lang.Object type,
java.util.Map options)
Get a list of objects of a given type. |
GenericObject |
getSystemConfiguration()
Return the system configuration object. |
GenericObject |
getView(java.lang.String id,
java.util.Map options)
Get a view. |
QueryResult |
listObjects(java.lang.Object type,
java.util.Map options)
Get a list of summary attributes for objects of a given type. |
void |
load()
Load the context from the persistence file. |
void |
load(java.lang.String filename)
Load the context from the given persistence file. |
void |
renameObject(java.lang.Object type,
java.lang.String id,
java.lang.String newName,
java.util.Map options)
Rename an object. |
TaskInstance |
runTask(TaskTemplate tt)
Launch a task defined by a task template. |
void |
save()
Save the current state of the context into the persistence file. |
void |
save(java.lang.String filename)
Save the current state of the context to the given persistence file. |
void |
setFilename(java.lang.String filename)
Set the file to be used for persistent storage. |
void |
unlockView(GenericObject view,
java.util.Map options)
Unlock a view. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String code_id
Constructor Detail |
public SimulatedLighthouseContext()
public SimulatedLighthouseContext(java.lang.String filename)
Method Detail |
public void setFilename(java.lang.String filename)
public void load() throws WavesetException
WavesetException
public void load(java.lang.String filename) throws WavesetException
WavesetException
public void save() throws WavesetException
WavesetException
public void save(java.lang.String filename) throws WavesetException
WavesetException
public GenericObject getSystemConfiguration() throws WavesetException
AbstractLighthouseContext
getSystemConfiguration
in interface ObjectSource
getSystemConfiguration
in class AbstractLighthouseContext
WavesetException
public WavesetResult checkinObject(PersistentObject obj, java.util.Map options) throws ItemNotFound, ItemNotLocked, LockedByAnother, WavesetException
checkinObject
in interface ObjectSource
checkinObject
in class AbstractLighthouseContext
ItemNotFound
ItemNotLocked
LockedByAnother
WavesetException
public void renameObject(java.lang.Object type, java.lang.String id, java.lang.String newName, java.util.Map options) throws ItemNotFound, LockedByAnother, AlreadyExists, WavesetException
The object must unlocked, or locked by the current user. It will be implicitly locked to perform the rename.
renameObject
in interface ObjectSource
renameObject
in class AbstractLighthouseContext
ItemNotFound
LockedByAnother
AlreadyExists
WavesetException
public QueryResult listObjects(java.lang.Object type, java.util.Map options) throws WavesetException
listObjects
in interface ObjectSource
listObjects
in class AbstractLighthouseContext
WavesetException
public QueryResult getObjects(java.lang.Object type, java.util.Map options) throws WavesetException
getObjects
in interface ObjectSource
getObjects
in class AbstractLighthouseContext
WavesetException
public GenericObject getView(java.lang.String id, java.util.Map options) throws WavesetException
ObjectSource
getView
in interface ObjectSource
getView
in class AbstractLighthouseContext
WavesetException
public GenericObject createView(java.lang.String id, java.util.Map options) throws WavesetException
ObjectSource
createView
in interface ObjectSource
createView
in class AbstractLighthouseContext
WavesetException
public GenericObject checkoutView(java.lang.String id, java.util.Map options) throws WavesetException
ObjectSource
checkoutView
in interface ObjectSource
checkoutView
in class AbstractLighthouseContext
WavesetException
public WavesetResult checkinView(GenericObject view, java.util.Map options) throws WavesetException
ObjectSource
checkinView
in interface ObjectSource
checkinView
in class AbstractLighthouseContext
WavesetException
public WavesetResult commitView(GenericObject view, java.util.Map options) throws WavesetException
ObjectSource
commitView
in interface ObjectSource
commitView
in class AbstractLighthouseContext
WavesetException
public void unlockView(GenericObject view, java.util.Map options) throws WavesetException
ObjectSource
unlockView
in interface ObjectSource
unlockView
in class AbstractLighthouseContext
WavesetException
public TaskInstance runTask(TaskTemplate tt) throws WavesetException
runTask
in interface LighthouseContext
runTask
in class AbstractLighthouseContext
WavesetException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |