Uses of Class
org.nuxeo.ecm.core.storage.State
-
Packages that use State Package Description org.nuxeo.directory.mongodb org.nuxeo.ecm.core.storage org.nuxeo.ecm.core.storage.dbs org.nuxeo.ecm.core.storage.mem org.nuxeo.ecm.core.storage.mongodb -
-
Uses of State in org.nuxeo.directory.mongodb
Methods in org.nuxeo.directory.mongodb with parameters of type State Modifier and Type Method Description protected String
MongoDBSession. getIdFromState(State state)
-
Uses of State in org.nuxeo.ecm.core.storage
Subclasses of State in org.nuxeo.ecm.core.storage Modifier and Type Class Description static class
State.StateDiff
A diff for aState
.Fields in org.nuxeo.ecm.core.storage declared as State Modifier and Type Field Description static State
State. EMPTY
Methods in org.nuxeo.ecm.core.storage that return State Modifier and Type Method Description static State
StateHelper. deepCopy(State state)
Makes a deep copy of aState
map.static State
StateHelper. deepCopy(State state, boolean threadSafe)
Makes a deep copy of aState
map, optionally thread-safe.Methods in org.nuxeo.ecm.core.storage with parameters of type State Modifier and Type Method Description static State
StateHelper. deepCopy(State state)
Makes a deep copy of aState
map.static State
StateHelper. deepCopy(State state, boolean threadSafe)
Makes a deep copy of aState
map, optionally thread-safe.static State.StateDiff
StateHelper. diff(State a, State b)
Makes a diff copy of twoState
maps.static boolean
StateHelper. equalsLoose(State a, State b)
Compares twoState
s.static boolean
StateHelper. equalsStrict(State a, State b)
Compares twoState
s.static void
StateHelper. resetDeltas(State state)
Changes the deltas stored into actual full values. -
Uses of State in org.nuxeo.ecm.core.storage.dbs
Fields in org.nuxeo.ecm.core.storage.dbs declared as State Modifier and Type Field Description protected State
DBSDocumentState. originalState
When non-null, the original state (otherwise the state hasn't been modified).protected State
DBSDocumentState. state
The current state.protected State
DBSExpressionEvaluator. state
Fields in org.nuxeo.ecm.core.storage.dbs with type parameters of type State Modifier and Type Field Description protected com.google.common.cache.Cache<String,State>
DBSCachingRepository. cache
protected Map<String,State>
DBSTransactionState. undoLog
Undo log.Methods in org.nuxeo.ecm.core.storage.dbs that return State Modifier and Type Method Description protected State
DBSDocument. getChild(State state, String name, Type type)
protected State
DBSDocument. getChildForWrite(State state, String name, Type type)
State
DBSDocumentState. getOriginalState()
Gets the original state for this, needed when creating an undo log.State
DBSDocumentState. getState()
Gets the state.State
DBSTransactionState. getStateForRead(String id)
Returns a state which won't be modified.protected State
DBSTransactionState. materializedKeys(State state)
Returns materialized keys for a state: - Read ACL (flat list of users having browse permission, including inheritance) on a document - Ancestor idsState
DBSCachingConnection. readChildState(String parentId, String name, Set<String> ignored)
State
DBSConnection. readChildState(String parentId, String name, Set<String> ignored)
Reads the state of a child document.State
DBSCachingConnection. readPartialState(String id, Collection<String> keys)
default State
DBSConnection. readPartialState(String id, Collection<String> keys)
Reads the partial state of a document.State
DBSCachingConnection. readState(String id)
State
DBSConnection. readState(String id)
Reads the state of a document.Methods in org.nuxeo.ecm.core.storage.dbs that return types with arguments of type State Modifier and Type Method Description protected com.google.common.cache.Cache<String,State>
DBSCachingRepository. getCache()
protected List<State>
DBSDocument. getChildAsList(State state, String name)
Stream<State>
DBSCachingConnection. getDescendants(String id, Set<String> keys)
Stream<State>
DBSCachingConnection. getDescendants(String id, Set<String> keys, int limit)
Stream<State>
DBSConnection. getDescendants(String id, Set<String> keys)
Returns a stream of descendants from a given root document, in no particular order.default Stream<State>
DBSConnection. getDescendants(String id, Set<String> keys, int limit)
Returns a stream of descendants from a given root document, in no particular order.protected Stream<State>
DBSTransactionState. getDescendants(String id, Set<String> keys, int limit)
protected com.google.common.cache.Cache<String,State>
DBSCachingRepository. newCache(boolean metrics)
List<State>
DBSCachingConnection. queryKeyValue(String key1, Object value1, String key2, Object value2, Set<String> ignored)
List<State>
DBSCachingConnection. queryKeyValue(String key, Object value, Set<String> ignored)
List<State>
DBSConnection. queryKeyValue(String key1, Object value1, String key2, Object value2, Set<String> ignored)
Queries the repository for documents having key1 = value1 and key2 = value2.List<State>
DBSConnection. queryKeyValue(String key, Object value, Set<String> ignored)
Queries the repository for documents having key = value.List<State>
DBSCachingConnection. queryKeyValueWithOperator(String key1, Object value1, String key2, DBSConnection.DBSQueryOperator operator, Object value2, Set<String> ignored)
List<State>
DBSConnection. queryKeyValueWithOperator(String key1, Object value1, String key2, DBSConnection.DBSQueryOperator operator, Object value2, Set<String> ignored)
Queries the repository for documents having key1 = value1 and key2 ${operator} value2.List<State>
DBSCachingConnection. readStates(List<String> ids)
List<State>
DBSConnection. readStates(List<String> ids)
Reads the states of several documents.protected List<State>
DBSDocument. updateList(State state, String name, Property property)
Methods in org.nuxeo.ecm.core.storage.dbs with parameters of type State Modifier and Type Method Description protected boolean
DBSExpressionEvaluator. checkSecurity(State state)
void
DBSCachingConnection. createState(State state)
void
DBSConnection. createState(State state)
Creates a document.Set<String>
DBSTransactionState.BlobKeysFinder. findBlobKeys(State state)
protected void
DBSTransactionState.BlobKeysFinder. findBlobKeys(State state, List<String> path, int start)
protected void
DBSTransactionState.DirtyPathsFinder. findDirtyPaths(State value, String path)
protected void
DBSStateFlattener. flatten(Map<String,Serializable> map, State state, String prefix)
Map<String,Serializable>
DBSStateFlattener. flatten(State state)
Flattens with optional property key mappings.protected State
DBSDocument. getChild(State state, String name, Type type)
protected List<State>
DBSDocument. getChildAsList(State state, String name)
protected State
DBSDocument. getChildForWrite(State state, String name, Type type)
protected String[]
DBSTransactionState. getReadACL(State state)
Deprecated.since 2021.39 useDBSTransactionState.materializedKeys(State)
insteadprotected void
DBSExpressionEvaluator. initializeValuesAndIterators(State state)
Initializes toplevel values and iterators for a given state.List<Map<String,Serializable>>
DBSExpressionEvaluator. matches(State state)
Returns the projection matches for a given state.protected State
DBSTransactionState. materializedKeys(State state)
Returns materialized keys for a state: - Read ACL (flat list of users having browse permission, including inheritance) on a document - Ancestor idsprotected DBSDocumentState
DBSTransactionState. newTransientState(State state)
New transient state for something just read from the repository.protected List<State>
DBSDocument. updateList(State state, String name, Property property)
protected void
DBSDocument. updateList(State state, String name, Field field, String xpath, List<Object> values)
Method parameters in org.nuxeo.ecm.core.storage.dbs with type arguments of type State Modifier and Type Method Description void
DBSCachingConnection. createStates(List<State> states)
default void
DBSConnection. createStates(List<State> states)
Creates documents.Constructors in org.nuxeo.ecm.core.storage.dbs with parameters of type State Constructor Description DBSDocumentState(State base)
Constructs a document state from the copy of an existing base state. -
Uses of State in org.nuxeo.ecm.core.storage.mem
Fields in org.nuxeo.ecm.core.storage.mem with type parameters of type State Modifier and Type Field Description protected Map<String,State>
MemConnection. states
protected Map<String,State>
MemRepository. states
The content of the repository, a map of document id -> object.Methods in org.nuxeo.ecm.core.storage.mem that return State Modifier and Type Method Description State
MemConnection. readChildState(String parentId, String name, Set<String> ignored)
State
MemConnection. readPartialState(String id, Collection<String> keys)
State
MemConnection. readState(String id)
Methods in org.nuxeo.ecm.core.storage.mem that return types with arguments of type State Modifier and Type Method Description Stream<State>
MemConnection. getDescendants(String rootId, Set<String> keys)
Stream<State>
MemConnection. getDescendants(String rootId, Set<String> keys, int limit)
List<State>
MemConnection. queryKeyValue(String key1, Object value1, String key2, Object value2, Set<String> ignored)
List<State>
MemConnection. queryKeyValue(String key, Object value, Set<String> ignored)
List<State>
MemConnection. queryKeyValueWithOperator(String key1, Object value1, String key2, DBSConnection.DBSQueryOperator operator, Object value2, Set<String> ignored)
List<State>
MemConnection. readStates(List<String> ids)
Methods in org.nuxeo.ecm.core.storage.mem with parameters of type State Modifier and Type Method Description protected static void
MemConnection. applyDiff(State state, String key, Serializable value)
Applies a key/value diff in-place onto a baseState
.static void
MemConnection. applyDiff(State state, State.StateDiff stateDiff)
Applies aState.StateDiff
in-place onto a baseState
.void
MemConnection. createState(State state)
protected static boolean
MemConnection. hasAncestor(State state, String id)
-
Uses of State in org.nuxeo.ecm.core.storage.mongodb
Methods in org.nuxeo.ecm.core.storage.mongodb that return State Modifier and Type Method Description State
MongoDBConverter. bsonToState(org.bson.Document doc)
protected State
MongoDBConnection. findOne(org.bson.conversions.Bson filter)
protected State
MongoDBConnection. findOne(org.bson.conversions.Bson filter, org.bson.conversions.Bson projection)
State
MongoDBConnection. readChildState(String parentId, String name, Set<String> ignored)
State
MongoDBConnection. readPartialState(String id, Collection<String> keys)
State
MongoDBConnection. readState(String id)
Methods in org.nuxeo.ecm.core.storage.mongodb that return types with arguments of type State Modifier and Type Method Description protected List<State>
MongoDBConnection. findAll(org.bson.conversions.Bson filter)
Stream<State>
MongoDBConnection. getDescendants(String rootId, Set<String> keys)
Stream<State>
MongoDBConnection. getDescendants(String rootId, Set<String> keys, int limit)
List<State>
MongoDBConnection. queryKeyValue(String key1, Object value1, String key2, Object value2, Set<String> ignored)
List<State>
MongoDBConnection. queryKeyValue(String key, Object value, Set<String> ignored)
List<State>
MongoDBConnection. queryKeyValueWithOperator(String key1, Object value1, String key2, DBSConnection.DBSQueryOperator operator, Object value2, Set<String> ignored)
List<State>
MongoDBConnection. readStates(List<String> ids)
protected Stream<State>
MongoDBConnection. stream(org.bson.conversions.Bson filter)
protected Stream<State>
MongoDBConnection. stream(org.bson.conversions.Bson filter, org.bson.conversions.Bson projection)
protected Stream<State>
MongoDBConnection. stream(org.bson.conversions.Bson filter, org.bson.conversions.Bson projection, int limit)
Logs, runs request and constructs a closeableStream
on top ofMongoCursor
.Methods in org.nuxeo.ecm.core.storage.mongodb with parameters of type State Modifier and Type Method Description void
MongoDBConnection. createState(State state)
org.bson.Document
MongoDBConverter. stateToBson(State state)
Method parameters in org.nuxeo.ecm.core.storage.mongodb with type arguments of type State Modifier and Type Method Description void
MongoDBConnection. createStates(List<State> states)
-