public Map<String, String> getRelationshipNameProperties(IdentityStoreInvocationContext ctx, String name) throws IdentityException, OperationNotSupportedException { //TODO: apply caching return identityStore.getRelationshipNameProperties(ctx, name); }
public Map<String, String> getRelationshipProperties(IdentityStoreInvocationContext ctx, IdentityObjectRelationship relationship) throws IdentityException, OperationNotSupportedException { //TODO: apply caching return identityStore.getRelationshipProperties(ctx, relationship); }
public Map<String, IdentityObjectAttributeMetaData> getAttributesMetaData(IdentityStoreInvocationContext invocationContext, IdentityObjectType identityType) { // Doesn't need to be cached return attributeStore.getAttributesMetaData(invocationContext, identityType); }
public void setRelationshipNameProperties(IdentityStoreInvocationContext ctx, String name, Map<String, String> properties) throws IdentityException, OperationNotSupportedException { // For any IdentityStore that supports named relationships... for (IdentityStore identityStore : configuredIdentityStores) { if (identityStore.getSupportedFeatures().isNamedRelationshipsSupported()) { IdentityStoreInvocationContext storeCtx = resolveInvocationContext(identityStore, ctx); identityStore.setRelationshipNameProperties(storeCtx, name, properties); } } }
public void removeRelationshipNameProperties(IdentityStoreInvocationContext ctx, String name, Set<String> properties) throws IdentityException, OperationNotSupportedException { // For any IdentityStore that supports named relationships... for (IdentityStore identityStore : configuredIdentityStores) { if (identityStore.getSupportedFeatures().isNamedRelationshipsSupported()) { IdentityStoreInvocationContext storeCtx = resolveInvocationContext(identityStore, ctx); identityStore.removeRelationshipNameProperties(storeCtx, name, properties); } } }
protected Session getHibernateSession(IdentityStoreInvocationContext ctx) throws IdentityException { try { return ((Session)ctx.getIdentityStoreSession().getSessionContext()); } catch (Exception e) { throw new IdentityException("Cannot obtain Hibernate Session", e); } }
public Set<String> getRelationshipNames(IdentityStoreInvocationContext ctx, IdentityObject identity, IdentityObjectSearchCriteria criteria) throws IdentityException, OperationNotSupportedException { IdentityStore toStore = resolveIdentityStore(identity); IdentityStoreInvocationContext targetCtx = resolveInvocationContext(toStore, ctx); if (toStore.getSupportedFeatures().isNamedRelationshipsSupported()) { return toStore.getRelationshipNames(targetCtx, identity, criteria); } IdentityStoreInvocationContext defaultCtx = resolveInvocationContext(defaultIdentityStore, ctx); return defaultIdentityStore.getRelationshipNames(defaultCtx, identity, criteria); }
public void removeRelationshipNameProperties(IdentityStoreInvocationContext ctx, String name, Set<String> properties) throws IdentityException, OperationNotSupportedException { //TODO: apply caching identityStore.removeRelationshipNameProperties(ctx, name, properties); }
public void removeRelationshipProperties(IdentityStoreInvocationContext ctx, IdentityObjectRelationship relationship, Set<String> properties) throws IdentityException, OperationNotSupportedException { //TODO: apply caching identityStore.removeRelationshipProperties(ctx, relationship, properties); }
public void setRelationshipNameProperties(IdentityStoreInvocationContext ctx, String name, Map<String, String> properties) throws IdentityException, OperationNotSupportedException { //TODO: apply caching identityStore.setRelationshipNameProperties(ctx, name, properties); }
public void setRelationshipProperties(IdentityStoreInvocationContext ctx, IdentityObjectRelationship relationship, Map<String, String> properties) throws IdentityException, OperationNotSupportedException { //TODO: apply caching identityStore.setRelationshipProperties(ctx, relationship, properties); }
public boolean isActive() { return sessionWrapper.isTransactionActive(); } }
public boolean validateCredential(IdentityStoreInvocationContext ctx, IdentityObject identityObject, IdentityObjectCredential credential) throws IdentityException { // Should not be cached return identityStore.validateCredential(ctx, identityObject, credential); }
public void updateCredential(IdentityStoreInvocationContext ctx, IdentityObject identityObject, IdentityObjectCredential credential) throws IdentityException { // Should not be cached identityStore.updateCredential(ctx, identityObject, credential); }
@Override public String toString() { return "JBossCacheIdentityStoreWrapper (IdentityStore=" + identityStore.getId() + ")"; } }
public Set<String> getSupportedAttributeNames(IdentityStoreInvocationContext invocationContext, IdentityObjectType identityType) throws IdentityException { // Doesn't need to be cached return attributeStore.getSupportedAttributeNames(invocationContext, identityType); }
@Override public String toString() { return "JBossCacheAttributeStoreWrapper (AttributeStore=" + attributeStore.getId() + ")"; }
public void bootstrap(IdentityStoreConfigurationContext configurationContext) throws IdentityException { identityStore.bootstrap(configurationContext); }
public IdentityObject findIdentityObjectByUniqueAttribute(IdentityStoreInvocationContext invocationCtx, IdentityObjectType identityObjectType, IdentityObjectAttribute attribute) throws IdentityException { return attributeStore.findIdentityObjectByUniqueAttribute(invocationCtx, identityObjectType, attribute); }
public void start() { sessionWrapper.startTransaction(); }