Package org.xwiki.netflux.script
Class NetfluxScriptService
- java.lang.Object
-
- org.xwiki.netflux.script.NetfluxScriptService
-
- All Implemented Interfaces:
org.xwiki.script.service.ScriptService
@Component @Singleton @Named("netflux") public class NetfluxScriptService extends Object implements org.xwiki.script.service.ScriptService
Script-related APIs for real-time synchronization.- Since:
- 13.9RC1
- Version:
- $Id: acbcec90d07211ab2c9e9e65ebee8041e5367753 $
-
-
Constructor Summary
Constructors Constructor Description NetfluxScriptService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EntityChannel
createChannel(org.xwiki.model.reference.EntityReference entityReference, List<String> path)
Associate a new channel to the specified entity, having the given path.EntityChannel
getChannel(org.xwiki.model.reference.EntityReference entityReference, List<String> path)
Looks for a channel associated to the specified entity and having the specified path.List<EntityChannel>
getChannels(org.xwiki.model.reference.EntityReference entityReference)
List<EntityChannel>
getChannels(org.xwiki.model.reference.EntityReference entityReference, List<String> pathPrefix)
Looks for the channels associated to the specified entity and having the specified path prefix.
-
-
-
Method Detail
-
getChannels
public List<EntityChannel> getChannels(org.xwiki.model.reference.EntityReference entityReference)
- Parameters:
entityReference
- an entity reference- Returns:
- all existing channels associated to the specified entity
-
getChannels
public List<EntityChannel> getChannels(org.xwiki.model.reference.EntityReference entityReference, List<String> pathPrefix)
Looks for the channels associated to the specified entity and having the specified path prefix.- Parameters:
entityReference
- an entity referencepathPrefix
- the path prefix used to match the channels- Returns:
- all existing channels associated to the specified entity and having the specified path prefix
-
getChannel
public EntityChannel getChannel(org.xwiki.model.reference.EntityReference entityReference, List<String> path)
Looks for a channel associated to the specified entity and having the specified path.- Parameters:
entityReference
- the entity the channel is associated withpath
- the channel path, used to identify the channel among all the channels associated to the same entity- Returns:
- the found channel
-
createChannel
public EntityChannel createChannel(org.xwiki.model.reference.EntityReference entityReference, List<String> path)
Associate a new channel to the specified entity, having the given path.- Parameters:
entityReference
- the entity to associate the channel withpath
- the channel path, used to identify the channel among all the channels associated to the same entity- Returns:
- information about the created channel
-
-