Package org.pentaho.platform.api.engine.security.userroledao

Examples of org.pentaho.platform.api.engine.security.userroledao.NotFoundException


      }
      IPentahoUser user = getUser( tenant, userName );
      if ( user != null ) {
        user.setPassword( password );
      } else {
        throw new NotFoundException( "" );
      }
    }
View Full Code Here


      IPentahoRole role = getRole( tenant, roleName );
      if ( role != null ) {
        role.setDescription( description );
      } else {
        throw new NotFoundException( "" );
      }
    }
View Full Code Here

        tenant = getDefaultTenant();
      }

      IPentahoRole role = getRole( tenant, roleName );
      if ( role == null ) {
        throw new NotFoundException( "" );
      }

      for ( Set<IPentahoRole> assignedRoles : userRolesMap.values() ) {
        assignedRoles.remove( role );
      }
View Full Code Here

      }
      IPentahoUser user = getUser( tenant, userName );
      if ( user != null ) {
        user.setDescription( description );
      } else {
        throw new NotFoundException( "" );
      }
    }
View Full Code Here

        tenant = getDefaultTenant();
      }

      IPentahoUser targetUser = getUser( tenant, userName );
      if ( targetUser == null ) {
        throw new NotFoundException( "" );
      }

      for ( Set<IPentahoUser> assignedMembers : roleMembersMap.values() ) {
        assignedMembers.remove( targetUser );
      }
View Full Code Here

        roleMembersMap.remove( realRole );
        for ( Set<IPentahoRole> assignedRoles : userRolesMap.values() ) {
          assignedRoles.remove( realRole );
        }
      } else {
        throw new NotFoundException( "" );
      }
    }
View Full Code Here

        userRolesMap.remove( realUser );
        for ( Set<IPentahoUser> assignedUsers : roleMembersMap.values() ) {
          assignedUsers.remove( realUser );
        }
      } else {
        throw new NotFoundException( "" );
      }
    }
View Full Code Here

    ITenant tempTenant = tenant;
    if ( tenant == null ) {
      tempTenant = JcrTenantUtils.getTenant( runtimeRoleName, false );
    }
    if ( !TenantUtils.isAccessibleTenant( tempTenant ) ) {
      throw new NotFoundException( "Tenant " + tenant.getId() + " not found" );
    }
    Assert.notNull( logicalRoleNames );
    jcrTemplate.execute( new JcrCallback() {
      @Override
      public Object doInJcr( final Session session ) throws RepositoryException, IOException {
View Full Code Here

      tenant = JcrTenantUtils.getTenant( runtimeRoleName, false );
      runtimeRoleName = getPrincipalName( runtimeRoleName );
    }

    if ( !TenantUtils.isAccessibleTenant( tenant ) ) {
      throw new NotFoundException( "Tenant " + tenant.getId() + " not found" );
    }

    PentahoJcrConstants pentahoJcrConstants = new PentahoJcrConstants( session );
    final String phoNsPrefix = session.getNamespacePrefix( PentahoJcrConstants.PHO_NS ) + ":"; //$NON-NLS-1$
    final String onlyPentahoPattern = phoNsPrefix + "*"; //$NON-NLS-1$
View Full Code Here

    roleMembers.remove( role );
    for ( HashSet<IPentahoRole> roles : userRoles.values() ) {
      roles.remove( role );
    }
    if ( !removed ) {
      throw new NotFoundException( role.getName() );
    }
  }
View Full Code Here

TOP

Related Classes of org.pentaho.platform.api.engine.security.userroledao.NotFoundException

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.