/** * 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); }
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 }
// *********************************************************************** // 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); }
/** * 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); } }
public void setGroupFilter(SSOToken token, String entryDN, String filter) throws AMException, SSOException { // TODO Auto-generated method stub super.setGroupFilter(token, entryDN, filter); }