Class SessionImpl
- java.lang.Object
- 
- org.nuxeo.ecm.core.storage.sql.SessionImpl
 
- 
- All Implemented Interfaces:
- AutoCloseable,- Session
 
 public class SessionImpl extends Object implements Session The session is the main high level access point to data from the underlying database.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description protected static classSessionImpl.QueryResultContext- 
Nested classes/interfaces inherited from interface org.nuxeo.ecm.core.storage.sql.SessionSession.PathResolver
 
- 
 - 
Field SummaryFields Modifier and Type Field Description protected booleanchangeTokenEnabledstatic StringCOMPAT_REPOSITORY_NAME_KEYSet this system property to false if you don't want repositories to be looked up under the compatibility name "default" in the "repositories" table.PersistenceContextcontextprotected FulltextDescriptorfulltextDescriptorprotected Set<SessionImpl.QueryResultContext>queryResultsprotected io.dropwizard.metrics5.MetricRegistryregistryprotected RepositoryImplrepository
 - 
Constructor SummaryConstructors Constructor Description SessionImpl(RepositoryImpl repository, Model model, Mapper mapper)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeaddChildNode(Serializable id, Node parent, String name, Long pos, String typeName, boolean complexProp)Creates a new child node with given id (used for import).NodeaddChildNode(Node parent, String name, Long pos, String typeName, boolean complexProp)Creates a new child node.booleanaddMixinType(Node node, String mixin)Adds a mixin to a node.protected NodeaddNode(Serializable id, Serializable parentId, String name, Long pos, String typeName, boolean complexProp)NodeaddProxy(Serializable targetId, Serializable versionableId, Node parent, String name, Long pos)Creates a proxy for a version node.NodecheckIn(Node node, String label, String checkinComment)Checks in a checked-out node: creates a new version with a copy of its information.protected voidcheckInvalidationsConflict()Post transaction check invalidations processing.voidcheckOut(Node node)Checks out a checked-in node.intcleanupDeletedDocuments(int max, Calendar beforeTime)protected intclearCaches()Clears all the caches.voidclose()protected voidcloseQueryResults()protected voidcloseSession()voidcommit()Nodecopy(Node source, Node parent, String name, Consumer<Node> afterRecordCopy)Copies a node to a new location with a new name.protected voiddoFlush()voidend()protected voidfindPrefetchedFragments(SimpleFragment hierFragment, List<RowId> bulkRowIds, Set<Serializable> proxyIds)Finds prefetched fragments for a hierarchy fragment, takes note of the ones that are proxies.protected voidflush()protected SerializablegenerateNewId(Serializable id)Generates a new id, or used a pre-generated one (import).Map<String,String>getBinaryFulltext(Serializable id, Document doc)Gets the fulltext extracted from the binary fields.longgetCacheMapperSize()longgetCachePristineSize()longgetCacheSelectionSize()longgetCacheSize()NodegetChildNode(Node parent, String name, boolean complexProp)Gets a child node given its parent and name.List<Node>getChildren(Node parent, String name, boolean complexProp)Gets the children of a node.protected Set<String>getChildrenNames(String primaryType, List<String> mixins)Gets complex children names defined by the primary type and the list of mixins.protected SerializablegetContainingDocument(Serializable id)protected PersistenceContextgetContext()protected List<Work>getFulltextWorks()Gets the fulltext updates to do.protected List<Fragment>getHierarchyAndAncestors(Collection<Serializable> ids)Fetches the hierarchy fragment for the given rows and all their ancestors.NodegetLastVersion(Serializable versionSeriesId)Gets the last version for a given version series id.LockManagergetLockManager()Gets the lock manager for this session.MappergetMapper()Gets the low-level Mapper for this session.ModelgetModel()Gets theModelassociated to this session.NodegetNodeById(Serializable id)Gets a node given its id.protected NodegetNodeById(Serializable id, boolean prefetch)NodegetNodeByPath(String path, Node node)Gets a node given its absolute path, or given an existing node and a relative path.protected List<Node>getNodes(List<Serializable> ids)List<Node>getNodesByIds(Collection<Serializable> ids)Gets several nodes given their ids.List<Node>getNodesByIds(Collection<Serializable> ids, boolean prefetch)NodegetParentNode(Node node)Gets the parent of a node.StringgetPath(Node node)Gets the absolute path of a node.List<Node>getProxies(Node document)Finds the proxies for a document.List<Node>getProxies(Node document, Node parent)Finds the proxies for a document.StringgetRepositoryName()Gets the session repository name.NodegetRootNode()Gets the root node of the repository.NodegetVersionByLabel(Serializable versionSeriesId, String label)Gets a version given its version series id and label.List<Node>getVersions(Serializable versionSeriesId)Gets all the versions for a given version series id.booleanhasChildNode(Node parent, String name, boolean complexProp)Checks if a child node with the given name exists.booleanhasChildren(Node parent, boolean complexProp)Checks it a node has children.booleanisChangeTokenEnabled()Checks if change token management is enabled.booleanisFulltextStoredInBlob()Checks if fulltext extracted from the binary fields is internally stored as a blob.protected booleanisIdNew(Serializable id)protected voidmarkIndexingInProgress(Set<Serializable> dirtyIds)Mark indexing in progress, so that future copies (including versions) will be indexed as well.voidmarkReferencedBlobs(BiConsumer<String,String> markerCallback)voidmarkUserChange(Serializable id)Marks the document as being modified by a user change.Nodemove(Node source, Node parent, String name)Moves a node to a new location with a new name.protected Stringnormalize(String path)protected voidnoteQueryResult(IterableQueryResult result)voidorderBefore(Node parent, Node source, Node dest)Order the given source child node before the destination child node.protected voidprocessReceivedInvalidations()Processes all invalidations accumulated.PartialList<Serializable>query(String query, String queryType, QueryFilter queryFilter, long countUpTo)Makes a query to the database.PartialList<Serializable>query(String query, QueryFilter queryFilter, boolean countTotal)Makes a NXQL query to the database.IterableQueryResultqueryAndFetch(String query, String queryType, QueryFilter queryFilter, boolean distinctDocuments, Object... params)Makes a query to the database and returns an iterable (which must be closed when done).IterableQueryResultqueryAndFetch(String query, String queryType, QueryFilter queryFilter, Object... params)Makes a query to the database and returns an iterable (which must be closed when done).PartialList<Map<String,Serializable>>queryProjection(String query, String queryType, QueryFilter queryFilter, boolean distinctDocuments, long countUpTo, Object... params)Makes a query to the database.voidrebuildReadAcls()Rebuild the read ACLs for the whole repository.booleanremoveMixinType(Node node, String mixin)Removes a mixin from a node.voidremoveNode(Node node, Consumer<Node> beforeRemove)Removes a node from the storage.voidremovePropertyNode(Node node)Removes a property node from the storage.voidrequireReadAclsUpdate()Read ACLs are optimized ACLs for the read permission, they need to be updated after document creation or ACL change.voidrestore(Node node, Node version)Restores a node to a given version.voidrollback()voidsave()Saves the modifications to persistent storage.protected voidscheduleWork(List<Work> works)ScrollResult<String>scroll(String scrollId)Get the next batch of results containing id of documents, thescrollIdis part of the previousScrollResultresponse.ScrollResult<String>scroll(String query, int batchSize, int keepAliveSeconds)Executes the given query and returns the first batch of results containing id of documents, next batch must be requested within thekeepAliveSecondsdelay.ScrollResult<String>scroll(String query, QueryFilter queryFilter, int batchSize, int keepAliveSeconds)Executes the given query and returns the first batch of results containing id of documents, next batch must be requested within thekeepAliveSecondsdelay.protected voidsendInvalidationsToOthers()Post-transaction invalidations notification.voidsetProxyTarget(Node proxy, Serializable targetId)Sets a proxies' target.voidstart()voidupdateReadAcls()Update only the read ACLs that have changed.- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.nuxeo.ecm.core.storage.sql.Sessioncopy, getBinaryFulltext, removeNode
 
