Examples of OnlineAccount


Examples of org.apache.marmotta.commons.sesame.facading.foaf.model.OnlineAccount

            for (OnlineAccount account : hans_meier.getOnlineAccounts()) {
                Assert.assertNotNull(account);
                final Resource accountRSC = account.getDelegate();
                Assert.assertNotNull(accountRSC);

                final OnlineAccount oa = facading.createFacade(accountRSC, OnlineAccount.class);
                Assert.assertNotNull(oa);

                Assert.assertEquals(hans_meier, oa.getHolder());
            }

        } finally {
            connection.close();
        }
View Full Code Here

Examples of org.apache.marmotta.commons.sesame.facading.foaf.model.OnlineAccount

            URI p = connection.getValueFactory().createURI("http://localhost/person");
            Person person = facading.createFacade(p, Person.class);

            URI a = connection.getValueFactory().createURI("http://localhost/account");
            OnlineAccount account = facading.createFacade(a, OnlineAccount.class);

            account.setHolder(person);

            connection.commit();

            Assert.assertThat(person.getOnlineAccounts(), CoreMatchers.hasItem(account));
View Full Code Here

Examples of org.apache.marmotta.commons.sesame.facading.foaf.model.OnlineAccount

        final RepositoryConnection connection = repositoryRDF.getConnection();
        try {
            final Facading facading = FacadingFactory.createFacading(connection);

            URI a = connection.getValueFactory().createURI("http://localhost/account");
            OnlineAccount account = facading.createFacade(a, OnlineAccount.class);

            account.addChatId("foo");
            Assert.assertThat(account.getChatId(), hasItem("foo"));
            account.addChatId("bar");
            Assert.assertThat(account.getChatId(), hasItems("foo", "bar"));
            Assert.assertThat(account.getChatId(), hasItems("bar", "foo"));
        } finally {
            connection.close();
        }
    }
View Full Code Here

Examples of org.apache.marmotta.commons.sesame.facading.foaf.model.OnlineAccount

            for (OnlineAccount account : hans_meier.getOnlineAccounts()) {
                Assert.assertNotNull(account);
                final Resource accountRSC = account.getDelegate();
                Assert.assertNotNull(accountRSC);

                final OnlineAccount oa = facading.createFacade(accountRSC, OnlineAccount.class);
                Assert.assertNotNull(oa);

                Assert.assertEquals(hans_meier, oa.getHolder());
            }

        } finally {
            connection.close();
        }
View Full Code Here

Examples of org.apache.marmotta.commons.sesame.facading.foaf.model.OnlineAccount

            URI p = connection.getValueFactory().createURI("http://localhost/person");
            Person person = facading.createFacade(p, Person.class);

            URI a = connection.getValueFactory().createURI("http://localhost/account");
            OnlineAccount account = facading.createFacade(a, OnlineAccount.class);

            account.setHolder(person);

            connection.commit();

            Assert.assertThat(person.getOnlineAccounts(), CoreMatchers.hasItem(account));
View Full Code Here

Examples of org.apache.marmotta.commons.sesame.facading.foaf.model.OnlineAccount

        final RepositoryConnection connection = repositoryRDF.getConnection();
        try {
            final Facading facading = FacadingFactory.createFacading(connection);

            URI a = connection.getValueFactory().createURI("http://localhost/account");
            OnlineAccount account = facading.createFacade(a, OnlineAccount.class);

            account.addChatId("foo");
            Assert.assertThat(account.getChatId(), hasItem("foo"));
            account.addChatId("bar");
            Assert.assertThat(account.getChatId(), hasItems("foo", "bar"));
            Assert.assertThat(account.getChatId(), hasItems("bar", "foo"));
        } finally {
            connection.close();
        }
    }
View Full Code Here

Examples of org.hfuu.uaadac.domain.OnlineAccount

    if (!"".equals(accountId)) {
      accountId = CipherHelper.decrypt(accountId.getBytes(Charsets.UTF_8));
     
      Account account = accountService.getAccount(Long.getLong(accountId));
      if (null != account) {
        OnlineAccount onlineAccount = new OnlineAccount();
        onlineAccount.setAccount(account.getAccounts());
        onlineAccount.setAccountId(account.getId());
        onlineAccount.setSessionId(session.getId());
        onlineAccount.setAccountStatus(true);
       
        onlineAccountService.addOnlineAccount(onlineAccount);
       
        session.setAttribute("account", account);
       
View Full Code Here

Examples of org.hfuu.uaadac.domain.OnlineAccount

    if (!"".equals(username)) {
     
      Account account = accountService.findAccount(username);
      if (null != account && password.equals(account.getPassword())) {
       
        OnlineAccount onlineAccount = new OnlineAccount();
        onlineAccount.setAccount(account.getAccounts());
        onlineAccount.setAccountId(account.getId());
        onlineAccount.setSessionId(session.getId());
        onlineAccount.setAccountStatus(true);
       
        onlineAccountService.addOnlineAccount(onlineAccount);

        if (Boolean.getBoolean(rememberMe)) {
          Cookie cookieFlag = new Cookie(COOKIE_FLAG, username);
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.