Examples of PersonService


Examples of com.ateam.webstore.service.impl.PersonService

public class PersonHandler extends Handler {

  public PersonHandler(HttpServletRequest req) {
    super(req);
    service = new PersonService();
  }
View Full Code Here

Examples of common.advanced.PersonService

     * proxies can be configured the same way as HTTP-centric WebClients and response status and headers can
     * also be checked. HTTP response errors can be converted into typed exceptions.
     */
    public void useSimpleProxy() {
        String webAppAddress = "http://localhost:" + port + "/services/personservice";
        PersonService proxy = JAXRSClientFactory.create(webAppAddress, PersonService.class);

        new PersonServiceProxyClient(proxy).useService();
    }
View Full Code Here

Examples of net.lr.tutorial.karaf.cxf.personrest.model.PersonService

    private static final String PERSONSERVICE_TESTURL = "http://localhost:8282/person";
    private static Server server;

    @BeforeClass
    public static void startServer() {
        PersonService personService = new PersonServiceImpl();;
        JAXRSServerFactoryBean factory = new JAXRSServerFactoryBean();
        factory.setAddress(PERSONSERVICE_TESTURL);
        factory.setServiceBean(personService);
        server = factory.create();
        server.start();
View Full Code Here

Examples of net.lr.tutorial.karaf.cxf.personrest.model.PersonService

        server.start();
    }

    @Test
    public void testInterface() {
        PersonService personService = JAXRSClientFactory.create(PERSONSERVICE_TESTURL, PersonService.class);
        Person person = new Person();
        person.setId("1002");
        person.setName("Christian Schneider");
        personService.updatePerson("1002", person);
       
        Person person2 = personService.getPerson("1002");
        assertCorrectPerson(person2);
    }
View Full Code Here

Examples of net.lr.tutorial.karaf.cxf.personservice.model.PersonService

    private static final String PERSONSERVICE_TESTURL = "http://localhost:8282/personService";
    private static Server server;

    @BeforeClass
    public static void startServer() {
        PersonService personService = new PersonServiceImpl();
        JaxWsServerFactoryBean factory = new JaxWsServerFactoryBean();
        factory.setAddress(PERSONSERVICE_TESTURL);
        factory.setServiceBean(personService);
        server = factory.create();
        server.start();
View Full Code Here

Examples of net.lr.tutorial.karaf.cxf.personservice.model.PersonService

        server.start();
    }
   
    @Test
    public void testPutPerson() {
        PersonService personService = getService();
        personService.addPerson(createPerson());
        Person person2 = personService.getPerson("1001");
        assertCorrectPerson(person2);
    }
View Full Code Here

Examples of net.lr.tutorial.karaf.cxf.personservice.model.PersonService

    private PersonService getService() {
        JaxWsProxyFactoryBean proxy = new JaxWsProxyFactoryBean();
        proxy.setServiceClass(PersonService.class);
        proxy.setAddress(PERSONSERVICE_TESTURL);
        PersonService personService = (PersonService)proxy.create();
        return personService;
    }
View Full Code Here

Examples of net.sf.wicketdemo.service.PersonService

public class SingleAuthorComponent extends Panel {

    public SingleAuthorComponent(final String id, final IModel authorModel) {
        super(id);
       
        final PersonService personService = ServiceFactory.createPersonService();
        final List<Person> persons = personService.findAll();


        final IChoiceRenderer renderer = new ChoiceRenderer() {
            public String getDisplayValue(final Object object) {
                    return ((Person) object).getFirstName() + ((Person) object).getLastName();
View Full Code Here

Examples of org.alfresco.service.cmr.security.PersonService

        TransactionService transactionService = serviceRegistry.getTransactionService();
        NodeService nodeService = serviceRegistry.getNodeService();

        AuthenticationComponent authComponent = (AuthenticationComponent) ctx.getBean("authenticationComponent");
        AuthenticationService authService = (AuthenticationService) ctx.getBean("authenticationService");
        PersonService personService = (PersonService) ctx.getBean("personService");

        // Get a list of the available locales
        ConfigService configServiceService = (ConfigService) ctx.getBean("webClientConfigService");
        LanguagesConfigElement configElement = (LanguagesConfigElement) configServiceService.getConfig("Languages").getConfigElement(
                        LanguagesConfigElement.CONFIG_ELEMENT_ID);

        m_languages = configElement.getLanguages();

        // Set up the user information
        UserTransaction tx = transactionService.getUserTransaction();
        NodeRef homeSpaceRef = null;
        User user;
        try {
            tx.begin();
            // Set the authentication
            authComponent.setCurrentUser(userName);
            user = new User(userName, authService.getCurrentTicket(), personService.getPerson(userName));
            homeSpaceRef = (NodeRef) nodeService.getProperty(personService.getPerson(userName), ContentModel.PROP_HOMEFOLDER);
            if (homeSpaceRef == null) {
                logger.warn("Home Folder is null for user '" + userName + "', using company_home.");
                homeSpaceRef = (NodeRef) nodeService.getRootNode(Repository.getStoreRef());
            }
            user.setHomeSpaceId(homeSpaceRef.getId());
View Full Code Here

Examples of org.apache.camel.non_wrapper.PersonService


    public void testInvokingServiceFromCXFClient() throws Exception {

        URL wsdlURL = getClass().getClassLoader().getResource("person-non-wrapper.wsdl");
        PersonService ss = new PersonService(wsdlURL, new QName("http://camel.apache.org/non-wrapper", "PersonService"));
        Person client = ss.getSoap();
        GetPerson request = new GetPerson();
        request.setPersonId("hello");
        GetPersonResponse response = client.getPerson(request);

        assertEquals("we should get the right answer from router", "Bonjour", response.getName());
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.