public boolean isDeleteAllowed(CnATreeElement cte){
  if (cte instanceof ImportIsoGroup) {
    return true;
  }
  if (cte instanceof IBSIStrukturKategorie) {
    return false;
  }
  if (cte instanceof ITVerbund || cte instanceof Organization) {
    return isWriteAllowed(cte);
  }
  return isWriteAllowed(cte) && isWriteAllowed(cte.getParent());
}

public boolean isDeleteAllowed ( CnATreeElement cte ) { if ( cte instanceof ImportIsoGroup ) { return true ; } if ( cte instanceof IBSIStrukturKategorie ) { return false ; } if ( cte instanceof ITVerbund || cte instanceof Organization ) { return isWriteAllowed ( cte ) ; } return isWriteAllowed ( cte ) && isWriteAllowed ( cte . getParent ( ) ) ; }
returns whether it is allowed to perform a delete operation on the given element .
