Examples of Site


Examples of org.osforce.connect.entity.system.Site

    }

  @RequestMapping(value="/authorizationUrl", method=RequestMethod.GET)
  public @ResponseBody Map<String, Object> getAuthUrl(
      @RequestParam String target, WebRequest request) {
    Site site = (Site) request.getAttribute(AttributeKeys.SITE_KEY, WebRequest.SCOPE_REQUEST);
    String callback = site.getHomeURL()+ "/oauth/callback/" + target;
    String beanId = target + ApiService.class.getSimpleName();
    ApiService apiService = appContext.getBean(beanId, ApiService.class);
    OAuthService oAuthService = apiService.getOAuthService(callback);
    Token requestToken = oAuthService.getRequestToken();
    oAuthServices.put(requestToken, oAuthService);
View Full Code Here

Examples of org.structr.web.entity.Site

    for (Linkable node : entryPoints) {

      if (node instanceof Page) { // && path.equals(node.getPath())) {

        final Page page = (Page) node;
        final Site site = page.getProperty(Page.site);

        if (site != null) {

          final String serverName = request.getServerName();
          final int    serverPort = request.getServerPort();

          if (StringUtils.isNotBlank(serverName) && !serverName.equals(site.getProperty(Site.hostname))) {
            continue;
          }

          Integer sitePort = site.getProperty(Site.port);
          if (sitePort == null) {
            sitePort = 80;
          }

          if (serverPort != sitePort) {
View Full Code Here

Examples of org.voltdb.catalog.Site

        super.setUp(ProjectType.TM1);
       
        this.hstore_conf = HStoreConf.singleton();
        this.hstore_conf.site.txn_incoming_delay = TXN_DELAY;
       
        Site catalog_site = CollectionUtil.first(catalogContext.sites);
        assertNotNull(catalog_site);
        this.hstore_site = new MockHStoreSite(catalog_site.getId(), catalogContext, HStoreConf.singleton());
        this.idManager = hstore_site.getTransactionIdManager(0);
        this.queueManager = this.hstore_site.getTransactionQueueManager();
        this.queue = this.queueManager.getLockQueue(0);
        this.queueDbg = this.queue.getDebugContext();
        assertTrue(this.queue.isEmpty());
View Full Code Here

Examples of urban.kappa.Site

        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case KappaPackage.SITE:
      {
        Site site = (Site)theEObject;
        T result = caseSite(site);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case KappaPackage.MRK:
View Full Code Here

Examples of urban.model.Site

          Entry<Link, RuleGraph> entry1 = children.next();
          Entry<Link, RuleGraph> entry2 = children.next();
         
          Node a = entry1.getValue().getRoot();
          Node b = entry2.getValue().getRoot();
          get(rhs,a).add(new Site(a.getName(), entry1.getKey().getDst(), null, ""+i));
          get(rhs,b).add(new Site(b.getName(), entry2.getKey().getDst(), null, ""+i));
          i++;
          q.add(entry1.getValue());
          q.add(entry2.getValue());
        } else {
          ordering.add(root);
          String agent = root.getName();
          List<Site> sitesL = get(lhs, root);
          List<Site> sitesR = get(rhs, root);
          addAll(sitesL, root.getSitesL());
          addAll(sitesR, root.getSitesR());
          for(Entry<Link, RuleGraph> e : sorted(graph.getChildren())){
            if (e.getValue() == null){
              String siteName = e.getKey().getSrc();
              sitesL.add(new Site(agent, siteName, null, "_"));
              sitesR.add(new Site(agent, siteName, null, "_"));         
            } else {
              if (!lhs.containsKey(e.getValue().getRoot())){
                q.add(e.getValue());
              }
              String src = e.getKey().getSrc();
              sitesL.add(new Site(agent, src, null, ""+i));
              sitesR.add(new Site(agent, src, null, ""+i));
              Node root2 = e.getValue().getRoot();
              String dst = e.getKey().getDst();
              get(lhs, root2).add(new Site(root2.getName(), dst, null, ""+i));
              get(rhs, root2).add(new Site(root2.getName(), dst, null, ""+i));       
              i++;
            }
          }
        }
      }
View Full Code Here

Examples of urban.urban.Site

        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case UrbanPackage.SITE:
      {
        Site site = (Site)theEObject;
        T result = caseSite(site);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case UrbanPackage.MRK:
View Full Code Here

Examples of us.codecraft.webmagic.Site

public class WorkerTest {

    @Test
    public void testWorkerAsSpiderContains() throws Exception {
        PageProcessor pageProcessor = mock(PageProcessor.class);
        Site site = mock(Site.class);
        when(pageProcessor.getSite()).thenReturn(site);
        when(site.getDomain()).thenReturn("codecraft.us");
        Worker worker = new Worker();
        Spider spider = Spider.create(pageProcessor);
        worker.addSpider(spider);
        assertThat(worker.getSpider("codecraft.us")).isEqualTo(spider);
    }
View Full Code Here

Examples of vn.pyco.tinycms.model.Site

        if (page == null) {
            return NOT_FOUND;
        }
        
        String siteAlias = context[0].toString();
        Site site = _siteService.getSite(siteAlias);
        if (!authenticate(page)) {
            String targetUrl = _request.getPath();
            _request.getSession(true).setAttribute(SecurityConstants.FO_TARGET_URL, targetUrl);
            return Forbidden.class;
        }
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.