public class UserListServiceImpl extends AbstractServiceImpl implements UserListService, org.osgi.framework.SynchronousBundleListener
definitionsService, persistenceService
Constructor and Description |
---|
UserListServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
bundleChanged(org.osgi.framework.BundleEvent bundleEvent) |
List<UserList> |
getAllUserLists() |
PartialList<Metadata> |
getUserListMetadatas(int offset,
int size,
String sortBy)
Retrieves user lists metadatas, ordered according to the specified
sortBy String and and paged: only size of them are retrieved, starting with the offset -th one. |
void |
postConstruct() |
void |
preDestroy() |
void |
setBundleContext(org.osgi.framework.BundleContext bundleContext) |
getMetadatas, getMetadatas, setDefinitionsService, setPersistenceService
public void setBundleContext(org.osgi.framework.BundleContext bundleContext)
public void postConstruct()
public void preDestroy()
public List<UserList> getAllUserLists()
getAllUserLists
in interface UserListService
List
of UserList
public PartialList<Metadata> getUserListMetadatas(int offset, int size, String sortBy)
UserListService
sortBy
String and and paged: only size
of them are retrieved, starting with the offset
-th one.getUserListMetadatas
in interface UserListService
offset
- zero or a positive integer specifying the position of the first element in the total ordered collection of matching elementssize
- a positive integer specifying how many matching elements should be retrieved or -1
if all of them should be retrievedsortBy
- an optional (null
if no sorting is required) String of comma (,
) separated property names on which ordering should be performed, ordering elements according to the property order in the
String, considering each in turn and moving on to the next one in case of equality of all preceding ones. Each property name is optionally followed by
a column (:
) and an order specifier: asc
or desc
.PartialList
of UserList
metadatapublic void bundleChanged(org.osgi.framework.BundleEvent bundleEvent)
bundleChanged
in interface org.osgi.framework.BundleListener
Copyright © 2014–2022 Apache Software Foundation. All rights reserved.