Class UserListServiceImpl
java.lang.Object
org.apache.unomi.services.impl.AbstractServiceImpl
org.apache.unomi.services.impl.lists.UserListServiceImpl
- All Implemented Interfaces:
EventListener,UserListService,org.osgi.framework.BundleListener,org.osgi.framework.SynchronousBundleListener
public class UserListServiceImpl
extends AbstractServiceImpl
implements UserListService, org.osgi.framework.SynchronousBundleListener
Created by amidani on 24/03/2017.
-
Field Summary
Fields inherited from class org.apache.unomi.services.impl.AbstractServiceImpl
definitionsService, persistenceService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbundleChanged(org.osgi.framework.BundleEvent bundleEvent) getUserListMetadatas(int offset, int size, String sortBy) Retrieves user lists metadatas, ordered according to the specifiedsortByString and and paged: onlysizeof them are retrieved, starting with theoffset-th one.voidvoidvoidsetBundleContext(org.osgi.framework.BundleContext bundleContext) Methods inherited from class org.apache.unomi.services.impl.AbstractServiceImpl
getMetadatas, getMetadatas, setDefinitionsService, setPersistenceService
-
Constructor Details
-
UserListServiceImpl
public UserListServiceImpl()
-
-
Method Details
-
setBundleContext
public void setBundleContext(org.osgi.framework.BundleContext bundleContext) -
postConstruct
public void postConstruct() -
preDestroy
public void preDestroy() -
getAllUserLists
- Specified by:
getAllUserListsin interfaceUserListService- Returns:
- a
ListofUserList
-
getUserListMetadatas
Description copied from interface:UserListServiceRetrieves user lists metadatas, ordered according to the specifiedsortByString and and paged: onlysizeof them are retrieved, starting with theoffset-th one.- Specified by:
getUserListMetadatasin interfaceUserListService- Parameters:
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-1if all of them should be retrievedsortBy- an optional (nullif 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:ascordesc.- Returns:
- a
PartialListofUserListmetadata
-
bundleChanged
public void bundleChanged(org.osgi.framework.BundleEvent bundleEvent) - Specified by:
bundleChangedin interfaceorg.osgi.framework.BundleListener
-