public abstract class AnnotatableServiceBase<T extends AnnotatableEntity,DAO extends IAnnotatableDao<T>> extends VersionableServiceBase<T,DAO> implements IAnnotatableService<T>
commonService
appContext, dao, INCLUDE_UNPUBLISHED, NO_UNPUBLISHED
Constructor and Description |
---|
AnnotatableServiceBase() |
Modifier and Type | Method and Description |
---|---|
int |
countMarkers(java.lang.Class<? extends T> clazz,
java.lang.Boolean technical)
returns a count of all markers belonging to that clazz, optionally filtered to include only technical or only non-technical markers.
|
Pager<Annotation> |
getAnnotations(T annotatedObj,
MarkerType status,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths)
Return a Pager containing Annotation entities belonging to the object supplied, optionally
filtered by MarkerType
|
Pager<Marker> |
getMarkers(T annotatableEntity,
java.lang.Boolean technical,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths)
Returns a Pager containing Marker entities belonging to the object supplied, optionally filtered by
whether they are technical or non-technical markers
|
java.util.List<java.lang.Object[]> |
groupMarkers(java.lang.Class<? extends T> clazz,
java.lang.Boolean technical,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<java.lang.String> propertyPaths)
Returns a list of arrays representing counts of entities of type clazz, grouped by their markerTypes.
|
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, setDao, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
@Transactional(readOnly=true) public Pager<Annotation> getAnnotations(T annotatedObj, MarkerType status, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
IAnnotatableService
getAnnotations
in interface IAnnotatableService<T extends AnnotatableEntity>
annotatedObj
- The object that "owns" the annotations returnedstatus
- Only return annotations which are marked with a Marker of this type (can be null to return all annotations)pageSize
- The maximum number of terms returned (can be null for all annotations)pageNumber
- The offset (in pageSize chunks) from the start of the result set (0 - based)orderHints
- may be nullpropertyPaths
- properties to initialize - see IBeanInitializer.initialize(Object, List)
@Transactional(readOnly=true) public Pager<Marker> getMarkers(T annotatableEntity, java.lang.Boolean technical, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
IAnnotatableService
getMarkers
in interface IAnnotatableService<T extends AnnotatableEntity>
annotatableEntity
- the entity which is markedtechnical
- The type of MarkerTypes to consider (null to count all markers, regardless of whether the makerType is technical or not)pageSize
- The maximum number of markers returned (can be null for all markers)pageNumber
- The offset (in pageSize chunks) from the start of the result set (0 - based)orderHints
- may be nullpropertyPaths
- properties to initialize - see IBeanInitializer.initialize(Object, List)
@Transactional(readOnly=true) public java.util.List<java.lang.Object[]> groupMarkers(java.lang.Class<? extends T> clazz, java.lang.Boolean technical, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<java.lang.String> propertyPaths)
IAnnotatableService
groupMarkers
in interface IAnnotatableService<T extends AnnotatableEntity>
clazz
- optionally restrict the markers to those belonging to this classtechnical
- The type of MarkerTypes to consider (null to count all markers, regardless of whether the makerType is technical or not)pageSize
- The maximum number of arrays returned (can be null for all arrays)pageNumber
- The offset (in pageSize chunks) from the start of the result set (0 - based)propertyPaths
- properties to initialize - see IBeanInitializer.initialize(Object, List)
@Transactional(readOnly=true) public int countMarkers(java.lang.Class<? extends T> clazz, java.lang.Boolean technical)
IAnnotatableService
countMarkers
in interface IAnnotatableService<T extends AnnotatableEntity>
clazz
- optionally restrict the markers to those belonging to this classtechnical
- The type of MarkerTypes to consider (null to count all markers, regardless of whether the makerType is technical or not)Copyright © 2007-2020 EDIT. All Rights Reserved.