Package org.pentaho.platform.security.userroledao

Examples of org.pentaho.platform.security.userroledao.PentahoRole


    } catch ( NotFoundException e ) {
      // Expected exception
    }

    try {
      pentahoRole = new PentahoRole( null, ROLE_6, ROLE_DESCRIPTION_6 );
      userRoleDaoProxy.deleteRole( pentahoRole );
      fail( "Exception not thrown" );
    } catch ( Exception ex ) {
      // Expected exception
    }

    try {
      pentahoRole = new PentahoRole( mainTenant_1, null, ROLE_DESCRIPTION_6 );
      userRoleDaoProxy.deleteRole( pentahoRole );
      fail( "Exception not thrown" );
    } catch ( NotFoundException e ) {
      // Expected exception
    }

    try {
      pentahoRole = new PentahoRole( mainTenant_1, UNKNOWN_ROLE, ROLE_DESCRIPTION_6 );
      userRoleDaoProxy.deleteRole( pentahoRole );
      fail( "Exception not thrown" );
    } catch ( NotFoundException e ) {
      // Expected exception
    }
View Full Code Here


    } catch ( NotFoundException e ) {
      // Expected exception
    }

    try {
      pentahoRole = new PentahoRole( null, ROLE_6, ROLE_DESCRIPTION_6 );
      userRoleDaoProxy.deleteRole( pentahoRole );
      fail( "Exception not thrown" );
    } catch ( Exception ex ) {
      // Expected exception
    }

    try {
      pentahoRole = new PentahoRole( mainTenant_1, null, ROLE_DESCRIPTION_6 );
      userRoleDaoProxy.deleteRole( pentahoRole );
      fail( "Exception not thrown" );
    } catch ( NotFoundException e ) {
      // Expected exception
    }

    try {
      pentahoRole = new PentahoRole( mainTenant_1, UNKNOWN_ROLE, ROLE_DESCRIPTION_6 );
      userRoleDaoProxy.deleteRole( pentahoRole );
      fail( "Exception not thrown" );
    } catch ( NotFoundException e ) {
      // Expected exception
    }
View Full Code Here

    } catch ( Exception ex ) {
      // CHECKSTYLES IGNORE
    }

    role =
        new PentahoRole( tenantedRoleNameUtils.getTenant( jackrabbitGroup.getID() ), tenantedRoleNameUtils
            .getPrincipleName( jackrabbitGroup.getID() ), description );
    return role;
  }
View Full Code Here

      if ( tenant == null ) {
        tenant = getDefaultTenant();
      }
      IPentahoRole role = getRole( tenant, roleName );
      if ( role == null ) {
        role = new PentahoRole( tenant, roleName, description );
        roles.add( role );
        setRoleMembers( tenant, roleName, memberUserNames );
      } else {
        throw new AlreadyExistsException( "" );
      }
View Full Code Here

   * <code>role</code> is unmodified.
   */
  public static IPentahoRole syncRoles( IPentahoRole role, ProxyPentahoRole proxyRole ) {
    IPentahoRole syncedRole = role;
    if ( syncedRole == null ) {
      syncedRole = new PentahoRole( proxyRole.getName() );
    }
    syncedRole.setDescription( proxyRole.getDescription() );
    return syncedRole;
  }
View Full Code Here

TOP

Related Classes of org.pentaho.platform.security.userroledao.PentahoRole

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.