- 
 
- 
- 
- 
Field Detail- 
COMPAT_REPOSITORY_NAME_KEYpublic static final String COMPAT_REPOSITORY_NAME_KEY Set this system property to false if you don't want repositories to be looked up under the compatibility name "default" in the "repositories" table.Only do this if you start from an empty database, or if you have migrated the "repositories" table by hand, or if you need to create a new repository in a database already containing a "default" repository (table sharing, not recommended). - See Also:
- Constant Field Values
 
 - 
repositoryprotected final RepositoryImpl repository 
 - 
contextpublic final PersistenceContext context 
 - 
changeTokenEnabledprotected final boolean changeTokenEnabled 
 - 
fulltextDescriptorprotected final FulltextDescriptor fulltextDescriptor 
 - 
registryprotected final io.dropwizard.metrics5.MetricRegistry registry 
 - 
queryResultsprotected final Set<SessionImpl.QueryResultContext> queryResults 
 
- 
 - 
Constructor Detail- 
SessionImplpublic SessionImpl(RepositoryImpl repository, Model model, Mapper mapper) 
 
- 
 - 
Method Detail- 
getMapperpublic Mapper getMapper() Description copied from interface:SessionGets the low-level Mapper for this session.
 - 
clearCachesprotected int clearCaches() Clears all the caches. Called by RepositoryManagement.
 - 
