Package com.orientechnologies.orient.core.metadata.security

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


      recordFormat = DEF_RECORD_FORMAT;

      user = getMetadata().getSecurity().authenticate(iUserName, iUserPassword);

      if (getStorage() instanceof OStorageEmbedded) {
        registerHook(new OUserTrigger());
        registerHook(new OPropertyIndexManager());
      }

      checkSecurity(ODatabaseSecurityResources.DATABASE, ORole.PERMISSION_READ);
    } catch (OException e) {
View Full Code Here


      level1Cache.startup();

      getStorage().getConfiguration().update();

      if (getStorage() instanceof OStorageEmbedded) {
        registerHook(new OUserTrigger());
        registerHook(new OPropertyIndexManager());
      }

      // CREATE THE DEFAULT SCHEMA WITH DEFAULT USER
      metadata = new OMetadata(this);
View Full Code Here

        throw new OSecurityAccessException(this.getName(), "User '" + iUserName + "' was not found in database: " + getName());

      if (user.getAccountStatus() != STATUSES.ACTIVE)
        throw new OSecurityAccessException(this.getName(), "User '" + iUserName + "' is not active");

      registerHook(new OUserTrigger());
      registerHook(new OPropertyIndexManager());

      if (getStorage() instanceof OStorageEmbedded) {

        if (!user.checkPassword(iUserPassword)) {
View Full Code Here

      dictionary = (ODictionaryInternal<ORecordInternal<?>>) getStorage().createDictionary(this);
      dictionary.create();

      // if (getStorage() instanceof OStorageEmbedded) {
      registerHook(new OUserTrigger());
      registerHook(new OPropertyIndexManager());
      // }

    } catch (Exception e) {
      throw new ODatabaseException("Can't create database", e);
View Full Code Here

      recordFormat = DEF_RECORD_FORMAT;

      user = getMetadata().getSecurity().authenticate(iUserName, iUserPassword);

      if (getStorage() instanceof OStorageEmbedded) {
        registerHook(new OUserTrigger());
        registerHook(new OPropertyIndexManager());
      }

      checkSecurity(ODatabaseSecurityResources.DATABASE, ORole.PERMISSION_READ);
    } catch (OException e) {
View Full Code Here

      metadata.create();

      user = getMetadata().getSecurity().getUser(OUser.ADMIN);

      if (getStorage() instanceof OStorageEmbedded) {
        registerHook(new OUserTrigger());
        registerHook(new OPropertyIndexManager());
      }
    } catch (Exception e) {
      throw new ODatabaseException("Can't create database", e);
    }
View Full Code Here

      recordFormat = DEF_RECORD_FORMAT;

      user = getMetadata().getSecurity().authenticate(iUserName, iUserPassword);

      if (getStorage() instanceof OStorageEmbedded) {
        registerHook(new OUserTrigger());
        registerHook(new OPropertyIndexManager());
      }

      checkSecurity(ODatabaseSecurityResources.DATABASE, ORole.PERMISSION_READ);
    } catch (OException e) {
View Full Code Here

      level1Cache.startup();

      getStorage().getConfiguration().update();

      if (getStorage() instanceof OStorageEmbedded) {
        registerHook(new OUserTrigger());
        registerHook(new OPropertyIndexManager());
      }

      // CREATE THE DEFAULT SCHEMA WITH DEFAULT USER
      metadata = new OMetadata(this);
View Full Code Here

  }

  protected void installHooks() {
    registerHook(new OClassTrigger(), ORecordHook.HOOK_POSITION.FIRST);
    registerHook(new ORestrictedAccessHook(), ORecordHook.HOOK_POSITION.FIRST);
    registerHook(new OUserTrigger(), ORecordHook.HOOK_POSITION.EARLY);
    registerHook(new OFunctionTrigger(), ORecordHook.HOOK_POSITION.REGULAR);
    registerHook(new OClassIndexManager(), ORecordHook.HOOK_POSITION.LAST);
    registerHook(new OSchedulerTrigger(), ORecordHook.HOOK_POSITION.LAST);
    registerHook(new ORidBagDeleteHook(), ORecordHook.HOOK_POSITION.LAST);
  }
View Full Code Here

TOP

Related Classes of com.orientechnologies.orient.core.metadata.security.OUserTrigger

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.