Class ScopeServiceImpl
java.lang.Object
org.apache.unomi.services.impl.scope.ScopeServiceImpl
- All Implemented Interfaces:
ScopeService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Delete a scopeGet a scope by its idRetrieves all known scopes.void
void
void
Save a scopevoid
setPersistenceService
(PersistenceService persistenceService) void
setSchedulerService
(SchedulerService schedulerService) void
setScopesRefreshInterval
(Integer scopesRefreshInterval)
-
Constructor Details
-
ScopeServiceImpl
public ScopeServiceImpl()
-
-
Method Details
-
setPersistenceService
-
setSchedulerService
-
setScopesRefreshInterval
-
postConstruct
public void postConstruct() -
preDestroy
public void preDestroy() -
getScopes
Description copied from interface:ScopeService
Retrieves all known scopes.- Specified by:
getScopes
in interfaceScopeService
- Returns:
- the List of known scopes
-
save
Description copied from interface:ScopeService
Save a scope- Specified by:
save
in interfaceScopeService
- Parameters:
scope
- to save
-
delete
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
Description copied from interface:ScopeService
Get a scope by its id- Specified by:
getScope
in interfaceScopeService
- Returns:
- Scope matching the id
-