1 16 package com.blandware.atleap.persistence.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.ContentResource; 21 import com.blandware.atleap.model.core.ResourceData; 22 import com.blandware.atleap.persistence.exception.DeleteException; 23 24 31 public interface ContentResourceDAO extends DAO { 32 33 35 42 public Long createContentResource(ContentResource contentResource, ResourceData resourceData); 43 44 50 public ContentResource retrieveContentResource(Long contentResourceId); 51 52 59 public void updateContentResource(ContentResource contentResource, ResourceData resourceData); 60 61 67 public void deleteContentResource(ContentResource contentResource) throws DeleteException; 68 69 71 77 public PartialCollection listContentResources(QueryInfo queryInfo); 78 79 86 public boolean hasDuplicates(ContentResource contentResource); 87 88 90 96 public ContentResource findContentResourceByUri(String uri); 97 98 99 } 100 | Popular Tags |