Search in sources :

Example 1 with PageType

use of io.gravitee.management.model.PageType in project gravitee-management-rest-api by gravitee-io.

the class PageServiceImpl method convert.

private static Page convert(NewPageEntity newPageEntity) {
    Page page = new Page();
    page.setName(newPageEntity.getName());
    final PageType type = newPageEntity.getType();
    if (type != null) {
        page.setType(io.gravitee.repository.management.model.PageType.valueOf(type.name()));
    }
    page.setContent(newPageEntity.getContent());
    page.setLastContributor(newPageEntity.getLastContributor());
    page.setOrder(newPageEntity.getOrder());
    page.setPublished(newPageEntity.isPublished());
    page.setHomepage(newPageEntity.isHomepage());
    page.setSource(convert(newPageEntity.getSource()));
    page.setConfiguration(convert(newPageEntity.getConfiguration()));
    page.setExcludedGroups(newPageEntity.getExcludedGroups());
    return page;
}
Also used : PageType(io.gravitee.management.model.PageType)

Aggregations

PageType (io.gravitee.management.model.PageType)1