Uses of Class
org.nuxeo.ecm.core.storage.State
Package
Description
-
Uses of State in org.nuxeo.directory.mongodb
-
Uses of State in org.nuxeo.ecm.core.storage
Modifier and TypeMethodDescriptionstatic State
Makes a deep copy of aState
map.static State
Makes a deep copy of aState
map, optionally thread-safe.Modifier and TypeMethodDescriptionstatic State
Makes a deep copy of aState
map.static State
Makes a deep copy of aState
map, optionally thread-safe.static State.StateDiff
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
Modifier and TypeFieldDescriptionprotected 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
Modifier and TypeFieldDescriptionDBSCachingRepository.cache
DBSTransactionState.undoLog
Undo log.Modifier and TypeMethodDescriptionprotected State
protected State
DBSDocument.getChildForWrite
(State state, String name, Type type) DBSDocumentState.getOriginalState()
Gets the original state for this, needed when creating an undo log.DBSDocumentState.getState()
Gets the 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 idsDBSCachingConnection.readChildState
(String parentId, String name, Set<String> ignored) DBSConnection.readChildState
(String parentId, String name, Set<String> ignored) Reads the state of a child document.DBSCachingConnection.readPartialState
(String id, Collection<String> keys) default State
DBSConnection.readPartialState
(String id, Collection<String> keys) Reads the partial state of a document.Reads the state of a document.Modifier and TypeMethodDescriptionDBSCachingRepository.getCache()
DBSDocument.getChildAsList
(State state, String name) DBSCachingConnection.getDescendants
(String id, Set<String> keys) DBSCachingConnection.getDescendants
(String id, Set<String> keys, int limit) DBSConnection.getDescendants
(String id, Set<String> keys) Returns a stream of descendants from a given root document, in no particular order.DBSConnection.getDescendants
(String id, Set<String> keys, int limit) Returns a stream of descendants from a given root document, in no particular order.DBSTransactionState.getDescendants
(String id, Set<String> keys, int limit) DBSCachingRepository.newCache
(boolean metrics) DBSCachingConnection.queryKeyValue
(String key1, Object value1, String key2, Object value2, Set<String> ignored) DBSCachingConnection.queryKeyValue
(String key, Object value, Set<String> ignored) DBSConnection.queryKeyValue
(String key1, Object value1, String key2, Object value2, Set<String> ignored) Queries the repository for documents having key1 = value1 and key2 = value2.DBSConnection.queryKeyValue
(String key, Object value, Set<String> ignored) Queries the repository for documents having key = value.DBSCachingConnection.queryKeyValueWithOperator
(String key1, Object value1, String key2, DBSConnection.DBSQueryOperator operator, Object value2, Set<String> ignored) 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.DBSCachingConnection.readStates
(List<String> ids) DBSConnection.readStates
(List<String> ids) Reads the states of several documents.DBSDocument.updateList
(State state, String name, Property property) Modifier and TypeMethodDescriptionprotected boolean
DBSExpressionEvaluator.checkSecurity
(State state) void
DBSCachingConnection.createState
(State state) void
DBSConnection.createState
(State state) Creates a document.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
Flattens with optional property key mappings.protected State
DBSDocument.getChildAsList
(State state, String name) protected State
DBSDocument.getChildForWrite
(State state, String name, Type type) protected String[]
DBSTransactionState.getReadACL
(State state) Deprecated.protected void
DBSExpressionEvaluator.initializeValuesAndIterators
(State state) Initializes toplevel values and iterators for a given 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.DBSDocument.updateList
(State state, String name, Property property) protected void
Modifier and TypeMethodDescriptionvoid
DBSCachingConnection.createStates
(List<State> states) default void
DBSConnection.createStates
(List<State> states) Creates documents.ModifierConstructorDescriptionDBSDocumentState
(State base) Constructs a document state from the copy of an existing base state. -
Uses of State in org.nuxeo.ecm.core.storage.mem
Modifier and TypeFieldDescriptionMemConnection.states
MemRepository.states
The content of the repository, a map of document id -> object.Modifier and TypeMethodDescriptionMemConnection.readChildState
(String parentId, String name, Set<String> ignored) MemConnection.readPartialState
(String id, Collection<String> keys) Modifier and TypeMethodDescriptionMemConnection.getDescendants
(String rootId, Set<String> keys) MemConnection.getDescendants
(String rootId, Set<String> keys, int limit) MemConnection.queryKeyValue
(String key1, Object value1, String key2, Object value2, Set<String> ignored) MemConnection.queryKeyValue
(String key, Object value, Set<String> ignored) MemConnection.queryKeyValueWithOperator
(String key1, Object value1, String key2, DBSConnection.DBSQueryOperator operator, Object value2, Set<String> ignored) MemConnection.readStates
(List<String> ids) Modifier and TypeMethodDescriptionprotected 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
Modifier and TypeMethodDescriptionMongoDBConverter.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) MongoDBConnection.readChildState
(String parentId, String name, Set<String> ignored) MongoDBConnection.readPartialState
(String id, Collection<String> keys) Modifier and TypeMethodDescriptionMongoDBConnection.findAll
(org.bson.conversions.Bson filter) MongoDBConnection.getDescendants
(String rootId, Set<String> keys) MongoDBConnection.getDescendants
(String rootId, Set<String> keys, int limit) MongoDBConnection.queryKeyValue
(String key1, Object value1, String key2, Object value2, Set<String> ignored) MongoDBConnection.queryKeyValue
(String key, Object value, Set<String> ignored) MongoDBConnection.queryKeyValueWithOperator
(String key1, Object value1, String key2, DBSConnection.DBSQueryOperator operator, Object value2, Set<String> ignored) MongoDBConnection.readStates
(List<String> ids) MongoDBConnection.stream
(org.bson.conversions.Bson filter) MongoDBConnection.stream
(org.bson.conversions.Bson filter, org.bson.conversions.Bson projection) MongoDBConnection.stream
(org.bson.conversions.Bson filter, org.bson.conversions.Bson projection, int limit) Logs, runs request and constructs a closeableStream
on top ofMongoCursor
.Modifier and TypeMethodDescriptionvoid
MongoDBConnection.createState
(State state) org.bson.Document
MongoDBConverter.stateToBson
(State state)
DBSTransactionState.materializedKeys(State)
instead