Examples of canRead()


Examples of org.apache.catalina.WebResource.canRead()

     */
    @Override
    public void start() throws LifecycleException {

        WebResource classes = resources.getResource("/WEB-INF/classes");
        if (classes.isDirectory() && classes.canRead()) {
            addURL(classes.getURL());
        }
        WebResource[] jars = resources.listResources("/WEB-INF/lib");
        for (WebResource jar : jars) {
            if (jar.getName().endsWith(".jar") && jar.isFile() && jar.canRead()) {
View Full Code Here

Examples of org.apache.jackrabbit.core.security.authorization.CompiledPermissions.canRead()

        if (isAdminOrSystem(principals)) {
            return true;
        } else {
            CompiledPermissions cp = new CompiledPermissionsImpl(principals, session, entryCollector, this, false);
            try {
                return cp.canRead(null, rootNodeId);
            } finally {
                cp.close();
            }
        }
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.security.authorization.permission.TreePermission.canRead()

        root.commit();

        TreePermission tp = getTreePermission("/test");

        assertFalse(tp.canReadProperties());
        assertTrue(tp.canRead());
        assertFalse(tp.canReadProperties());
    }

    @Test
    public void testCanReadProperties2() throws Exception {
View Full Code Here

Examples of org.broadinstitute.gatk.engine.walkers.diffengine.DiffableReader.canRead()

    @Test(enabled = true, dependsOnMethods = "testPluggableDiffableReaders")
    public void testVCF1() {
        logger.warn("testVCF1");
        DiffableReader vcfReader = engine.getReader("VCF");
        Assert.assertTrue(vcfReader.canRead(vcfFile));
        Assert.assertFalse(vcfReader.canRead(bamFile));

        DiffElement diff = vcfReader.readFromFile(vcfFile, -1);
        Assert.assertNotNull(diff);
View Full Code Here

Examples of org.cfeclipse.cfml.net.RemoteFile.canRead()

        boolean canRead = true;
        boolean canWrite = true;
        if (element instanceof RemoteFile) {
            RemoteFile file = (RemoteFile)element;
            canRead = file.canRead();
            canWrite = file.canWrite();
        }
        else if (element instanceof File) {
            File file = (File)element;
            canRead = file.canRead();
View Full Code Here

Examples of org.emrys.webosgi.core.resource.extension.IResourceVisitController.canRead()

          // Buffer the current Resource Define Root to thread local
          // variant map. Do not
          // need to judge null.
          threadScope.get().put(RESPONSE_CUR_VISIT_CTRL, controller);

          if (controller == null || controller.canRead(req)) {
            // Search the published resource root in a tree
            // construct for the
            // resource presented by the request path. The result
            // will buffered into
            // thread local variants map.
View Full Code Here

Examples of org.eweb4j.util.xml.tag.XmlTag.canRead()

        if (annotation != null && annotation.length > 0) {
          for (Annotation anno : annotation) {
            XmlTag tag = (XmlTag) anno;
            String type = tag.type();
            String value = tag.value();
            boolean canRead = tag.canRead();
            if (canRead) {
              if (XmlTagType.attriType.equals(type)) {
                if ("clazz".equals(n)) {
                  n = "class";
                }
View Full Code Here

Examples of org.hsqldb.RowAction.canRead()

        if (action == null) {
            return true;
        }

        return action.canRead(session, mode);
    }

    public abstract CachedObject get(RowInputInterface in);

    public CachedObject get(CachedObject object, RowInputInterface in) {
View Full Code Here

Examples of org.jnode.fs.FSAccessRights.canRead()

     *
     * @param file
     */
    public boolean canRead(String file) throws IOException {
        final FSAccessRights rights = getAccessRights(file);
        return (rights == null) || rights.canRead();
    }

    /**
     * Can the given file be written to?
     *
 
View Full Code Here

Examples of org.jruby.util.JRubyFile.canRead()

    // We use file test since it is faster than a stat; also euid == uid in Java always
    @JRubyMethod(name = {"readable?", "readable_real?"}, required = 1, module = true)
    public static IRubyObject readable_p(IRubyObject recv, IRubyObject filename) {
        JRubyFile file = file(filename);

        return recv.getRuntime().newBoolean(file.exists() && file.canRead());
    }

    // Not exposed by filetest, but so similiar in nature that it is stored here
    public static IRubyObject rowned_p(IRubyObject recv, IRubyObject filename) {
        Ruby runtime = recv.getRuntime();
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.