Class ScopeServiceImpl

java.lang.Object
org.apache.unomi.services.impl.scope.ScopeServiceImpl
All Implemented Interfaces:
ScopeService

public class ScopeServiceImpl extends Object implements ScopeService
  • Constructor Details

    • ScopeServiceImpl

      public ScopeServiceImpl()
  • Method Details

    • 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 interface ScopeService
      Returns:
      the List of known scopes
    • save

      public void save(Scope scope)
      Description copied from interface: ScopeService
      Save a scope
      Specified by:
      save in interface ScopeService
      Parameters:
      scope - to save
    • delete

      public boolean delete(String id)
      Description copied from interface: ScopeService
      Delete a scope
      Specified by:
      delete in interface ScopeService
      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 interface ScopeService
      Returns:
      Scope matching the id