getContextprotected PersistenceContext getContext() 
 - 
generateNewIdprotected Serializable generateNewId(Serializable id) Generates a new id, or used a pre-generated one (import).
 - 
isIdNewprotected boolean isIdNew(Serializable id) 
 - 
closepublic void close() - Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Session
 
 - 
closeSessionprotected void closeSession() 
 - 
getRepositoryNamepublic String getRepositoryName() Description copied from interface:SessionGets the session repository name.- Specified by:
- getRepositoryNamein interface- Session
- Returns:
- the repository name
 
 - 
getModelpublic Model getModel() Description copied from interface:SessionGets theModelassociated to this session.
 - 
getRootNodepublic Node getRootNode() Description copied from interface:SessionGets the root node of the repository.- Specified by:
- getRootNodein interface- Session
- Returns:
- the root node
 
 - 
savepublic void save() Description copied from interface:SessionSaves the modifications to persistent storage.Modifications will be actually written only upon transaction commit. 
 - 
flushprotected void flush() 
 - 
doFlushprotected void doFlush() 
 - 
getContainingDocumentprotected Serializable getContainingDocument(Serializable id) 
 - 
getFulltextWorksprotected List<Work> getFulltextWorks() Gets the fulltext updates to do. Called at save() time.- Returns:
- a list of Workinstances to schedule post-commit.
 
 - 
markIndexingInProgressprotected void markIndexingInProgress(Set<Serializable> dirtyIds) Mark indexing in progress, so that future copies (including versions) will be indexed as well.
 - 
sendInvalidationsToOthersprotected void sendInvalidationsToOthers() Post-transaction invalidations notification.Called post-transaction by session commit/rollback or transactionless save. 
 - 
processReceivedInvalidationsprotected void processReceivedInvalidations() Processes all invalidations accumulated.Called pre-transaction by start or transactionless save; 
 - 
checkInvalidationsConflictprotected void checkInvalidationsConflict() Post transaction check invalidations processing.
 - 
getNodeByIdprotected Node getNodeById(Serializable id, boolean prefetch) 
 - 
getNodeByIdpublic Node getNodeById(Serializable id) Description copied from interface:SessionGets a node given its id.- Specified by:
- getNodeByIdin interface- Session
- Parameters:
- id- the id
- Returns:
- the node, or nullif not found
 
 - 
