public class UserSessionListener
extends org.eclipse.persistence.sessions.SessionEventAdapter
AbstractSessionListener
initializing the "ignoreUserId"
property with false
.
Using this property, it is possible to ignore user isolation temporarily on entities with the additional criteria
"this.userId = :userId or :ignoreUserId = true"
.Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_USER_ID |
Constructor and Description |
---|
UserSessionListener() |
Modifier and Type | Method and Description |
---|---|
void |
postAcquireClientSession(org.eclipse.persistence.sessions.SessionEvent event) |
protected void |
setSessionProperty(org.eclipse.persistence.sessions.Session session,
String propertyName,
String value) |
missingDescriptor, moreRowsDetected, noRowsModified, outputParametersDetected, postAcquireConnection, postAcquireExclusiveConnection, postAcquireUnitOfWork, postBeginTransaction, postCalculateUnitOfWorkChangeSet, postCommitTransaction, postCommitUnitOfWork, postConnect, postDistributedMergeUnitOfWorkChangeSet, postExecuteQuery, postLogin, postLogout, postMergeUnitOfWorkChangeSet, postReleaseClientSession, postReleaseUnitOfWork, postResumeUnitOfWork, postRollbackTransaction, preBeginTransaction, preCalculateUnitOfWorkChangeSet, preCommitTransaction, preCommitUnitOfWork, preDistributedMergeUnitOfWorkChangeSet, preExecuteQuery, preLogin, preLogout, preMergeUnitOfWorkChangeSet, prepareUnitOfWork, preReleaseClientSession, preReleaseConnection, preReleaseExclusiveConnection, preReleaseUnitOfWork, preRollbackTransaction
public static final String PROPERTY_USER_ID
public void postAcquireClientSession(org.eclipse.persistence.sessions.SessionEvent event)
postAcquireClientSession
in interface org.eclipse.persistence.sessions.SessionEventListener
postAcquireClientSession
in class org.eclipse.persistence.sessions.SessionEventAdapter
Copyright © 2019 SAP SE. All rights reserved.