Package cli_fmw.main

Examples of cli_fmw.main.DirectoryItemNotFoundException


        if (found != null) {
            return found;
        }else if (this instanceof DirectoryRecursiveLazy) {
            return null;
        } else {
            throw new DirectoryItemNotFoundException("Элемент справочника \'" + getDirectoryTitle() + "\' № " + id + " не найден");
        }

       /* Selector<ITEMCLASS> ii = getItems();
        for (int i = 0; i < ii.size(); i++) {
            ITEMCLASS item = ii.get(i);
View Full Code Here


                List<ITEM> itemList = createPath(path);
                return itemList.get(itemList.size()-1);
            } catch (Exception ex) {
                ex.printStackTrace();
                clearBean();
                throw new DirectoryItemNotFoundException("Элемент справочника '" + getDirectoryTitle() + "' № " + id + " не найден");
            }
        }
    }
View Full Code Here

        //знаю что изврат
        if (id == MagicValues.ACCESS_DENIED_ID){
            if (this instanceof AccessDeniable){
                return (ITEMCLASS) ((AccessDeniable)this).getNotAccessItem();
            }else{
                throw new DirectoryItemNotFoundException("Элемент запрещённого доступа для справочника \'"
                                                        + getDirectoryTitle() + "\' не определён");
            }
        }
        ITEMCLASS directoryItem = findIDX(id);
        if (directoryItem != null) {
            return directoryItem;
        } else if (this instanceof DirectoryRecursive) {
            return null;
        } else {
            throw new DirectoryItemNotFoundException("Элемент справочника \'" + getDirectoryTitle() + "\' № " + id + " не найден");
        }
    }
View Full Code Here

TOP

Related Classes of cli_fmw.main.DirectoryItemNotFoundException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.