Constructor and Description |
---|
DBSDocumentState()
Constructs an empty state.
|
DBSDocumentState(State base)
Constructs a document state from the copy of an existing base state.
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(String key) |
Serializable |
get(String key) |
String |
getId() |
String |
getName() |
String |
getParentId() |
String |
getPrimaryType() |
State |
getState()
Gets the state.
|
State.StateDiff |
getStateChange()
Gets a diff of what changed since this document state was read from database or saved.
|
String |
getVersionSeriesId() |
boolean |
isDirty()
Checks if the document state has been changed since its construction or the last call to
setNotDirty() . |
boolean |
isDirtyIgnoringFulltext() |
void |
markDirty()
This must be called if we're about to directly change the internal state.
|
void |
put(String key,
Serializable value) |
void |
setNotDirty() |
String |
toString() |
public DBSDocumentState()
public DBSDocumentState(State base)
public void markDirty()
public boolean isDirty()
setNotDirty()
.public boolean isDirtyIgnoringFulltext()
public void setNotDirty()
public State getState()
#dirty
to inform this object that the
state is dirtied.public State.StateDiff getStateChange()
null
if there was no change, or a State.StateDiff
public Serializable get(String key)
public void put(String key, Serializable value)
public boolean containsKey(String key)
public String getId()
public String getParentId()
public String getName()
public String getPrimaryType()
public String getVersionSeriesId()
Copyright © 2015 Nuxeo SA. All rights reserved.