public boolean supportsPartition() { for (IdentityStoreConfiguration storeConfiguration : getStoreConfiguration()) { if (storeConfiguration.supportsPartition()) { return true; } } return false; }
public boolean supportsPartition() { for (IdentityStoreConfiguration storeConfiguration : getStoreConfiguration()) { if (storeConfiguration.supportsPartition()) { return true; } } return false; }
@Override protected List<? extends IdentityStoreConfiguration> create() { List<IdentityStoreConfiguration> configurations = new ArrayList<IdentityStoreConfiguration>(); IdentityStoreConfiguration partitionStoreConfig = null; for (IdentityStoreConfigurationBuilder<?, ?> storeConfigurationBuilder : this.identityStoresConfiguration) { IdentityStoreConfiguration storeConfiguration = storeConfigurationBuilder.create(); if (storeConfiguration.supportsPartition()) { if (partitionStoreConfig != null) { throw MESSAGES.configStoreMultiplePartitionConfigExists(partitionStoreConfig, storeConfiguration); } partitionStoreConfig = storeConfiguration; } for (Class<? extends Relationship> relType : storeConfigurationBuilder.getGlobalRelationshipTypes()) { this.globalRelationships.add(relType); } for (Class<? extends Relationship> relType : storeConfigurationBuilder.getSelfRelationshipTypes()) { this.selfRelationships.add(relType); } configurations.add(storeConfiguration); } return configurations; }
@Override protected List<? extends IdentityStoreConfiguration> create() { List<IdentityStoreConfiguration> configurations = new ArrayList<IdentityStoreConfiguration>(); IdentityStoreConfiguration partitionStoreConfig = null; for (IdentityStoreConfigurationBuilder<?, ?> storeConfigurationBuilder : this.identityStoresConfiguration) { IdentityStoreConfiguration storeConfiguration = storeConfigurationBuilder.create(); if (storeConfiguration.supportsPartition()) { if (partitionStoreConfig != null) { throw MESSAGES.configStoreMultiplePartitionConfigExists(partitionStoreConfig, storeConfiguration); } partitionStoreConfig = storeConfiguration; } for (Class<? extends Relationship> relType : storeConfigurationBuilder.getGlobalRelationshipTypes()) { this.globalRelationships.add(relType); } for (Class<? extends Relationship> relType : storeConfigurationBuilder.getSelfRelationshipTypes()) { this.selfRelationships.add(relType); } configurations.add(storeConfiguration); } return configurations; }
if (storeConfig.supportsPartition()) { partitionCfg = config;
if (storeConfig.supportsPartition()) { partitionCfg = config;
@Override public void setup(C config) { IDENTITY_STORE_LOGGER.storeInitializing(getClass()); this.configuration = config; if (IDENTITY_STORE_LOGGER.isDebugEnabled()) { IDENTITY_STORE_LOGGER.debugf("[%s]: [", this.configuration); IDENTITY_STORE_LOGGER.debugf(" Type: %s", this.configuration.getIdentityStoreType()); IDENTITY_STORE_LOGGER.debugf(" Supports partition: %s", this.configuration.supportsPartition()); IDENTITY_STORE_LOGGER.debugf(" Supports attribute: %s", this.configuration.supportsAttribute()); IDENTITY_STORE_LOGGER.debugf(" Supports credential: %s", this.configuration.supportsCredential()); IDENTITY_STORE_LOGGER.debugf(" Credential Handlers: %s", this.configuration.getCredentialHandlers()); IDENTITY_STORE_LOGGER.debugf(" Supported types: %s", this.configuration.getSupportedTypes().keySet()); IDENTITY_STORE_LOGGER.debugf(" Unsupported types: %s", this.configuration.getUnsupportedTypes().keySet()); IDENTITY_STORE_LOGGER.debugf(" Context Initializers: %s", this.configuration.getContextInitializers()); IDENTITY_STORE_LOGGER.debug("]"); } if (config.supportsCredential()) { initializeCredentialHandlers(); } }
@Override public void setup(C config) { IDENTITY_STORE_LOGGER.storeInitializing(getClass()); this.configuration = config; if (IDENTITY_STORE_LOGGER.isDebugEnabled()) { IDENTITY_STORE_LOGGER.debugf("[%s]: [", this.configuration); IDENTITY_STORE_LOGGER.debugf(" Type: %s", this.configuration.getIdentityStoreType()); IDENTITY_STORE_LOGGER.debugf(" Supports partition: %s", this.configuration.supportsPartition()); IDENTITY_STORE_LOGGER.debugf(" Supports attribute: %s", this.configuration.supportsAttribute()); IDENTITY_STORE_LOGGER.debugf(" Supports credential: %s", this.configuration.supportsCredential()); IDENTITY_STORE_LOGGER.debugf(" Credential Handlers: %s", this.configuration.getCredentialHandlers()); IDENTITY_STORE_LOGGER.debugf(" Supported types: %s", this.configuration.getSupportedTypes().keySet()); IDENTITY_STORE_LOGGER.debugf(" Unsupported types: %s", this.configuration.getUnsupportedTypes().keySet()); IDENTITY_STORE_LOGGER.debugf(" Context Initializers: %s", this.configuration.getContextInitializers()); IDENTITY_STORE_LOGGER.debug("]"); } if (config.supportsCredential()) { initializeCredentialHandlers(); } }