@Service @Transactional(readOnly=true) public class MarkerServiceImpl extends VersionableServiceBase<Marker,MarkerDaoImpl> implements IMarkerService
commonService
appContext, dao, INCLUDE_UNPUBLISHED, NO_UNPUBLISHED
Constructor and Description |
---|
MarkerServiceImpl() |
Modifier and Type | Method and Description |
---|---|
long |
count(User creator,
MarkerType markerType) |
Pager<Marker> |
list(User creator,
MarkerType markerType,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths) |
Pager<Marker> |
page(MarkerType markerType,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths)
Returns a pager of markers which have the same type
|
protected void |
setDao(MarkerDaoImpl dao) |
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
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(MarkerDaoImpl dao)
setDao
in class ServiceBase<Marker,MarkerDaoImpl>
public Pager<Marker> page(MarkerType markerType, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
IMarkerService
page
in interface IMarkerService
markerType
- The type of markerTypepageSize
- 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)
public Pager<Marker> list(User creator, MarkerType markerType, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
list
in interface IMarkerService
creator
- the person who created those markersmarkerType
- the markerType of those markers (can be null)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
- 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 markerType)
count
in interface IMarkerService
creator
- the person who created those markersmarkerType
- the markerType of those markers (can be null)Copyright © 2007-2020 EDIT. All Rights Reserved.