1 16 package com.blandware.atleap.service.core; 17 18 import com.blandware.atleap.common.util.PartialCollection; 19 import com.blandware.atleap.common.util.QueryInfo; 20 import com.blandware.atleap.model.core.ActionPage; 21 import com.blandware.atleap.model.core.ContentPage; 22 import com.blandware.atleap.model.core.Page; 23 import com.blandware.atleap.persistence.exception.DeleteException; 24 import com.blandware.atleap.service.exception.BeanAlreadyExistsException; 25 import com.blandware.atleap.service.exception.BeanNotFoundException; 26 27 import java.util.Collection ; 28 29 39 public interface PageManager extends BaseManager { 40 41 43 49 public PartialCollection listLinkableItems(QueryInfo queryInfo); 50 51 53 55 64 public Long createContentPage(ContentPage contentPage, Long layoutId) throws BeanAlreadyExistsException, BeanNotFoundException; 65 66 72 public ContentPage retrieveContentPage(Long contentPageId); 73 74 82 public void updateContentPage(ContentPage contentPage, Long layoutId) throws BeanAlreadyExistsException, BeanNotFoundException; 83 84 85 92 public void deleteContentPage(Long contentPageId) throws BeanNotFoundException, DeleteException; 93 94 96 102 public PartialCollection listContentPages(QueryInfo queryInfo); 103 104 106 112 public ContentPage findContentPageByUri(String contentPageUri); 113 114 115 117 119 126 public Long createActionPage(ActionPage actionPage) throws BeanAlreadyExistsException; 127 128 134 public ActionPage retrieveActionPage(Long actionPageId); 135 136 142 public void updateActionPage(ActionPage actionPage) throws BeanAlreadyExistsException; 143 144 145 151 public void deleteActionPage(Long actionPageId) throws DeleteException, BeanNotFoundException; 152 153 155 161 public PartialCollection listActionPages(QueryInfo queryInfo); 162 163 165 171 public ActionPage findActionPageByUri(String actionPageUri); 172 173 174 176 182 public Page findPageByUri(String pageUri); 183 184 190 public Page retrievePage(Long pageId); 191 192 198 public Collection listPagesFetching(); 199 200 207 public void increaseUsageCounter(Long pageId, Integer value) throws BeanNotFoundException; 208 } 209 | Popular Tags |