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.ContentImage; 21 import com.blandware.atleap.model.core.ContentResource; 22 import com.blandware.atleap.model.core.ResourceData; 23 import com.blandware.atleap.model.core.ContentDocument; 24 import com.blandware.atleap.persistence.exception.DeleteException; 25 import com.blandware.atleap.service.exception.BeanAlreadyExistsException; 26 import com.blandware.atleap.service.exception.BeanNotFoundException; 27 28 39 public interface ContentResourceManager extends BaseManager { 40 41 43 45 53 public Long createContentResource(ContentResource contentResource, ResourceData resourceData) throws BeanAlreadyExistsException; 54 55 61 public ContentResource retrieveContentResource(Long contentResourceId); 62 63 70 public void updateContentResource(ContentResource contentResource, ResourceData resourceData) throws BeanAlreadyExistsException; 71 72 78 public void deleteContentResource(Long contentResourceId) throws DeleteException, BeanNotFoundException; 79 80 82 88 public PartialCollection listContentResources(QueryInfo queryInfo); 89 90 97 public void increaseUsageCounter(Long resourceId, Integer value) throws BeanNotFoundException; 98 99 101 107 public ContentResource findContentResourceByUri(String uri); 108 109 110 112 114 123 public Long createContentImage(ContentImage contentImage, ResourceData resourceData) throws BeanAlreadyExistsException; 124 125 131 public ContentImage retrieveContentImage(Long contentImageId); 132 133 141 public void updateContentImage(ContentImage contentImage, ResourceData resourceData) throws BeanAlreadyExistsException; 142 143 150 public void deleteContentImage(Long contentImageId) throws DeleteException, BeanNotFoundException; 151 152 154 160 public PartialCollection listContentImages(QueryInfo queryInfo); 161 162 164 170 public ContentImage findContentImageByUri(String uri); 171 172 174 176 187 public Long createContentDocument(ContentDocument contentDocument, ResourceData resourceData, String localeIdentifier) throws BeanNotFoundException, BeanAlreadyExistsException; 188 189 195 public ContentDocument retrieveContentDocument(Long contentDocumentId); 196 197 207 public void updateContentDocument(ContentDocument contentDocument, ResourceData resourceData, String localeIdentifier) throws BeanNotFoundException, BeanAlreadyExistsException; 208 209 216 public void deleteContentDocument(Long contentDocumentId) throws DeleteException, BeanNotFoundException; 217 218 220 226 public PartialCollection listContentDocuments(QueryInfo queryInfo); 227 228 230 236 public ContentDocument findContentDocumentByUri(String uri); 237 238 } | Popular Tags |