コード例 #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();
 }
コード例 #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);
  }
コード例 #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);
  }
コード例 #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();
  }
コード例 #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();
  }
コード例 #6
0
 public String getProfileActivityId(Profile profile, AttachedActivityType type) {
   return storage.getProfileActivityId(profile, type);
 }
コード例 #7
0
  /** {@inheritDoc} */
  public void addOrModifyProfileProperties(final Profile profile) throws IdentityStorageException {

    storage.addOrModifyProfileProperties(profile);
  }
コード例 #8
0
  /** {@inheritDoc} */
  public String getType(final String nodetype, final String property) {

    return storage.getType(nodetype, property);
  }
コード例 #9
0
  /** {@inheritDoc} */
  public int getIdentitiesCount(final String providerId) throws IdentityStorageException {

    return storage.getIdentitiesCount(providerId);
  }