@Service @Transactional(readOnly=true) public class AnnotationService extends AnnotatableServiceBase<Annotation,AnnotationDaoImpl> implements IAnnotationService
commonService
appContext, dao, INCLUDE_UNPUBLISHED, NO_UNPUBLISHED
Constructor and Description |
---|
AnnotationService() |
Modifier and Type | Method and Description |
---|---|
long |
count(Person commentator,
MarkerType status)
return a count of the number of annotations made by this person, optionally filtered by the status of those annotations
|
long |
count(User creator,
MarkerType status)
return a count of the number of annotations created by this user, optionally filtered by the status of those annotations
|
Pager<Annotation> |
list(Person commentator,
MarkerType status,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths) |
Pager<Annotation> |
list(User creator,
MarkerType status,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths) |
protected void |
setDao(AnnotationDaoImpl dao) |
countMarkers, getAnnotations, getMarkers, groupMarkers
getNextAuditEvent, getPreviousAuditEvent, isDeletable, pageAuditEvents, pageAuditEvents
checkPublished, clear, count, delete, delete, delete, exists, find, find, find, find, findById, findWithoutFlush, getSession, group, list, list, load, load, load, load, loadByIds, loadByIds, loadWithUpdate, lock, merge, merge, merge, merge, page, page, page, pageByParamWithRestrictions, refresh, refresh, save, save, saveOrUpdate, saveOrUpdate, setApplicationContext, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
countMarkers, getAnnotations, getMarkers, groupMarkers
getNextAuditEvent, getPreviousAuditEvent, isDeletable, pageAuditEvents, pageAuditEvents
clear, count, delete, delete, delete, exists, find, find, find, find, findById, findWithoutFlush, getSession, group, list, list, load, load, load, load, loadByIds, loadByIds, loadWithUpdate, lock, merge, merge, merge, merge, page, page, page, pageByParamWithRestrictions, refresh, refresh, save, save, saveOrUpdate, saveOrUpdate, update
@Autowired protected void setDao(AnnotationDaoImpl dao)
setDao
in class ServiceBase<Annotation,AnnotationDaoImpl>
public long count(Person commentator, MarkerType status)
IAnnotationService
count
in interface IAnnotationService
commentator
- the person who created those annotationsstatus
- the status of those annotations (can be null)public Pager<Annotation> list(Person commentator, MarkerType status, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
list
in interface IAnnotationService
commentator
- the person who created those annotationsstatus
- the status of those annotations (can be null)pageSize
- The maximum number of annotations returned (can be null for all annotations)pageNumber
- The offset (in pageSize chunks) from the start of the result set (0 - based)orderHints
- Properties to order bypropertyPaths
- Properties to initialize in the returned entities, following the syntax described in IBeanInitializer.initialize(Object, List)
public long count(User creator, MarkerType status)
IAnnotationService
count
in interface IAnnotationService
creator
- the user who created those annotationsstatus
- the status of those annotations (can be null)public Pager<Annotation> list(User creator, MarkerType status, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
list
in interface IAnnotationService
creator
- the user who created those annotationsstatus
- the status of those annotations (can be null)pageSize
- The maximum number of annotations returned (can be null for all annotations)pageNumber
- The offset (in pageSize chunks) from the start of the result set (0 - based)orderHints
- Properties to order bypropertyPaths
- Properties to initialize in the returned entities, following the syntax described in IBeanInitializer.initialize(Object, List)
Copyright © 2007-2020 EDIT. All Rights Reserved.