public interface ChannelManager
Channel
s. Basic Channel operations are provided.Modifier and Type | Method and Description |
---|---|
String |
persist(javax.jcr.Session session,
String blueprintId,
org.onehippo.cms7.services.hst.Channel channel)
Persists a channel.
|
void |
save(javax.jcr.Session session,
String hostGroupName,
org.onehippo.cms7.services.hst.Channel channel)
Save channel properties for the given host group.
|
String persist(javax.jcr.Session session, String blueprintId, org.onehippo.cms7.services.hst.Channel channel) throws ChannelException
When invoking this method, an HstSubject context must be provided with the credentials necessary to persist the channel.
The persisted channel can be retrieved again via VirtualHosts.getChannelById(String, String)
with the returned channel ID.
session
- the session used to persist the changesblueprintId
- blueprint that contains prototypes for mount, site and hst configurationchannel
- a channel instance to be persistedChannelException
- with type @{link ChannelException.Type#MOUNT_NOT_FOUND} when all but the last path-step
in the URL path of a new channel do not map to existing mounts. The exception has one parameter: the absolute
JCR path of the missing mount.ChannelException
- with type @{link ChannelException.Type#MOUNT_EXISTS} when the mount of a new channel
already exists. The exception has one parameter: the absolute JCR path of the existing mount.
void save(javax.jcr.Session session, String hostGroupName, org.onehippo.cms7.services.hst.Channel channel) throws ChannelException
session
- the session used to persist the changeshostGroupName
- channel
- ChannelException
Copyright © 2008–2020 Hippo B.V. (http://www.onehippo.com). All rights reserved.