getNodesByIdspublic List<Node> getNodesByIds(Collection<Serializable> ids, boolean prefetch) 
 - 
findPrefetchedFragmentsprotected void findPrefetchedFragments(SimpleFragment hierFragment, List<RowId> bulkRowIds, Set<Serializable> proxyIds) Finds prefetched fragments for a hierarchy fragment, takes note of the ones that are proxies.
 - 
getNodesByIdspublic List<Node> getNodesByIds(Collection<Serializable> ids) Description copied from interface:SessionGets several nodes given their ids.- Specified by:
- getNodesByIdsin interface- Session
- Parameters:
- ids- the ids
- Returns:
- the nodes, in the same order as the ids, with elements being nullif not found
 
 - 
getParentNodepublic Node getParentNode(Node node) Description copied from interface:SessionGets the parent of a node.The root has a nullparent.- Specified by:
- getParentNodein interface- Session
- Parameters:
- node- the node
- Returns:
- the parent node, or nullfor the root's parent
 
 - 
getPathpublic String getPath(Node node) Description copied from interface:SessionGets the absolute path of a node.
 - 
getNodeByPathpublic Node getNodeByPath(String path, Node node) Description copied from interface:SessionGets a node given its absolute path, or given an existing node and a relative path.- Specified by:
- getNodeByPathin interface- Session
- Parameters:
- path- the path
- node- the node (ignored for absolute paths)
- Returns:
- the node, or nullif not found
 
 - 
addMixinTypepublic boolean addMixinType(Node node, String mixin) Description copied from interface:SessionAdds a mixin to a node.Does nothing if the mixin was already present on the node. - Specified by:
- addMixinTypein interface- Session
- Parameters:
- node- the node
- mixin- the mixin name
- Returns:
- trueif the mixin was added, or- falseif it is already present
 
 - 
removeMixinTypepublic boolean removeMixinType(Node node, String mixin) Description copied from interface:SessionRemoves a mixin from a node.It's not possible to remove a mixin coming from the primary type. - Specified by:
- removeMixinTypein interface- Session
- Parameters:
- node- the node
- mixin- the mixin
- Returns:
- trueif the mixin was removed, or- falseif it isn't present or is present on the type or does not exist
 
 - 
scrollpublic ScrollResult<String> scroll(String query, int batchSize, int keepAliveSeconds) Description copied from interface:SessionExecutes the given query and returns the first batch of results containing id of documents, next batch must be requested within thekeepAliveSecondsdelay.
 - 
scrollpublic ScrollResult<String> scroll(String query, QueryFilter queryFilter, int batchSize, int keepAliveSeconds) Description copied from interface:SessionExecutes the given query and returns the first batch of results containing id of documents, next batch must be requested within thekeepAliveSecondsdelay.
 - 
scrollpublic ScrollResult<String> scroll(String scrollId) Description copied from interface:SessionGet the next batch of results containing id of documents, thescrollIdis part of the previousScrollResultresponse.
 - 
getChildrenNamesprotected Set<String> getChildrenNames(String primaryType, List<String> mixins) Gets complex children names defined by the primary type and the list of mixins.
 - 
addChildNodepublic Node addChildNode(Node parent, String name, Long pos, String typeName, boolean complexProp) Description copied from interface:SessionCreates a new child node.- Specified by:
- addChildNodein interface- Session
- Parameters:
- parent- the parent to which the child is added
- name- the child name
- pos- the child position, or- null
- typeName- the child type
- complexProp- whether this is a complex property (- true) or a regular child (- false)
- Returns:
- the new node
 
 - 
addChildNodepublic Node addChildNode(Serializable id, Node parent, String name, Long pos, String typeName, boolean complexProp) Description copied from interface:SessionCreates a new child node with given id (used for import).- Specified by:
- addChildNodein interface- Session
- Parameters:
- id- the id
- parent- the parent to which the child is added
- name- the child name
- pos- the child position, or- null
- typeName- the child type
- complexProp- whether this is a complex property (- true) or a regular child (- false)
- Returns:
- the new node
 
 - 
