@Role
@Unstable
public interface EntityChannelStore
Modifier and Type | Method and Description |
---|---|
EntityChannel |
createChannel(org.xwiki.model.reference.EntityReference entityReference,
List<String> path)
Associate a new channel to the specified entity, having the given path.
|
default Optional<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) |
default 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.
|
List<EntityChannel> getChannels(org.xwiki.model.reference.EntityReference entityReference)
entityReference
- an entity referencedefault List<EntityChannel> getChannels(org.xwiki.model.reference.EntityReference entityReference, List<String> pathPrefix)
entityReference
- an entity referencepathPrefix
- the path prefix used to match the channelsdefault Optional<EntityChannel> getChannel(org.xwiki.model.reference.EntityReference entityReference, List<String> path)
entityReference
- the entity the channel is associated withpath
- the channel path, used to identify the channel among all the channels associated to the same entityEntityChannel createChannel(org.xwiki.model.reference.EntityReference entityReference, List<String> path)
entityReference
- the entity to associate the channel withpath
- the channel path, used to identify the channel among all the channels associated to the same entityCopyright © 2004–2022 XWiki. All rights reserved.