Class ScopeServiceImpl
- java.lang.Object
-
- org.apache.unomi.services.impl.scope.ScopeServiceImpl
-
- All Implemented Interfaces:
ScopeService
public class ScopeServiceImpl extends Object implements ScopeService
-
-
Constructor Summary
Constructors Constructor Description ScopeServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandelete(String id)Delete a scopeScopegetScope(String id)Get a scope by its idList<Scope>getScopes()Retrieves all known scopes.voidpostConstruct()voidpreDestroy()voidsave(Scope scope)Save a scopevoidsetPersistenceService(PersistenceService persistenceService)voidsetSchedulerService(SchedulerService schedulerService)voidsetScopesRefreshInterval(Integer scopesRefreshInterval)
-
-
-
Method Detail
-
setPersistenceService
public void setPersistenceService(PersistenceService persistenceService)
-
setSchedulerService
public void setSchedulerService(SchedulerService schedulerService)
-
setScopesRefreshInterval
public void setScopesRefreshInterval(Integer scopesRefreshInterval)
-
postConstruct
public void postConstruct()
-
preDestroy
public void preDestroy()
-
getScopes
public List<Scope> getScopes()
Description copied from interface:ScopeServiceRetrieves all known scopes.- Specified by:
getScopesin interfaceScopeService- Returns:
- the List of known scopes
-
save
public void save(Scope scope)
Description copied from interface:ScopeServiceSave a scope- Specified by:
savein interfaceScopeService- Parameters:
scope- to save
-
delete
public boolean delete(String id)
Description copied from interface:ScopeServiceDelete a scope- Specified by:
deletein interfaceScopeService- Parameters:
id- of the scope- Returns:
- true if scope is deleted
-
getScope
public Scope getScope(String id)
Description copied from interface:ScopeServiceGet a scope by its id- Specified by:
getScopein interfaceScopeService- Returns:
- Scope matching the id
-
-