Package org.pentaho.platform.api.repository2.unified

Examples of org.pentaho.platform.api.repository2.unified.IBackingRepositoryLifecycleManager.newUser()


      try {
        getSecurityHelper().runAsSystem( new Callable<Void>() {
          @Override
          public Void call() throws Exception {
            // Execute new tenant with the tenant id from the logged in user
            lifecycleManager.newUser( JcrTenantUtils.getTenant( principalName, true ), JcrTenantUtils.getPrincipalName(
                principalName, true ) );
            return null;
          }
        } );
      } catch ( Exception e ) {
View Full Code Here


        // fired
        // before SecurityContextHolder is set
        getSecurityHelper().runAsUser( principalName, new Callable<Void>() {
          @Override
          public Void call() throws Exception {
            lifecycleManager.newUser();
            return null;
          }
        } );

      } catch ( Exception e ) {
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.