Examples of addResource()


Examples of org.apache.muse.core.ResourceManager.addResource()

        relationship.setParticipant(participants);
       
        try
        {
            resource.initialize();
            manager.addResource(resource.getEndpointReference(), resource);
        }
       
        catch (SoapFault error)
        {
            throw new RelationshipCreationFailedFault(error);
View Full Code Here

Examples of org.apache.myfaces.context.servlet.ServletContextMockImpl.addResource()


    protected ServletContext setUpServletContext()
    {
        ServletContextMockImpl servletContext = new ServletContextMockImpl();
        servletContext.addResource("/WEB-INF/faces-config.xml",
                                   RESOURCE_PATH + "/junit-faces-config.xml");
        servletContext.addResource("/WEB-INF/web.xml",
                                   RESOURCE_PATH + "/junit-web.xml");
        return servletContext;
    }
View Full Code Here

Examples of org.apache.sling.commons.testing.sling.MockResourceResolver.addResource()

    log.info("init");

    log.info("Creating Resource Structure");
    final MockResourceResolver resolver = new MockResourceResolver();
    resource = new MockResource(resolver, TEST_PATH, "test");
    resolver.addResource(resource);
    MockResource child1 = new MockResource(resolver, TEST_PATH + "/child1",
        "test");
    resolver.addResource(child1);
    MockResource child2 = new MockResource(resolver, TEST_PATH + "/child2",
        "test");
View Full Code Here

Examples of org.apache.stanbol.entityhub.indexing.core.source.ResourceLoader.addResource()

    @Test
    public void testSingleFile(){
        DummyResourceImporter importer = new DummyResourceImporter(
            Arrays.asList(rootDir+"singleFileTest.txt"));
        ResourceLoader loader = new ResourceLoader(importer, false, false);
        loader.addResource(new File(rootDir,"singleFileTest.txt"));
        assertEquals(new HashSet<String>(Arrays.asList(rootDir+"singleFileTest.txt")),
            loader.getResources(ResourceState.REGISTERED));
        assertTrue(loader.getResources(ResourceState.ERROR).isEmpty());
        assertTrue(loader.getResources(ResourceState.LOADED).isEmpty());
        assertTrue(loader.getResources(ResourceState.IGNORED).isEmpty());
View Full Code Here

Examples of org.apache.stratos.theme.mgt.ui.clients.ThemeMgtServiceClient.addResource()

                return false;
            }
            DataHandler dataHandler = scaleImage(fileItemData.getDataHandler(), 48, 119);

            client.addResource(
                    calculatePath(parentPath, resourceName), mediaType, description, dataHandler,
                    symlinkLocation, redirectWith);

            response.setContentType("text/html; charset=utf-8");
            String msg = "The logo has been successfully updated.";
View Full Code Here

Examples of org.apache.synapse.rest.API.addResource()

        Iterator resources = apiElt.getChildrenWithName(new QName(
                XMLConfigConstants.SYNAPSE_NAMESPACE, "resource"));
        boolean noResources = true;
        while (resources.hasNext()) {
            OMElement resourceElt = (OMElement) resources.next();
            api.addResource(ResourceFactory.createResource(resourceElt));
            noResources = false;
        }

        if (noResources) {
            handleException("An API must contain at least one resource definition");
View Full Code Here

Examples of org.apache.synapse.util.resolver.ResourceMap.addResource()

        synCfg.addEntry("imported_wsdl", entry);
        // Build the proxy service
        ProxyService proxyService = new ProxyService("Test");
        proxyService.setWSDLKey("root_wsdl");
        ResourceMap resourceMap = new ResourceMap();
        resourceMap.addResource("imported.wsdl", "imported_wsdl");
        resourceMap.addResource("imported.xsd", "imported_xsd");
        proxyService.setResourceMap(resourceMap);
        AxisService axisService = proxyService.buildAxisService(synCfg, axisCfg);
        // Serialize the WSDL. Note that we can't parse the WSDL because it will have imports
        // referring to locations such as "my-matches?xsd=xsd0.xsd".
View Full Code Here

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

    public void issue281() {
        UserTO userTO = getSampleTO("issue281@syncope.apache.org");
        userTO.getResources().clear();
        userTO.getMemberships().clear();
        userTO.getDerivedAttributes().clear();
        userTO.addResource("resource-csv");

        userTO = restTemplate.postForObject(BASE_URL + "user/create", userTO, UserTO.class);
        assertNotNull(userTO);

        final List<PropagationTO> propagations = userTO.getPropagationTOs();
View Full Code Here

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

        long userId = userTO.getId();

        // Suspend with effect on syncope, ldap and db => user should be suspended in syncope and all resources
        PropagationRequestTO propagationRequestTO = new PropagationRequestTO();
        propagationRequestTO.setOnSyncope(true);
        propagationRequestTO.addResource(RESOURCE_NAME_TESTDB);
        propagationRequestTO.addResource(RESOURCE_NAME_LDAP);
        userTO = userService.suspend(userId, propagationRequestTO);
        assertNotNull(userTO);
        assertEquals("suspended", userTO.getStatus());
View Full Code Here

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

        // 1. create role with LDAP resource
        RoleTO roleTO = new RoleTO();
        roleTO.setName("SYNCOPE354-" + getUUIDString());
        roleTO.setParent(8L);
        roleTO.addResource(RESOURCE_NAME_LDAP);

        roleTO = createRole(roleService, roleTO);
        assertNotNull(roleTO);

        // 2. create user with LDAP resource and membership of the above role
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.