addNodeprotected Node addNode(Serializable id, Serializable parentId, String name, Long pos, String typeName, boolean complexProp) 
 - 
addProxypublic Node addProxy(Serializable targetId, Serializable versionableId, Node parent, String name, Long pos) Description copied from interface:SessionCreates a proxy for a version node.
 - 
setProxyTargetpublic void setProxyTarget(Node proxy, Serializable targetId) Description copied from interface:SessionSets a proxies' target.- Specified by:
- setProxyTargetin interface- Session
- Parameters:
- proxy- the proxy
- targetId- the new target id
 
 - 
hasChildNodepublic boolean hasChildNode(Node parent, String name, boolean complexProp) Description copied from interface:SessionChecks if a child node with the given name exists.There are two kinds of children, the regular children documents and the complex properties. The booleancomplexPropallows a choice between those.- Specified by:
- hasChildNodein interface- Session
- Parameters:
- parent- the parent node
- name- the child name
- complexProp- whether to check complex properties or regular children
- Returns:
- trueif a child node with that name exists
 
 - 
getChildNodepublic Node getChildNode(Node parent, String name, boolean complexProp) Description copied from interface:SessionGets a child node given its parent and name.- Specified by:
- getChildNodein interface- Session
- Parameters:
- parent- the parent node
- name- the child name
- complexProp- whether to check complex properties or regular children
- Returns:
- the child node, or nullis not found
 
 - 
hasChildrenpublic boolean hasChildren(Node parent, boolean complexProp) Description copied from interface:SessionChecks it a node has children.- Specified by:
- hasChildrenin interface- Session
- Parameters:
- parent- the parent node
- complexProp- whether to check complex properties or regular children
- Returns:
- trueif the parent has children
 
 - 
getChildrenpublic List<Node> getChildren(Node parent, String name, boolean complexProp) Description copied from interface:SessionGets the children of a node.- Specified by:
- getChildrenin interface- Session
- Parameters:
- parent- the parent node
- name- the children name to get (for lists of complex properties), or- nullfor all
- complexProp- whether to check complex properties or regular children
- Returns:
- the collection of children
 
 - 
orderBeforepublic void orderBefore(Node parent, Node source, Node dest) Description copied from interface:SessionOrder the given source child node before the destination child node. The source node will be placed before the destination one. If destination isnull, the source node will be appended at the end of the children list.- Specified by:
- orderBeforein interface- Session
- Parameters:
- parent- the parent node
- source- the child node to move
- dest- the child node before which to place the source node, or- nullto move at the end
 
 - 
movepublic Node move(Node source, Node parent, String name) Description copied from interface:SessionMoves a node to a new location with a new name.A Session.save()is automatically done first.
 - 
copypublic Node copy(Node source, Node parent, String name, Consumer<Node> afterRecordCopy) Description copied from interface:SessionCopies a node to a new location with a new name.A Session.save()is automatically done first.
 - 
removeNodepublic void removeNode(Node node, Consumer<Node> beforeRemove) Description copied from interface:SessionRemoves a node from the storage.This is much more complex than removing a property node ( Session.removePropertyNode(org.nuxeo.ecm.core.storage.sql.Node)).- Specified by:
- removeNodein interface- Session
- Parameters:
- node- the node to remove
- beforeRemove- a consumer called on nodes of records before they are removed
- See Also:
- Session.removePropertyNode(org.nuxeo.ecm.core.storage.sql.Node)
 
 - 
removePropertyNodepublic void removePropertyNode(Node node) Description copied from interface:SessionRemoves a property node from the storage.This is much less complex that removing a generic document node ( Session.removeNode(org.nuxeo.ecm.core.storage.sql.Node)).- Specified by:
- removePropertyNodein interface- Session
- Parameters:
- node- the property node to remove
- See Also:
- Session.removeNode(org.nuxeo.ecm.core.storage.sql.Node)
 
 - 
