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 boolean
delete(String id)
Delete a scopeScope
getScope(String id)
Get a scope by its idList<Scope>
getScopes()
Retrieves all known scopes.void
postConstruct()
void
preDestroy()
void
save(Scope scope)
Save a scopevoid
setPersistenceService(PersistenceService persistenceService)
void
setSchedulerService(SchedulerService schedulerService)
void
setScopesRefreshInterval(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:ScopeService
Retrieves all known scopes.- Specified by:
getScopes
in interfaceScopeService
- Returns:
- the List of known scopes
-
save
public void save(Scope scope)
Description copied from interface:ScopeService
Save a scope- Specified by:
save
in interfaceScopeService
- Parameters:
scope
- to save
-
delete
public boolean delete(String id)
Description copied from interface:ScopeService
Delete a scope- Specified by:
delete
in interfaceScopeService
- Parameters:
id
- of the scope- Returns:
- true if scope is deleted
-
getScope
public Scope getScope(String id)
Description copied from interface:ScopeService
Get a scope by its id- Specified by:
getScope
in interfaceScopeService
- Returns:
- Scope matching the id
-
-