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 StringMongoDBSession. 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 classState.StateDiffA diff for aState.Fields in org.nuxeo.ecm.core.storage declared as State Modifier and Type Field Description static StateState. EMPTYMethods in org.nuxeo.ecm.core.storage that return State Modifier and Type Method Description static StateStateHelper. deepCopy(State state)Makes a deep copy of aStatemap.static StateStateHelper. deepCopy(State state, boolean threadSafe)Makes a deep copy of aStatemap, optionally thread-safe.Methods in org.nuxeo.ecm.core.storage with parameters of type State Modifier and Type Method Description static StateStateHelper. deepCopy(State state)Makes a deep copy of aStatemap.static StateStateHelper. deepCopy(State state, boolean threadSafe)Makes a deep copy of aStatemap, optionally thread-safe.static State.StateDiffStateHelper. diff(State a, State b)Makes a diff copy of twoStatemaps.static booleanStateHelper. equalsLoose(State a, State b)Compares twoStates.static booleanStateHelper. equalsStrict(State a, State b)Compares twoStates.static voidStateHelper. 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 StateDBSDocumentState. originalStateWhen non-null, the original state (otherwise the state hasn't been modified).protected StateDBSDocumentState. stateThe current state.protected StateDBSExpressionEvaluator. stateFields 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. cacheprotected Map<String,State>DBSTransactionState. undoLogUndo log.Methods in org.nuxeo.ecm.core.storage.dbs that return State Modifier and Type Method Description protected StateDBSDocument. getChild(State state, String name, Type type)protected StateDBSDocument. getChildForWrite(State state, String name, Type type)StateDBSDocumentState. getOriginalState()Gets the original state for this, needed when creating an undo log.StateDBSDocumentState. getState()Gets the state.StateDBSTransactionState. getStateForRead(String id)Returns a state which won't be modified.protected StateDBSTransactionState. materializedKeys(State state)Returns materialized keys for a state: - Read ACL (flat list of users having browse permission, including inheritance) on a document - Ancestor idsStateDBSCachingConnection. readChildState(String parentId, String name, Set<String> ignored)StateDBSConnection. readChildState(String parentId, String name, Set<String> ignored)Reads the state of a child document.StateDBSCachingConnection. readPartialState(String id, Collection<String> keys)default StateDBSConnection. readPartialState(String id, Collection<String> keys)Reads the partial state of a document.StateDBSCachingConnection. readState(String id)StateDBSConnection. 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 booleanDBSExpressionEvaluator. checkSecurity(State state)voidDBSCachingConnection. createState(State state)voidDBSConnection. createState(State state)Creates a document.Set<String>DBSTransactionState.BlobKeysFinder. findBlobKeys(State state)protected voidDBSTransactionState.BlobKeysFinder. findBlobKeys(State state, List<String> path, int start)protected voidDBSTransactionState.DirtyPathsFinder. findDirtyPaths(State value, String path)protected voidDBSStateFlattener. flatten(Map<String,Serializable> map, State state, String prefix)Map<String,Serializable>DBSStateFlattener. flatten(State state)Flattens with optional property key mappings.protected StateDBSDocument. getChild(State state, String name, Type type)protected List<State>DBSDocument. getChildAsList(State state, String name)protected StateDBSDocument. getChildForWrite(State state, String name, Type type)protected String[]DBSTransactionState. getReadACL(State state)Deprecated.since 2021.39 useDBSTransactionState.materializedKeys(State)insteadprotected voidDBSExpressionEvaluator. 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 StateDBSTransactionState. 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 DBSDocumentStateDBSTransactionState. 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 voidDBSDocument. 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 voidDBSCachingConnection. createStates(List<State> states)default voidDBSConnection. 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. statesprotected Map<String,State>MemRepository. statesThe 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 StateMemConnection. readChildState(String parentId, String name, Set<String> ignored)StateMemConnection. readPartialState(String id, Collection<String> keys)StateMemConnection. 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 voidMemConnection. applyDiff(State state, String key, Serializable value)Applies a key/value diff in-place onto a baseState.static voidMemConnection. applyDiff(State state, State.StateDiff stateDiff)Applies aState.StateDiffin-place onto a baseState.voidMemConnection. createState(State state)protected static booleanMemConnection. 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 StateMongoDBConverter. bsonToState(org.bson.Document doc)protected StateMongoDBConnection. findOne(org.bson.conversions.Bson filter)protected StateMongoDBConnection. findOne(org.bson.conversions.Bson filter, org.bson.conversions.Bson projection)StateMongoDBConnection. readChildState(String parentId, String name, Set<String> ignored)StateMongoDBConnection. readPartialState(String id, Collection<String> keys)StateMongoDBConnection. 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 closeableStreamon top ofMongoCursor.Methods in org.nuxeo.ecm.core.storage.mongodb with parameters of type State Modifier and Type Method Description voidMongoDBConnection. createState(State state)org.bson.DocumentMongoDBConverter. stateToBson(State state)Method parameters in org.nuxeo.ecm.core.storage.mongodb with type arguments of type State Modifier and Type Method Description voidMongoDBConnection. createStates(List<State> states)
-