checkInpublic Node checkIn(Node node, String label, String checkinComment) Description copied from interface:SessionChecks in a checked-out node: creates a new version with a copy of its information.A Session.save()is automatically done first.
 - 
checkOutpublic void checkOut(Node node) Description copied from interface:SessionChecks out a checked-in node.
 - 
restorepublic void restore(Node node, Node version) Description copied from interface:SessionRestores a node to a given version.The restored node is checked in. 
 - 
getVersionByLabelpublic Node getVersionByLabel(Serializable versionSeriesId, String label) Description copied from interface:SessionGets a version given its version series id and label.- Specified by:
- getVersionByLabelin interface- Session
- Parameters:
- versionSeriesId- the version series id
- label- the label
- Returns:
- the version node, or nullif not found
 
 - 
getLastVersionpublic Node getLastVersion(Serializable versionSeriesId) Description copied from interface:SessionGets the last version for a given version series id.A Session.save()is automatically done first.- Specified by:
- getLastVersionin interface- Session
- Parameters:
- versionSeriesId- the version series id
- Returns:
- the last version, or nullif no versions exist
 
 - 
getVersionspublic List<Node> getVersions(Serializable versionSeriesId) Description copied from interface:SessionGets all the versions for a given version series id.A Session.save()is automatically done first.- Specified by:
- getVersionsin interface- Session
- Parameters:
- versionSeriesId- the version series id
- Returns:
- the list of versions
 
 - 
getProxiespublic List<Node> getProxies(Node document, Node parent) Description copied from interface:SessionFinds the proxies for a document. If the parent is not null, the search will be limited to its direct children.If the document is a version, then only proxies to that version will be looked up. Otherwise all proxies to the same version series than the document are retrieved. A Session.save()is automatically done first.- Specified by:
- getProxiesin interface- Session
- Parameters:
- document- the document
- parent- the parent, or- null
- Returns:
- the list of proxies
 
 - 
getNodesprotected List<Node> getNodes(List<Serializable> ids) 
 - 
getProxiespublic List<Node> getProxies(Node document) Description copied from interface:SessionFinds the proxies for a document. (The document may be a version or a live document)- Specified by:
- getProxiesin interface- Session
- Parameters:
- document- the document
- Returns:
- the list of proxies, or an empty list
 
 - 
getHierarchyAndAncestorsprotected List<Fragment> getHierarchyAndAncestors(Collection<Serializable> ids) Fetches the hierarchy fragment for the given rows and all their ancestors.- Parameters:
- ids- the fragment ids
 
 - 
querypublic PartialList<Serializable> query(String query, QueryFilter queryFilter, boolean countTotal) Description copied from interface:SessionMakes a NXQL query to the database.
 - 
querypublic PartialList<Serializable> query(String query, String queryType, QueryFilter queryFilter, long countUpTo) Description copied from interface:SessionMakes a query to the database.- Specified by:
- queryin interface- Session
- Parameters:
- query- the query
- queryType- the query type
- queryFilter- the query filter
- countUpTo- if- -1, also count the total size without offset/limit.
 If- 0, don't count the total size.
 If- n, count the total number if there are less than n documents otherwise set the size to- -1.
- Returns:
- the resulting list with total size included
 
 - 
noteQueryResultprotected void noteQueryResult(IterableQueryResult result) 
 - 
closeQueryResultsprotected void closeQueryResults() 
 - 
queryAndFetchpublic IterableQueryResult queryAndFetch(String query, String queryType, QueryFilter queryFilter, Object... params) Description copied from interface:SessionMakes a query to the database and returns an iterable (which must be closed when done).- Specified by:
- queryAndFetchin interface- Session
- Parameters:
- query- the query
- queryType- the query type
- queryFilter- the query filter
- params- optional query-type-dependent parameters
- Returns:
- an iterable, which must be closed when done
 
 - 
