Exemplo n.º 1
0
 public void updateProfileActivityId(
     Identity identity, String activityId, AttachedActivityType type) {
   storage.updateProfileActivityId(identity, activityId, type);
   //
   IdentityKey key = new IdentityKey(new Identity(identity.getId()));
   exoProfileCache.remove(key);
   clearCache();
 }
Exemplo n.º 2
0
  /** {@inheritDoc} */
  public void saveProfile(final Profile profile) throws IdentityStorageException {

    //
    storage.saveProfile(profile);

    //
    IdentityKey key = new IdentityKey(new Identity(profile.getIdentity().getId()));
    exoProfileCache.remove(key);
  }
Exemplo n.º 3
0
  /** {@inheritDoc} */
  public Identity updateIdentity(final Identity identity) throws IdentityStorageException {

    //
    IdentityKey key = new IdentityKey(new Identity(identity.getId()));
    exoIdentityCache.remove(key);
    clearCache();

    //
    return storage.updateIdentity(identity);
  }
Exemplo n.º 4
0
  /** {@inheritDoc} */
  public void saveIdentity(final Identity identity) throws IdentityStorageException {

    //
    storage.saveIdentity(identity);

    //
    IdentityKey key = new IdentityKey(new Identity(identity.getId()));
    exoIdentityCache.put(key, new IdentityData(identity));
    clearCache();
  }
Exemplo n.º 5
0
  /** {@inheritDoc} */
  public void hardDeleteIdentity(final Identity identity) throws IdentityStorageException {

    //
    storage.hardDeleteIdentity(identity);

    //
    IdentityKey key = new IdentityKey(new Identity(identity.getId()));
    IdentityData data = exoIdentityCache.remove(key);
    if (data != null) {
      exoIdentityIndexCache.remove(
          new IdentityCompositeKey(data.getProviderId(), data.getRemoteId()));
    }
    exoProfileCache.remove(key);
    clearCache();
  }
Exemplo n.º 6
0
 public String getProfileActivityId(Profile profile, AttachedActivityType type) {
   return storage.getProfileActivityId(profile, type);
 }
Exemplo n.º 7
0
  /** {@inheritDoc} */
  public void addOrModifyProfileProperties(final Profile profile) throws IdentityStorageException {

    storage.addOrModifyProfileProperties(profile);
  }
Exemplo n.º 8
0
  /** {@inheritDoc} */
  public String getType(final String nodetype, final String property) {

    return storage.getType(nodetype, property);
  }
Exemplo n.º 9
0
  /** {@inheritDoc} */
  public int getIdentitiesCount(final String providerId) throws IdentityStorageException {

    return storage.getIdentitiesCount(providerId);
  }