Package com.dci.intellij.dbn.object

Examples of com.dci.intellij.dbn.object.DBUser


        return null;
    }

    @Override
    protected List<DBObjectNavigationList> createNavigationLists() {
        DBUser user = getOwner();
        if (user != null) {
            List<DBObjectNavigationList> objectNavigationLists = new ArrayList<DBObjectNavigationList>();
            objectNavigationLists.add(new DBObjectNavigationListImpl("User", user));
            return objectNavigationLists;
        }
View Full Code Here


        return compileList;
    }

    public List<String> getMissingDebugPrivileges(ConnectionHandler connectionHandler) {
        String userName = connectionHandler.getUserName();
        DBUser user = connectionHandler.getObjectBundle().getUser(userName);
        String[] privilegeNames = connectionHandler.getInterfaceProvider().getDebuggerInterface().getRequiredPrivilegeNames();
        List<String> missingPrivileges = new ArrayList<String>();
        for (String privilegeName : privilegeNames) {
            DBPrivilege privilege = connectionHandler.getObjectBundle().getPrivilege(privilegeName);
            if (privilege == null || !user.hasPrivilege(privilege))  {
                missingPrivileges.add(privilegeName);
            }
        }

        return missingPrivileges;
View Full Code Here

TOP

Related Classes of com.dci.intellij.dbn.object.DBUser

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.