Package org.nuxeo.ecm.core.api.local
Class LocalSession
java.lang.Object
org.nuxeo.ecm.core.api.AbstractSession
org.nuxeo.ecm.core.api.local.LocalSession
- All Implemented Interfaces:
Serializable
,AutoCloseable
,CloseableCoreSession
,CoreSession
Local Session: implementation of
CoreSession
beyond AbstractSession
, dealing with low-level stuff.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.nuxeo.ecm.core.api.CoreSession
CoreSession.CopyOption
-
Field Summary
Fields inherited from class org.nuxeo.ecm.core.api.AbstractSession
BINARY_TEXT_SYS_PROP, BLOCKED_PERMISSION_QUERY, CREATE_DOC_COUNT, createDocumentCount, DEFAULT_MAX_RESULTS, DELETE_DOC_COUNT, deleteDocumentCount, DISABLED_ISLATESTVERSION_PROPERTY, EMPTY_PATH, FIND_PROXIES_QUERY, FIND_VERSIONS_QUERY, LEGAL_HOLD_QUERY, LIMIT_RESULTS_PROPERTY, MAX_RESULTS_PROPERTY, registry, RESTRICT_PROXY_CREATION_PROPERTY, RETENTION_QUERY, TRASH_KEEP_CHECKED_IN_PROPERTY, UPDATE_DOC_COUNT, updateDocumentCount
Fields inherited from interface org.nuxeo.ecm.core.api.CoreSession
ALLOW_VERSION_WRITE, BINARY_FULLTEXT_MAIN_KEY, CHANGE_TOKEN, DISABLE_AUDIT_LOGGER, IMPORT_BASE_VERSION_ID, IMPORT_CHECKED_IN, IMPORT_HAS_LEGAL_HOLD, IMPORT_IS_RECORD, IMPORT_IS_RETENTION_ACTIVE, IMPORT_IS_VERSION, IMPORT_LIFECYCLE_POLICY, IMPORT_LIFECYCLE_STATE, IMPORT_LOCK_CREATED, IMPORT_LOCK_OWNER, IMPORT_PROXY_TARGET_ID, IMPORT_PROXY_TYPE, IMPORT_PROXY_VERSIONABLE_ID, IMPORT_RETAIN_UNTIL, IMPORT_VERSION_CREATED, IMPORT_VERSION_DESCRIPTION, IMPORT_VERSION_IS_LATEST, IMPORT_VERSION_IS_LATEST_MAJOR, IMPORT_VERSION_LABEL, IMPORT_VERSION_MAJOR, IMPORT_VERSION_MINOR, IMPORT_VERSION_VERSIONABLE_ID, RETAIN_UNTIL_INDETERMINATE, RETAIN_UNTIL_INDETERMINATE_ISO, SKIP_DESTINATION_CHECK_ON_CREATE, SOURCE, USER_CHANGE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Does nothing.void
destroy()
Does nothing.Gets the principal that created the client session.Returns the repository name against which this core session is bound.Session<?>
Internal method: Gets the current session based on the client session id.Returns the repository name and principal.toString()
Methods inherited from class org.nuxeo.ecm.core.api.AbstractSession
adaptFirstMatchingDocumentWithFacet, applyDefaultPermissions, cancel, canRemoveDocument, canRemoveDocument, checkBlockedDescendants, checkCanRemoveDocument, checkIn, checkOut, checkPermission, checkRetainedDescendants, computeCountUpTo, computeKeyForAtomicCreation, copy, copy, copyProxyAsDocument, copyProxyAsDocument, createDocument, createDocument, createDocumentCountInc, createDocumentModel, createDocumentModel, createDocumentModel, createProxy, createProxyInternal, deleteDocumentCountInc, exists, fillCreateOptions, filterGrantedPermissions, followTransition, followTransition, getACP, getAllowedStateTransitions, getAvailableSecurityPermissions, getBaseVersion, getBinaryFulltext, getChangeToken, getChild, getChildren, getChildren, getChildren, getChildren, getChildren, getChildrenIterator, getChildrenIterator, getChildrenIterator, getChildrenRefs, getContextMapEventInfo, getCurrentLifeCycleState, getDataModel, getDataModelField, getDataModelsField, getDataModelsFieldUp, getDocument, getDocuments, getDocumentSystemProp, getDocumentType, getDocumentWithVersion, getFiles, getFiles, getFirstParentDocumentWithFacet, getFolders, getFolders, getLastDocumentVersion, getLastDocumentVersionRef, getLifeCyclePolicy, getLockInfo, getMaxResults, getOrCreateDocument, getOrCreateDocument, getParentDocument, getParentDocumentRef, getParentDocumentRefs, getParentDocuments, getPermissionsToCheck, getPoliciesQueryTransformers, getPrincipalsToCheck, getProxies, getRetainedProperties, getRetainUntil, getRootDocument, getSecurityService, getSourceDocument, getSuperParentType, getSuperSpace, getValidationService, getVersion, getVersioningService, getVersionLabel, getVersionModel, getVersions, getVersionSeriesId, getVersionsForDocument, getVersionsRefs, getWorkingCopy, hasChild, hasChildren, hasLegalHold, hasPermission, hasPermission, hasPermission, hasPermission, importDocument, importDocuments, isAdministrator, isCheckedOut, isEnforcedRecord, isFlexibleRecord, isLimitedResults, isNegativeAclAllowed, isRecord, isRetentionActive, isTrashed, isUnderRetentionOrLegalHold, loadDataModelsForFacet, makeFlexibleRecord, makeRecord, makeRecord, move, move, newDocumentModel, newEventContext, notifyCheckedInVersion, notifyEvent, notifyVersionChange, orderBefore, publishDocument, publishDocument, query, query, query, query, query, query, query, query, queryAndFetch, queryAndFetch, queryProjection, queryProjection, queryProjection, readModel, readModel, refreshDocument, reinitLifeCycleState, removeChildren, removeDocument, removeDocument, removeDocuments, removeExistingProxies, removeLock, removeNotifyOneDoc, removeOrphanVersions, replaceACE, replaceBlobDigest, resolveParentReference, resolveReference, restoreToVersion, restoreToVersion, restoreToVersion, save, saveDocument, saveDocuments, scroll, scroll, setACP, setACP, setDocumentSystemProp, setLegalHold, setLimitedResults, setLock, setMaxResults, setRetainUntil, setRetentionActive, tracedQuery, unsetRetainUntil, updateDocumentCountInc, updateExistingProxies, updateReadACLs, updateVersionsReadACLs, writeModel, writeModel
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.nuxeo.ecm.core.api.CoreSession
adaptFirstMatchingDocumentWithFacet, applyDefaultPermissions, cancel, canRemoveDocument, checkIn, checkOut, copy, copy, copyProxyAsDocument, copyProxyAsDocument, createDocument, createDocument, createDocumentModel, createDocumentModel, createDocumentModel, createProxy, exists, filterGrantedPermissions, followTransition, followTransition, getACP, getAllowedStateTransitions, getAvailableSecurityPermissions, getBaseVersion, getBinaryFulltext, getChangeToken, getChild, getChildren, getChildren, getChildren, getChildren, getChildren, getChildrenIterator, getChildrenIterator, getChildrenIterator, getChildrenRefs, getCurrentLifeCycleState, getDataModel, getDataModelsField, getDataModelsFieldUp, getDocument, getDocuments, getDocumentSystemProp, getDocumentType, getDocumentWithVersion, getFiles, getFiles, getFolders, getFolders, getLastDocumentVersion, getLastDocumentVersionRef, getLifeCyclePolicy, getLockInfo, getOrCreateDocument, getOrCreateDocument, getParentDocument, getParentDocumentRef, getParentDocumentRefs, getParentDocuments, getPermissionsToCheck, getProxies, getRetainedProperties, getRetainUntil, getRootDocument, getSourceDocument, getSuperParentType, getSuperSpace, getVersion, getVersionLabel, getVersions, getVersionSeriesId, getVersionsForDocument, getVersionsRefs, getWorkingCopy, hasChild, hasChildren, hasLegalHold, hasPermission, hasPermission, importDocuments, isCheckedOut, isEnforcedRecord, isFlexibleRecord, isNegativeAclAllowed, isRecord, isRetentionActive, isTrashed, isUnderRetentionOrLegalHold, makeFlexibleRecord, makeRecord, move, move, newDocumentModel, orderBefore, publishDocument, publishDocument, query, query, query, query, query, query, query, query, queryAndFetch, queryAndFetch, queryProjection, queryProjection, queryProjection, refreshDocument, reinitLifeCycleState, removeChildren, removeDocument, removeDocuments, removeLock, removeOrphanVersions, replaceACE, replaceBlobDigest, restoreToVersion, restoreToVersion, save, saveDocument, saveDocuments, scroll, scroll, setACP, setDocumentSystemProp, setLegalHold, setLock, setRetainUntil, setRetentionActive, unsetRetainUntil, updateReadACLs
-
Field Details
-
repositoryName
-
principal
-
-
Constructor Details
-
LocalSession
-
-
Method Details
-
getRepositoryName
Description copied from interface:CoreSession
Returns the repository name against which this core session is bound.- Specified by:
getRepositoryName
in interfaceCoreSession
- Returns:
- the repository name used currently used as an identifier
-
getSessionId
Description copied from interface:CoreSession
Returns the repository name and principal.- Specified by:
getSessionId
in interfaceCoreSession
- Returns:
- the repository name and principal
-
toString
-
getSession
Description copied from class:AbstractSession
Internal method: Gets the current session based on the client session id.- Specified by:
getSession
in classAbstractSession
- Returns:
- the repository session
-
close
public void close()Description copied from interface:CloseableCoreSession
Does nothing.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseableCoreSession
- Specified by:
close
in interfaceCoreSession
-
destroy
public void destroy()Description copied from interface:CloseableCoreSession
Does nothing.- Specified by:
destroy
in interfaceCloseableCoreSession
-
getPrincipal
Description copied from interface:CoreSession
Gets the principal that created the client session.- Specified by:
getPrincipal
in interfaceCoreSession
- Returns:
- the principal
-