Ejemplo n.º 1
0
 /**
  * Remove an entry from the directory.
  *
  * @param token SSOToken
  * @param entryDN dn of the profile to be removed
  * @param objectType profile type
  * @param recursive if true, remove all sub entries & the object
  * @param softDelete Used to let pre/post callback plugins know that this delete is either a soft
  *     delete (marked for deletion) or a purge/hard delete itself, otherwise, remove the object
  *     only
  */
 public void removeEntry(
     SSOToken token, String entryDN, int objectType, boolean recursive, boolean softDelete)
     throws AMException, SSOException {
   super.removeEntry(token, entryDN, objectType, recursive, softDelete);
   // write through the cache in case of successful delete
   // (only this entry)
   removeFromCache(entryDN);
 }
Ejemplo n.º 2
0
 public void updateUserAttribute(SSOToken token, Set members, String staticGroupDN, boolean toAdd)
     throws AMException {
   super.updateUserAttribute(token, members, staticGroupDN, toAdd);
   // Note here we are updating the cache only after all user attributes
   // are set. Even if the operation fails for a particular user then, we
   // will not be updating the cache. It should be okay as event
   // notification would clean up.
   dirtyCache(members); // TODO: Just remove the modified attr
 }
Ejemplo n.º 3
0
  // ***********************************************************************
  // Overriden Methods of RemoteServicesImpl class below
  // ***********************************************************************
  public void createEntry(
      SSOToken token, String entryName, int objectType, String parentDN, Map attributes)
      throws AMEntryExistsException, AMException, SSOException {

    super.createEntry(token, entryName, objectType, parentDN, attributes);
    String cacheDN =
        AMNamingAttrManager.getNamingAttr(objectType) + "=" + entryName + "," + parentDN;
    removeFromCache(cacheDN);
  }
Ejemplo n.º 4
0
 /**
  * Method Set the attributes of an entry.
  *
  * @param token SSOToken
  * @param entryDN DN of the profile whose template is to be set
  * @param objectType profile type
  * @param stringAttributes a AMHashMap of attributes to be set
  * @param byteAttributes a AMHashMap of attributes to be set
  * @param isAdd <code>true</code> add to existing value; otherwise replace the existing value
  */
 public void setAttributes(
     SSOToken token,
     String entryDN,
     int objectType,
     Map stringAttributes,
     Map byteAttributes,
     boolean isAdd)
     throws AMException, SSOException {
   super.setAttributes(token, entryDN, objectType, stringAttributes, byteAttributes, isAdd);
   // Cache clean ups
   if (objectType == AMObject.USER) {
     // Update cache locally for modified delted user attributes
     updateCache(token, entryDN, stringAttributes, byteAttributes);
   } else if (objectType != AMObject.USER) {
     // Remove the entry from cache
     dirtyCache(entryDN);
   }
 }
Ejemplo n.º 5
0
 public void setGroupFilter(SSOToken token, String entryDN, String filter)
     throws AMException, SSOException {
   // TODO Auto-generated method stub
   super.setGroupFilter(token, entryDN, filter);
 }