Package com.dodo.blog.request

Examples of com.dodo.blog.request.BasicRequest


        private static final long serialVersionUID = 1L;

        @Override
        public List<Playground> getRows( int firstRow, int maxRows, String orderBy, OrderDirection direction )
        {
            BasicRequest request = new BasicRequest( firstRow, maxRows );
            request.addSort( orderBy, direction );
            return playgroundService.getPlaygroundList( request );
        }
View Full Code Here


        private static final long serialVersionUID = 1L;

        @Override
        public List<Category> getRows( int firstRow, int maxRows, String orderBy, OrderDirection direction )
        {
            BasicRequest request = new BasicRequest( firstRow, maxRows );
            request.addSort( orderBy, direction );
            return categoryService.getCategoryList( request );
        }
View Full Code Here

        ArticleEdit.tagService = tagService;
    }

    private List<Category> getCategories()
    {
        return categoryService.getCategoryList( new BasicRequest() );
    }
View Full Code Here

        return categoryService.getCategoryList( new BasicRequest() );
    }

    private List<Tag> getTags()
    {
        return tagService.getTagList( new BasicRequest() );
    }
View Full Code Here

        private static final long serialVersionUID = 1L;

        @Override
        public List<Tag> getRows( int firstRow, int maxRows, String orderBy, OrderDirection direction )
        {
            BasicRequest request = new BasicRequest( firstRow, maxRows );
            request.addSort( orderBy, direction );
            return tagService.getTagList( request );
        }
View Full Code Here

        renderArticles( articleService.getRecentArticles() );
    }

    private void renderCategories()
    {
        BasicRequest request = new BasicRequest();
        request.addSort( "name", OrderDirection.ASC );
        for ( Category category : categoryService.getCategoryList( request ) )
        {
            renderAsideItem( category.getLabel(), UriConstructor.createCategoyUri( category ), null );
        }
    }
View Full Code Here

        }
    }

    private void renderTags()
    {
        BasicRequest request = new BasicRequest();
        request.addSort( "name", OrderDirection.ASC );

        Panel asideItem = new Panel();
        asideItem.setClassName( "aside-item-tag" );
        add( asideItem );
View Full Code Here

    @Test
    public void testGetTagList()
    {
        saveTag();

        List<Tag> tags = tagService.getTagList( new BasicRequest( 0, 20 ) );
        Assert.assertEquals( 1, tags.size() );
        Assert.assertEquals( "Google App Engine", tags.get( 0 ).getName() );
    }
View Full Code Here

    @Test
    public void testGetCategoryList()
    {
        saveCategory();

        List<Category> categoryList = categoryService.getCategoryList( new BasicRequest( 0, 20 ) );
        Assert.assertEquals( 1, categoryList.size() );
        Assert.assertEquals( "Google App Engine", categoryList.get( 0 ).getName() );
    }
View Full Code Here

    @Test
    public void testGetPlaygroundList()
    {
        savePlayground();

        List<Playground> playground = playgroundService.getPlaygroundList( new BasicRequest( 0, 20 ) );
        Assert.assertEquals( 1, playground.size() );
        Assert.assertEquals( "CSS 3 border radius test", playground.get( 0 ).getDescription() );
    }
View Full Code Here

TOP

Related Classes of com.dodo.blog.request.BasicRequest

Copyright © 2018 www.massapicom. 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.