queryAndFetchpublic IterableQueryResult queryAndFetch(String query, String queryType, QueryFilter queryFilter, boolean distinctDocuments, Object... params) Description copied from interface:SessionMakes a query to the database and returns an iterable (which must be closed when done).- Specified by:
- queryAndFetchin interface- Session
- Parameters:
- query- the query
- queryType- the query type
- queryFilter- the query filter
- distinctDocuments- if- truethen a maximum of one row per document will be returned
- params- optional query-type-dependent parameters
- Returns:
- an iterable, which must be closed when done
 
 - 
queryProjectionpublic PartialList<Map<String,Serializable>> queryProjection(String query, String queryType, QueryFilter queryFilter, boolean distinctDocuments, long countUpTo, Object... params) Description copied from interface:SessionMakes a query to the database.- Specified by:
- queryProjectionin interface- Session
- Parameters:
- query- the query
- queryType- the query type
- queryFilter- the query filter
- distinctDocuments- if- truethen a maximum of one row per document will be returned
- countUpTo- if- -1, also count the total size without offset/limit.
 If- 0, don't count the total size.
 If- n, count the total number if there are less than n documents otherwise set the size to- -1.
- params- optional query-type-dependent parameters
- Returns:
- a projection
 
 - 
getLockManagerpublic LockManager getLockManager() Description copied from interface:SessionGets the lock manager for this session.- Specified by:
- getLockManagerin interface- Session
- Returns:
- the lock manager
 
 - 
requireReadAclsUpdatepublic void requireReadAclsUpdate() Description copied from interface:SessionRead ACLs are optimized ACLs for the read permission, they need to be updated after document creation or ACL change.This method flag the current session, the read ACLs update will be done automatically at save time. - Specified by:
- requireReadAclsUpdatein interface- Session
 
 - 
updateReadAclspublic void updateReadAcls() Description copied from interface:SessionUpdate only the read ACLs that have changed.- Specified by:
- updateReadAclsin interface- Session
 
 - 
rebuildReadAclspublic void rebuildReadAcls() Description copied from interface:SessionRebuild the read ACLs for the whole repository.- Specified by:
- rebuildReadAclsin interface- Session
 
 - 
markReferencedBlobspublic void markReferencedBlobs(BiConsumer<String,String> markerCallback) 
 - 
cleanupDeletedDocumentspublic int cleanupDeletedDocuments(int max, Calendar beforeTime)
 - 
startpublic void start() 
 - 
endpublic void end() 
 - 
commitpublic void commit() 
 - 
rollbackpublic void rollback() 
 - 
getCacheSizepublic long getCacheSize() 
 - 
getCacheMapperSizepublic long getCacheMapperSize() 
 - 
getCachePristineSizepublic long getCachePristineSize() 
 - 
getCacheSelectionSizepublic long getCacheSelectionSize() 
 - 
isFulltextStoredInBlobpublic boolean isFulltextStoredInBlob() Description copied from interface:SessionChecks if fulltext extracted from the binary fields is internally stored as a blob.- Specified by:
- isFulltextStoredInBlobin interface- Session
- Returns:
- trueif fulltext from binaries is store as a blob
 
 - 
getBinaryFulltextpublic Map<String,String> getBinaryFulltext(Serializable id, Document doc) Description copied from interface:SessionGets the fulltext extracted from the binary fields.- Specified by:
- getBinaryFulltextin interface- Session
 
 - 
isChangeTokenEnabledpublic boolean isChangeTokenEnabled() Description copied from interface:SessionChecks if change token management is enabled.- Specified by:
- isChangeTokenEnabledin interface- Session
 
 - 
markUserChangepublic void markUserChange(Serializable id) Description copied from interface:SessionMarks the document as being modified by a user change.This causes an additional change token increment and check during save. - Specified by:
- markUserChangein interface- Session
- Parameters:
- id- the document id
 
 
- 
 
-