Examples of Page


Examples of de.zib.scalaris.examples.wikipedia.data.Page

        Revision curRev = null;
        if (!revisions.isEmpty()) {
            curRev = revisions.lastEntry().getValue();
            curRev.setUnpackedText(lastRevText);
        }
        final_page = new Page(title,
                Integer.parseInt(id), redirect, restrictions_map, curRev);
    }
View Full Code Here

Examples of easyJ.database.dao.Page

            BeanUtil.setFieldValue(lower, "useState", "Y");
            BeanUtil.setFieldValue(upper, "useState", "Y");
        } catch (Exception e) {

        }
        Page page = null;
        if (GenericValidator.isBlankOrNull(orderByColumn)) {
            page = dp.query(lower, upper, pageNum, null);
        } else {
            OrderRule or = new OrderRule(orderByColumn, OrderDirection
                    .parse(orderDirection));
View Full Code Here

Examples of edu.mit.blocks.workspace.Page

    private static void dropBlock(RenderableBlock block) {
        if (block == null) {
            throw new RuntimeException("Invariant Violated: child block was null");
        }
        Workspace workspace = block.getWorkspace();
        Page p = workspace.getCurrentPage(block);
        if (p == null) {
            throw new RuntimeException("Invariant Violated: child block was located on a null widget");
        }
        //add this block to that page.
        p.blockDropped(block);
    }
View Full Code Here

Examples of edu.uci.ics.crawler4j.crawler.Page

  private HTMLParser htmlParser = new HTMLParser();

  public Page download(String url) {
    WebURL curURL = new WebURL();
    curURL.setURL(url);
    Page page = new Page(curURL);
    int statusCode = PageFetcher.fetch(page, true);
    if (statusCode == PageFetchStatus.OK) {
      try {
        htmlParser.parse(page.getHTML(), curURL.getURL());
        page.setText(htmlParser.getText());
        page.setTitle(htmlParser.getTitle());
        return page;
      } catch (Exception e) {
        e.printStackTrace();
      }
    }
View Full Code Here

Examples of facebook4j.Page

    }

    @Test
    public void getRawJSON() throws Exception {
        facebook.setMockJSON("mock_json/page/f4j.json");
        Page page = facebook.getPage();
        String rawJSON = DataObjectFactory.getRawJSON(page);
        assertThat(rawJSON, is(notNullValue()));
    }
View Full Code Here

Examples of info.bliki.api.Page

        String[] listOfTitleStrings = { templateNS + name };
        fUser.login();
        List<Page> listOfPages = fUser.queryContent(listOfTitleStrings);
        if (listOfPages.size() > 0) {
          Page page = listOfPages.get(0);
          content = page.getCurrentContent();
          if (content != null) {
            // System.out.println(name);
            // System.out.println(content);
            // System.out.println("-----------------------");
            topicData = new TopicData(templateNS + name, content);
View Full Code Here

Examples of loxia.dao.Page

    return handleQueryNative(query, pjp.getThis(), ms.getMethod(), pjp.getArgs());
  }
 
  private Object handleQueryNative(Query query, Object obj, Method m, Object[] args){
    Map<String, Object> params = getParams(m, args);
    Page page = getPage(args);
    boolean pagable = (page != null) || query.pagable();   
   
    String queryString = query.value();     
    logger.debug("Query[{}] will be executed.",queryString);
   
    Sort[] sorts = getSorts(args);
   
    if(sorts != null){
      logger.debug("Query need be sorted with :" + Arrays.asList(sorts));
    }
   
    if(List.class.isAssignableFrom(m.getReturnType())){
      if(pagable){
        if(page != null)
          return daoService.findByQuery(queryString, params, sorts, page.getStart(), page.getSize());
        else if(args[0] instanceof Integer &&
            args[1] instanceof Integer)       
          return daoService.findByQuery(queryString, params, sorts, (Integer)args[0], (Integer)args[1]);
        else
          throw new IllegalArgumentException("Startindex and pagesize must be set for pagable query.");
      }else{
        return daoService.findByQuery(queryString, params, sorts);
      }
    }else if(Pagination.class.isAssignableFrom(m.getReturnType())){
      if(pagable){
        if(page != null)
          return daoService.findByQuery(queryString, params, sorts, page.getStart(), page.getSize(), query.withGroupby());
        else if(args[0] instanceof Integer &&
            args[1] instanceof Integer)       
          return daoService.findByQuery(queryString, params, sorts, (Integer)args[0], (Integer)args[1], query.withGroupby());
        else
          throw new IllegalArgumentException("Startindex and pagesize must be set for pagable query.");
View Full Code Here

Examples of net.bican.wordpress.Page

      WP.deletePage(page.getPage_id(), "true");
    }
    pages = WP.getPages();
    assertNotNull(pages);
    assertEquals(0, pages.size());
    Page page = new Page();
    page.setDescription("deneme");
    String newPageIds = WP.newPage(page, "publish");
    int newPageId = Integer.valueOf(newPageIds).intValue();
    Page pageNow = WP.getPage(newPageId);
    assertNotNull(pageNow);
    assertEquals("deneme", pageNow.getDescription());
  }
View Full Code Here

Examples of net.easymodo.asagi.model.Page

        @Override
        @SuppressWarnings("InfiniteLoopStatement")
        public void run() {
            while(true) {
                long startTime = DateTime.now().getMillis();
                Page threadList;
                try {
                    threadList = sourceBoard.getAllThreads(lastMod);
                } catch(HttpGetException e) {
                    if(e.getHttpStatus() == 304)
                        debug(TALK, ("threads.json: not modified"));
                    else
                        debug(WARN, "threads.json: " + e.getMessage());
                    sleepRemaining(startTime);
                    continue;
                } catch(ContentGetException e) {
                    debug(WARN, "Error getting thread list: " + e.getMessage());
                    sleepRemaining(startTime);
                    continue;
                } catch(ContentParseException e) {
                    debug(WARN, "Error parsing thread list: " + e.getMessage());
                    sleepRemaining(startTime);
                    continue;
                }

                lastMod = threadList.getLastMod();

                Map<Integer,Topic> threadMap = new HashMap<Integer, Topic>();
                for(Topic topic : threadList.getThreads()) {
                    threadMap.put(topic.getNum(), topic);
                }

                // Go over the old threads
                for(Topic oldTopic : topics.values()) {
View Full Code Here

Examples of net.mindengine.galen.page.Page

    public static LayoutReport checkLayout(Browser browser, List<PageSpec> specs,
                                   List<String> includedTags, List<String> excludedTags,
                                   ValidationListener validationListener) throws IOException {

        Page page = browser.getPage();

        CombinedValidationListener listener = new CombinedValidationListener();
        listener.add(validationListener);

        LayoutReport layoutReport = new LayoutReport();
        try {
            layoutReport.setScreenshotFullPath(page.createScreenshot().getAbsolutePath());
        }
        catch (Exception ex) {
            ex.printStackTrace();
        }
        listener.add(new LayoutReportListener(layoutReport));
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.