public interface ContextService
extends com.google.common.util.concurrent.Service
Modifier and Type | Method and Description |
---|---|
Context |
createContext(contextID : UUID,
defaultSpaceID : UUID,
owner : Agent)
Create a new context instance and register it into the internal repository.
|
Context |
createContextWithoutRegistration(contextID : UUID,
defaultSpaceID : UUID,
owner : Agent)
Create a new context instance and do not register it into the repository.
|
Collection<Context> |
getAllContexts()
Replies all the known contexts.
|
Context |
getContext(contextID : UUID)
Replies an existing context instance.
|
Context |
getRootContext()
Replies the root context.
|
Context |
removeContext(contextID : UUID)
Remove the context instance.
|
@Pure
def
getRootContext() : Context
ContextService
def
createContextWithoutRegistration(contextID : UUID,
defaultSpaceID : UUID,
owner : Agent) : Context
ContextService
contextID
- the id of the context to create.defaultSpaceID
- the id of the default space of the context to create.owner
- is the owner of the context. If null
, the context is the root context.def
createContext(contextID : UUID,
defaultSpaceID : UUID,
owner : Agent) : Context
ContextService
contextID
- the id of the context to create.defaultSpaceID
- the id of the default space of the context to create.owner
- is the owner of the context. If null
, the context is the root context.@Pure
def
getContext(contextID : UUID) : Context
ContextService
contextID
- the id of the context to createnull
.def
removeContext(contextID : UUID) : Context
ContextService
contextID
- the id of the context to removenull
if no context with the given ID was found.@Pure
def
getAllContexts() : Collection<Context>
ContextService
Copyright © 2021 the original authors or authors.