Examples of checkAccess()


Examples of org.olat.search.service.indexer.Indexer.checkAccess()

      if (Tracing.isDebugEnabled(RepositoryIndexer.class)) Tracing.logDebug("isOwner=" + isOwner + "  isAllowedToLaunch=" + isAllowedToLaunch, RepositoryIndexer.class);
      if (isOwner || isAllowedToLaunch) {
        Indexer repositoryEntryIndexer = RepositoryEntryIndexerFactory.getInstance().getRepositoryEntryIndexer(repositoryEntry);
        if (Tracing.isDebugEnabled(RepositoryIndexer.class)) Tracing.logDebug("repositoryEntryIndexer=" + repositoryEntryIndexer, RepositoryIndexer.class);
        if (repositoryEntryIndexer != null) {
          return repositoryEntryIndexer.checkAccess(contextEntry, businessControl, identity, roles);
        } else {
          // No Indexer => no access
          return false;
        }
      } else {
View Full Code Here

Examples of org.olat.search.service.indexer.Indexer.checkAccess()

        elementStartTime = System.currentTimeMillis();
      }
      OlatDocument odoc = it_odocs.next();
      String resourceUrl = odoc.getResourceUrl();
      BusinessControl businessControl = BusinessControlFactory.getInstance().createFromString(resourceUrl);
      boolean hasAccess = mainIndexer.checkAccess(null, businessControl, identity, roles);
      if (hasAccess) {
        filteredList.add(odoc);
        resultCount++;
      }
      loopCount++;
View Full Code Here

Examples of org.olat.search.service.indexer.repository.course.CourseNodeIndexer.checkAccess()

    boolean mayAccessWholeTreeUp = NavigationHandler.mayAccessWholeTreeUp(nodeEval)
    if (log.isDebug()) log.debug("call mayAccessWholeTreeUp=" + mayAccessWholeTreeUp );
   
    if (mayAccessWholeTreeUp) {
      CourseNodeIndexer courseNodeIndexer = CourseNodeIndexerFactory.getInstance().getCourseNodeIndexer(courseNode);
      return courseNodeIndexer.checkAccess(bcContextEntry, businessControl, identity, roles);   
    } else {
      return false;
    }
  }
View Full Code Here

Examples of org.openengsb.domain.authorization.AuthorizationDomain.checkAccess()

                utilsService.getServiceIterator(providers, AuthorizationDomain.class);
            LOGGER.debug("iterating {} authenticationProviderServices", providers.size());
            boolean granted = false;
            while (serviceIterator.hasNext()) {
                AuthorizationDomain provider = serviceIterator.next();
                Access checkAccess = provider.checkAccess(user, action);
                if (checkAccess == Access.GRANTED) {
                    granted = true;
                } else if (checkAccess == Access.DENIED) {
                    return Access.DENIED;
                }
View Full Code Here

Examples of org.openqreg.util.Dispatcher.checkAccess()

      // Get the fetch from the application scope
      fetch = loginAnswer.getFetch();

      // If active & has needed service
      if ("active".equals(loginAnswer.getStatus())
          && (null == requiredService() || disp.checkAccess(
              loginAnswer.getUserId(), requiredService()))) {

        // Get the langId from the application scope
        langId = user.getLanguageid();
        // must be implemented in subclass, does the magic... :)
View Full Code Here

Examples of org.uberfire.java.nio.fs.file.SimpleFileSystemProvider.checkAccess()

    public void checkAccess() throws IOException {
        final SimpleFileSystemProvider fsProvider = new SimpleFileSystemProvider();
        final Path path = GeneralPathImpl.create( fsProvider.getFileSystem( URI.create( "file:///" ) ), "/path/to/file.txt", false );

        try {
            fsProvider.checkAccess( path, WRITE );
            fail( "can't have write access on non existent file" );
        } catch ( Exception ex ) {
        }

        try {
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.