Examples of OUser


Examples of com.orientechnologies.orient.core.metadata.security.OUser

            }
          }
        }
      } else
        // REMOTE CREATE DUMMY USER
        user = new OUser(iUserName, OUser.encryptPassword(iUserPassword)).addRole(new ORole("passthrough", null,
            ORole.ALLOW_MODES.ALLOW_ALL_BUT));

      checkSecurity(ODatabaseSecurityResources.DATABASE, ORole.PERMISSION_READ);

      if (!metadata.getSchema().existsClass(OMVRBTreeRIDProvider.PERSISTENT_CLASS_NAME))
View Full Code Here

Examples of com.orientechnologies.orient.core.metadata.security.OUser

       throw new ODatabaseException("Database '" + iDatabase.getURL() + "' already exists");

     iDatabase.create();
     if (dbUser != null) {

       OUser oUser = iDatabase.getMetadata().getSecurity().getUser(dbUser);
       if (oUser == null) {
         iDatabase.getMetadata().getSecurity().createUser(dbUser, dbPasswd, new String[] { ORole.ADMIN });
       } else {
         oUser.setPassword(dbPasswd);
         oUser.save();
       }
     }

     OLogManager.instance().info(this, "Created database '%s' of type '%s'", iDatabase.getName(),
         iDatabase.getStorage() instanceof OAbstractPaginatedStorage ? iDatabase.getStorage().getType() : "memory");
View Full Code Here

Examples of org.netbeans.modules.languages.pl_sql.editor.oracletree.OUser

    }

    public OConnectionClass(String OPrefNodeName, String OServerName, int OPort, String ODatabaseName, String ConnectionType, String OUserName, String OPassword, Boolean OSavePassword, RoleTypes OConnectRole) {
        this(OPrefNodeName, OServerName, OPort, ODatabaseName, ConnectionType);

        Users.add(new OUser(this, OUserName, OPassword, OSavePassword, OConnectRole, ObjectAccessed.User));
    }
View Full Code Here

Examples of org.netbeans.modules.languages.pl_sql.editor.oracletree.OUser

            try {
                Preferences pref = pref_root.node(getPrefNode());
                for (String u : pref.childrenNames()) {
                    Preferences pref_u = pref.node(u);
                    if (pref_u.get("ConnectRole", "").compareTo("") != 0) {
                        OUser os = new OUser(this, pref_u.get("UserName", ""), pref_u.get("Password", ""),
                                pref_u.getBoolean("SavePassword", false),
                                RoleTypes.valueOf(pref_u.get("ConnectRole", "")),
                                ObjectAccessed.valueOf(pref_u.get("Access", "User")));
                        Users.add(os);
                    }
View Full Code Here

Examples of org.netbeans.modules.languages.pl_sql.editor.oracletree.OUser

    @Override
    protected Sheet createSheet() {

        Sheet sheet = Sheet.createDefault();
        Sheet.Set set = Sheet.createPropertiesSet();
        OUser obj = getOUser();

        try {
            Property UserNameProp = new PropertySupport.Reflection<String>(obj, String.class, "getUserName", null);
            UserNameProp.setName(Utils.getBundle().getString("LBL_UUserName"));
            set.put(UserNameProp);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.