public String createRelationshipName(IdentityStoreInvocationContext ctx, String name) throws IdentityException, OperationNotSupportedException { cacheSupport.invalidateIdentityObjectRelationshipNameSearches(getCacheNS(ctx)); cacheSupport.invalidateIdentityObjectRelationshipSearches(getCacheNS(ctx)); cacheSupport.invalidateIdentityObjectSearches(getCacheNS(ctx)); return identityStore.createRelationshipName(ctx, name); }
public IdentityObjectRelationship createRelationship(IdentityStoreInvocationContext invocationCxt, IdentityObject fromIdentity, IdentityObject toIdentity, IdentityObjectRelationshipType relationshipType, String relationshipName, boolean createNames) throws IdentityException { cacheSupport.invalidateIdentityObjectRelationshipNameSearches(getCacheNS(invocationCxt)); cacheSupport.invalidateIdentityObjectRelationshipSearches(getCacheNS(invocationCxt)); cacheSupport.invalidateIdentityObjectSearches(getCacheNS(invocationCxt)); return identityStore.createRelationship(invocationCxt, fromIdentity, toIdentity, relationshipType, relationshipName, createNames); }
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 String removeRelationshipName(IdentityStoreInvocationContext ctx, String name) throws IdentityException, OperationNotSupportedException { cacheSupport.invalidateIdentityObjectRelationshipNameSearches(getCacheNS(ctx)); cacheSupport.invalidateIdentityObjectRelationshipSearches(getCacheNS(ctx)); cacheSupport.invalidateIdentityObjectSearches(getCacheNS(ctx)); cacheSupport.invalidateRelationshipNameProperties(getCacheNS(ctx), name); return identityStore.removeRelationshipName(ctx, name); }
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); }
public IdentityObject createIdentityObject(IdentityStoreInvocationContext invocationCtx, String name, IdentityObjectType identityObjectType) throws IdentityException { IdentityObject io = identityStore.createIdentityObject(invocationCtx, name, identityObjectType); if (io != null) { cacheSupport.invalidateIdentityObjectRelationshipNameSearches(getCacheNS(invocationCtx)); cacheSupport.invalidateIdentityObjectRelationshipSearches(getCacheNS(invocationCtx)); cacheSupport.invalidateIdentityObjectSearches(getCacheNS(invocationCtx)); cacheSupport.invalidateIdentityObjectCount(getCacheNS(invocationCtx), identityObjectType.getName()); } return io; }
public IdentityObject createIdentityObject(IdentityStoreInvocationContext invocationCtx, String name, IdentityObjectType identityObjectType, Map<String, String[]> attributes) throws IdentityException { IdentityObject io = identityStore.createIdentityObject(invocationCtx, name, identityObjectType, attributes); if (io != null) { cacheSupport.invalidateIdentityObjectRelationshipNameSearches(getCacheNS(invocationCtx)); cacheSupport.invalidateIdentityObjectRelationshipSearches(getCacheNS(invocationCtx)); cacheSupport.invalidateIdentityObjectSearches(getCacheNS(invocationCtx)); cacheSupport.invalidateIdentityObjectCount(getCacheNS(invocationCtx), identityObjectType.getName()); } return io; }
public void removeIdentityObject(IdentityStoreInvocationContext invocationCtx, IdentityObject identity) throws IdentityException { identityStore.removeIdentityObject(invocationCtx, identity); cacheSupport.invalidateIdentityObjectRelationshipNameSearches(getCacheNS(invocationCtx)); cacheSupport.invalidateIdentityObjectRelationshipSearches(getCacheNS(invocationCtx)); cacheSupport.invalidateIdentityObjectSearches(getCacheNS(invocationCtx)); cacheSupport.invalidateIdentityObjectAttriubtes(getCacheNS(invocationCtx), identity); cacheSupport.invalidateIdentityObjectCount(getCacheNS(invocationCtx), identity.getIdentityType().getName()); }