public void setRelationshipProperties(IdentityStoreInvocationContext ctx, IdentityObjectRelationship relationship, Map<String, String> properties) throws IdentityException, OperationNotSupportedException { identityStore.setRelationshipProperties(ctx, relationship, properties); cacheSupport.invalidateRelationshipProperties(getCacheNS(ctx), relationship); cacheSupport.putProperties(getCacheNS(ctx), relationship, getRelationshipProperties(ctx, relationship)); }
public void removeRelationshipProperties(IdentityStoreInvocationContext ctx, IdentityObjectRelationship relationship, Set<String> properties) throws IdentityException, OperationNotSupportedException { identityStore.removeRelationshipProperties(ctx, relationship, properties); cacheSupport.invalidateRelationshipProperties(getCacheNS(ctx), relationship); cacheSupport.putProperties(getCacheNS(ctx), relationship, getRelationshipProperties(ctx, relationship)); }
public void removeRelationships(IdentityStoreInvocationContext invocationCtx, IdentityObject identity1, IdentityObject identity2, boolean named) throws IdentityException { identityStore.removeRelationships(invocationCtx, identity1, identity2, named); cacheSupport.invalidateIdentityObjectRelationshipNameSearches(getCacheNS(invocationCtx)); cacheSupport.invalidateIdentityObjectRelationshipSearches(getCacheNS(invocationCtx)); cacheSupport.invalidateIdentityObjectSearches(getCacheNS(invocationCtx)); cacheSupport.invalidateRelationshipProperties(getCacheNS(invocationCtx)); }
public void removeRelationship(IdentityStoreInvocationContext invocationCxt, IdentityObject fromIdentity, IdentityObject toIdentity, IdentityObjectRelationshipType relationshipType, String relationshipName) throws IdentityException { identityStore.removeRelationship(invocationCxt, fromIdentity, toIdentity, relationshipType, relationshipName); cacheSupport.invalidateIdentityObjectRelationshipNameSearches(getCacheNS(invocationCxt)); cacheSupport.invalidateIdentityObjectRelationshipSearches(getCacheNS(invocationCxt)); cacheSupport.invalidateIdentityObjectSearches(getCacheNS(invocationCxt)); IdentityObjectRelationship relationship = new SimpleIdentityObjectRelationship(fromIdentity, toIdentity, relationshipName, relationshipType); cacheSupport.invalidateRelationshipProperties(getCacheNS(invocationCxt), relationship); }