public class DocCtx extends JsonDoc
| Modifier and Type | Method and Description |
|---|---|
void |
addError(Error e)
Adds an error to this document
|
void |
addErrors(Collection<Error> l)
Adds errors to this document
|
void |
copyOriginalFromThis()
Sets the original document to a copy of this object reference
|
void |
copyUpdatedDocFromOutputDoc()
Sets the unprojected output document to a copy of output document
|
CRUDOperation |
getCRUDOperationPerformed()
Returns the operation performed on this document
|
DataError |
getDataError()
If there are errors for this documents, returns a data error.
|
List<Error> |
getErrors()
Returns the errors associated with this document
|
JsonDoc |
getOriginalDocument()
Returns the copy of the document before any modifications
|
JsonDoc |
getOutputDocument()
Returns the projected output document
|
Object |
getProperty(String name)
Properties for the document context
|
JsonDoc |
getUpdatedDocument()
Returns the copy of the unprojected output document.
|
boolean |
hasErrors()
Returns if the document has any associated errors
|
void |
setCRUDOperationPerformed(CRUDOperation op)
Sets the operation performed on this document
|
void |
setOriginalDocument(JsonDoc doc)
Sets the copy of the document before any modifications
|
void |
setOutputDocument(JsonDoc doc)
Set the projected output document
|
void |
setProperty(String name,
Object value)
Properties for the document context
|
void |
setUpdatedDocument(JsonDoc doc)
Sets a JsonDoc which must contain the unprojected updated document
|
void |
startModifications()
This method is to be called before starting making
modifications on the document, so that a copy of the original
can be saved.
|
public DocCtx(JsonDoc doc)
public void addError(Error e)
public void addErrors(Collection<Error> l)
public boolean hasErrors()
public JsonDoc getOutputDocument()
public void setOutputDocument(JsonDoc doc)
public JsonDoc getOriginalDocument()
public void copyOriginalFromThis()
public void startModifications()
public void setOriginalDocument(JsonDoc doc)
public CRUDOperation getCRUDOperationPerformed()
public void setCRUDOperationPerformed(CRUDOperation op)
public DataError getDataError()
public JsonDoc getUpdatedDocument()
public void copyUpdatedDocFromOutputDoc()
public void setUpdatedDocument(JsonDoc doc)
Copyright © 2015. All rights reserved.