public void deleteEntityConfig(String realm,String entityId) throws IDFFMetaException {
  if (entityId == null) {
    LogUtil.error(Level.INFO,LogUtil.NULL_ENTITY_ID,null);
    throw new IDFFMetaException("nullEntityID",null);
  }
 else {
    if ((realm == null) || (realm.length() == 0)) {
      realm=ROOT_REALM;
    }
    String[] args={entityId,realm};
    try {
      Map oldAttrs=idffMetaConfigInstance.getConfiguration(realm,entityId);
      if (oldAttrs == null || oldAttrs.isEmpty()) {
        LogUtil.error(Level.INFO,LogUtil.ENTITY_DOES_NOT_EXISTS,args);
        throw new IDFFMetaException("entityDoesNotExists",args);
      }
      Set oldValues=(Set)oldAttrs.get(IDFF_ENTITY_CONFIG_ATTR);
      if (oldValues == null || oldValues.isEmpty()) {
        LogUtil.error(Level.INFO,LogUtil.NO_ENTITY_CONFIG_TO_DELETE,args);
        throw new IDFFMetaException("noEntityConfig",args);
      }
      removeEntityFromCOT(realm,entityId);
      Set attr=new HashSet();
      attr.add(IDFF_ENTITY_CONFIG_ATTR);
      idffMetaConfigInstance.deleteConfiguration(realm,entityId,attr);
      LogUtil.access(Level.INFO,LogUtil.DELETE_ENTITY_CONFIG_SUCCEEDED,args);
      IDFFMetaCache.setEntityConfig(realm,entityId,null);
    }
 catch (    ConfigurationException e) {
      debug.error("IDFFMetaManager.deleteEntityConfig:",e);
      LogUtil.error(Level.INFO,LogUtil.DELETE_ENTITY_CONFIG_FAILED,args);
      throw new IDFFMetaException(e);
    }
catch (    UnsupportedOperationException uoe) {
      debug.error("Unsupported operation",uoe);
      LogUtil.error(Level.INFO,LogUtil.UNSUPPORTED_OPERATION,null);
      throw new IDFFMetaException("unsupportedOperation",null);
    }
  }
}

public void deleteEntityConfig ( String realm , String entityId ) throws IDFFMetaException { if ( entityId == null ) { LogUtil . error ( Level . INFO , LogUtil . NULL_ENTITY_ID , null ) ; throw new IDFFMetaException ( "nullEntityID" , null ) ; } else { if ( ( realm == null ) || ( realm . length ( ) == 0 ) ) { realm = ROOT_REALM ; } String [ ] args = { entityId , realm } ; try { Map oldAttrs = idffMetaConfigInstance . getConfiguration ( realm , entityId ) ; if ( oldAttrs == null || oldAttrs . isEmpty ( ) ) { LogUtil . error ( Level . INFO , LogUtil . ENTITY_DOES_NOT_EXISTS , args ) ; throw new IDFFMetaException ( "entityDoesNotExists" , args ) ; } Set oldValues = ( Set ) oldAttrs . get ( IDFF_ENTITY_CONFIG_ATTR ) ; if ( oldValues == null || oldValues . isEmpty ( ) ) { LogUtil . error ( Level . INFO , LogUtil . NO_ENTITY_CONFIG_TO_DELETE , args ) ; throw new IDFFMetaException ( "noEntityConfig" , args ) ; } removeEntityFromCOT ( realm , entityId ) ; Set attr = new HashSet ( ) ; attr . add ( IDFF_ENTITY_CONFIG_ATTR ) ; idffMetaConfigInstance . deleteConfiguration ( realm , entityId , attr ) ; LogUtil . access ( Level . INFO , LogUtil . DELETE_ENTITY_CONFIG_SUCCEEDED , args ) ; IDFFMetaCache . setEntityConfig ( realm , entityId , null ) ; } catch ( ConfigurationException e ) { debug . error ( "IDFFMetaManager.deleteEntityConfig:" , e ) ; LogUtil . error ( Level . INFO , LogUtil . DELETE_ENTITY_CONFIG_FAILED , args ) ; throw new IDFFMetaException ( e ) ; } catch ( UnsupportedOperationException uoe ) { debug . error ( "Unsupported operation" , uoe ) ; LogUtil . error ( Level . INFO , LogUtil . UNSUPPORTED_OPERATION , null ) ; throw new IDFFMetaException ( "unsupportedOperation" , null ) ; } } }
deletes the extended entity configuration .
