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.ContentField; 21 import com.blandware.atleap.model.core.ContentFieldValue; 22 import com.blandware.atleap.persistence.exception.DeleteException; 23 import com.blandware.atleap.service.exception.BeanAlreadyExistsException; 24 import com.blandware.atleap.service.exception.BeanNotFoundException; 25 26 import java.util.List ; 27 28 38 public interface ContentFieldManager extends BaseManager { 39 40 42 44 53 public Long createContentField(ContentField field, Long ownerId) throws BeanNotFoundException, BeanAlreadyExistsException; 54 55 61 public ContentField retrieveContentField(Long fieldId); 62 63 71 public void updateContentField(ContentField field, Long localizableId) throws BeanNotFoundException, BeanAlreadyExistsException; 72 73 74 81 public void deleteContentField(Long fieldId) throws BeanNotFoundException, DeleteException; 82 83 85 91 public PartialCollection listContentFields(QueryInfo queryInfo); 92 93 95 102 public ContentField findContentFieldByLayoutDefinition(String identifier, String definition); 103 104 111 public ContentField findContentFieldByPageUri(String identifier, String uri); 112 113 123 public List findIndexedContentFieldsByLayoutDefinition(String identifier, String definition, String locale); 124 125 135 public List findIndexedContentFieldsByPageUri(String identifier, String uri, String locale); 136 137 138 139 141 143 154 public Long createContentFieldValue(ContentFieldValue contentFieldValue, Long fieldId, String localeIdentifier) throws BeanNotFoundException, BeanAlreadyExistsException; 155 156 162 public ContentFieldValue retrieveContentFieldValue(Long contentFieldValueId); 163 164 174 public void updateContentFieldValue(ContentFieldValue contentFieldValue, Long fieldId, String localeIdentifier) throws BeanNotFoundException, BeanAlreadyExistsException; 175 176 177 183 public void deleteContentFieldValue(Long contentFieldValueId) throws BeanNotFoundException; 184 185 187 193 public PartialCollection listContentFieldValues(QueryInfo queryInfo); 194 195 197 205 public ContentFieldValue findContentFieldValueByUriAndIdentifierAndLocale(String uri, String identifier, String localeIdentifier); 206 207 215 public ContentFieldValue findContentFieldValueByDefinitionAndIdentifierAndLocale(String definition, String identifier, String localeIdentifier); 216 217 225 public ContentFieldValue findContentFieldValueByLocalizableIdAndIdentifierAndLocale(Long localizableId, String identifier, String localeIdentifier); 226 227 234 public ContentFieldValue findContentFieldValueByContentFieldIdAndLocale(Long fieldId, String localeIdentifier); 235 236 } 237 | Popular Tags |