@ThreadSafe public final class StoreSessionFactoryImpl extends SessionFactoryImpl implements StoreSessionFactory
Modifier and Type | Field and Description |
---|---|
static String |
ROLE_DELETE_PROPERTY
The role needed to submit deletes to the server.
|
static String |
ROLE_IMPERSONATE_PROPERTY
The role needed to impersonate an other user.
|
static String |
ROLE_INFO_PROPERTY
The role needed to obtain points informations from server.
|
static String |
ROLE_LISTEN_PROPERTY
The role needed to listen to notices from the server.
|
static String |
ROLE_PURGE_PROPERTY
The role needed to submit purges to the server.
|
static String |
ROLE_QUERY_PROPERTY
The role needed to submit queries to the server.
|
static String |
ROLE_UPDATE_PROPERTY
The role needed to submit updates to the server.
|
BINDING_PROPERTY, DEFAULT_PROXY_STORE_NAME, NAME_PROPERTY, PASSWORD_PROPERTY, STORE_PROPERTIES, USER_PROPERTY
Constructor and Description |
---|
StoreSessionFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
StoreSession |
createStoreSession(UUID uuid,
String clientName)
Creates a store session.
|
protected void |
fillRolesMap()
Fills the role map.
|
protected Session |
newSession(Session.ConnectionMode connectionMode,
Optional<RMIClientSocketFactory> clientSocketFactory,
Optional<RMIServerSocketFactory> serverSocketFactory,
Object reference)
Returns a new session
|
void |
rebind(UUID oldUUID,
UUID newUUID)
Rebinds a UUID.
|
boolean |
setUp(Config config,
KeyedGroups serverProperties,
StoreServer server)
Sets up this remote server session factory.
|
addSession, close, createSecurityContext, createSession, createSession, equals, export, getConfig, getMappedRoles, getRealm, getSessionCount, getSessions, getThisLogger, hashCode, hasRolesMap, hasSecurityContext, isClosed, mapRoles, removeSession, setUp, tearDown, unexport
public static final String ROLE_DELETE_PROPERTY
public static final String ROLE_IMPERSONATE_PROPERTY
public static final String ROLE_INFO_PROPERTY
public static final String ROLE_LISTEN_PROPERTY
public static final String ROLE_PURGE_PROPERTY
public static final String ROLE_QUERY_PROPERTY
public static final String ROLE_UPDATE_PROPERTY
public StoreSession createStoreSession(UUID uuid, String clientName) throws SessionException
createStoreSession
in interface StoreSessionFactory
uuid
- A UUID used to locate the RMI client instance.clientName
- A descriptive name for the client.SessionException
- When the session creation fails.public void rebind(@Nonnull UUID oldUUID, @Nonnull UUID newUUID)
oldUUID
- The old UUID.newUUID
- The new UUID.public boolean setUp(Config config, KeyedGroups serverProperties, StoreServer server)
config
- The config.serverProperties
- The store server properties.server
- The server providing access to the store.protected void fillRolesMap()
This associates internal roles to external required roles.
fillRolesMap
in class SessionFactoryImpl
protected Session newSession(Session.ConnectionMode connectionMode, Optional<RMIClientSocketFactory> clientSocketFactory, Optional<RMIServerSocketFactory> serverSocketFactory, Object reference)
newSession
in class SessionFactoryImpl
connectionMode
- The connection mode.clientSocketFactory
- The optional client socket factory.serverSocketFactory
- The optional server socket factory.reference
- A reference object.Copyright © 2003-2019 Serge Brisson. All Rights Reserved.