@Override public String toString() { return "JBossCacheIdentityStoreWrapper (IdentityStore=" + identityStore.getId() + ")"; } }
IdentityStoreInvocationContext resolveIdentityStoreInvocationContext(IdentityStoreInvocationContext invocationCtx) { return resolveInvocationContext(defaultIdentityStore.getId(), invocationCtx); }
IdentityStoreInvocationContext resolveInvocationContext(IdentityStore targetStore, IdentityStoreInvocationContext invocationCtx) { return resolveInvocationContext(targetStore.getId(), invocationCtx); }
public IdentityStoreSession createIdentityStoreSession() throws IdentityException { Map<String, IdentityStoreSession> sessions = new HashMap<String, IdentityStoreSession>(); sessions.put(defaultAttributeStore.getId(), defaultAttributeStore.createIdentityStoreSession()); if (!sessions.containsKey(defaultIdentityStore.getId())) { sessions.put(defaultIdentityStore.getId(), defaultIdentityStore.createIdentityStoreSession()); } return new RepositoryIdentityStoreSessionImpl(sessions); }
public JBossCacheIdentityStoreWrapper(IdentityStore identityStore, IdentityStoreCacheProvider cacheSupport) throws IdentityException { super(identityStore, cacheSupport); this.identityStore = identityStore; cacheSupport.initResidentNodes(identityStore.getSupportedFeatures().getSupportedIdentityObjectTypes(), identityStore.getSupportedFeatures().getSupportedRelationshipTypes()); log.fine("------------------------------------------------------"); log.fine("JBossCacheIdentityStoreWrapper created ....." + "(IdentityStore: " + identityStore.getId() + ")"); log.fine("------------------------------------------------------"); }
public IdentityStoreSession createIdentityStoreSession() throws IdentityException { Map<String, IdentityStoreSession> sessions = new HashMap<String, IdentityStoreSession>(); for (IdentityStore identityStore : identityStoreMappings.values()) { sessions.put(identityStore.getId(), identityStore.createIdentityStoreSession()); } for (AttributeStore attributeStore : attributeStoreMappings.values()) { if (!sessions.containsKey(attributeStore.getId())) { sessions.put(attributeStore.getId(), attributeStore.createIdentityStoreSession()); } } if (!sessions.containsKey(defaultAttributeStore.getId())) { sessions.put(defaultAttributeStore.getId(), defaultAttributeStore.createIdentityStoreSession()); } if (!sessions.containsKey(defaultIdentityStore.getId())) { sessions.put(defaultIdentityStore.getId(), defaultIdentityStore.createIdentityStoreSession()); } return new RepositoryIdentityStoreSessionImpl(sessions); }
if (!getIdentityStoreMappings().keySet().contains(defaultIdentityStore.getId()))