@Override public String toString() { return "JBossCacheAttributeStoreWrapper (AttributeStore=" + attributeStore.getId() + ")"; }
public String getId() { return attributeStore.getId(); }
IdentityStoreInvocationContext resolveAttributeStoreInvocationContext(IdentityStoreInvocationContext invocationCtx) { return resolveInvocationContext(defaultAttributeStore.getId(), invocationCtx); }
IdentityStoreInvocationContext resolveInvocationContext(AttributeStore targetStore, IdentityStoreInvocationContext invocationCtx) { return resolveInvocationContext(targetStore.getId(), invocationCtx); }
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); }
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); }