Examples of addResource()


Examples of org.apache.syncope.common.to.UserTO.addResource()

        MembershipTO memb13 = new MembershipTO();
        memb13.setRoleId(13L);
        userTO.addMembership(memb13);

        userTO.addResource(RESOURCE_NAME_LDAP);

        UserTO actual = createUser(userTO);
        assertNotNull(actual);
        assertEquals(2, actual.getMemberships().size());
View Full Code Here

Examples of org.apache.syncope.core.persistence.beans.ConnInstance.addResource()

        if (resourceTO.getConnectorId() != null) {
            ConnInstance connector = connInstanceDAO.find(resourceTO.getConnectorId());
            resource.setConnector(connector);

            if (!connector.getResources().contains(resource)) {
                connector.addResource(resource);
            }
        }

        resource.setEnforceMandatoryCondition(resourceTO.isEnforceMandatoryCondition());
View Full Code Here

Examples of org.apache.syncope.core.persistence.beans.user.SyncopeUser.addResource()

        // assign the new resource to an user
        SyncopeUser user = userDAO.find(1L);
        assertNotNull("user not found", user);

        user.addResource(actual);

        resourceDAO.flush();

        // retrieve resource
        resource = resourceDAO.find(actual.getName());
View Full Code Here

Examples of org.apache.tajo.conf.TajoConf.addResource()

    }

    String workerMode = args[0];

    TajoConf tajoConf = new TajoConf();
    tajoConf.addResource(new Path(TajoConstants.SYSTEM_CONF_FILENAME));

    try {
      TajoWorker tajoWorker = new TajoWorker(workerMode);
      tajoWorker.startWorker(tajoConf, args);
    } catch (Throwable t) {
View Full Code Here

Examples of org.apache.tika.io.TemporaryResources.addResource()

        //  avoid OOMs that may occur with in-memory buffering
        TemporaryResources tmp = new TemporaryResources();
        TikaInputStream tstream = TikaInputStream.get(stream, tmp);
        try {
            isoFile = new IsoFile(new DirectFileReadDataSource(tstream.getFile()));
            tmp.addResource(isoFile);

            // Grab the file type box
            FileTypeBox fileType = getOrNull(isoFile, FileTypeBox.class);
            if (fileType != null) {
               // Identify the type
View Full Code Here

Examples of org.apache.tomcat.util.descriptor.web.NamingResources.addResource()

        // cannot use side-effects.  It's removed and added back each time
        // there is a modification in a resource.
        NamingResources nr = cr.getNamingResources();
        nr.removeResource(cr.getName());
        nr.addResource(cr);
    }
}
View Full Code Here

Examples of org.apache.webdav.lib.WebdavResources.addResource()

            throws HttpException, IOException
    {
        WebdavResources resources = super.getChildResources();
        WebdavResources out = new WebdavResources();
        for (WebdavResource resource : resources.listResources()) {
            out.addResource(createResource(resource));
        }

        return out;
    }
View Full Code Here

Examples of org.apache.ws.util.jndi.tools.ConfigContext.addResource()

               setDefaultParameterValues( params );
               validateParameterValues( params );
            }
            for ( int j = 0; j < resourceArray.length; j++ )
            {
               context.addResource( resourceArray[j] );
            }

            ResourceLink[] resourceLinkArray = getResourceLinkArray( service.getResourceLinkArray(  ) );
            for ( int j = 0; j < resourceLinkArray.length; j++ )
            {
View Full Code Here

Examples of org.apache.xindice.client.xmldb.ResourceSetImpl.addResource()

           
                String documentId = ((Element) n).getAttributeNS(
                        QUERY_NS, "key");          
                XMLResourceImpl resource = new XMLResourceImpl(null,
                        documentId, this, TextWriter.toString(n));
                rs.addResource(resource);
            }
        
            return rs;
        } catch (Exception e) {
           
View Full Code Here

Examples of org.compass.core.config.CompassConfiguration.addResource()

          logger.error("Unable to create index directory: " + directory);
        }
      }
      compassConfiguration.setSetting(CompassEnvironment.CONNECTION, directory);
    }
    compassConfiguration.addResource("compass/Content.cpm.xml");
    compassConfiguration.addResource("compass/ContentLanguage.cpm.xml");
    compassConfiguration.addResource("compass/Item.cpm.xml");
    compassConfiguration.addResource("compass/ItemLanguage.cpm.xml");
   
    compass = compassConfiguration.buildCompass();
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.