public class ChannelTemplateManager extends Object implements IChannelTemplateManager
Constructor and Description |
---|
ChannelTemplateManager() |
Modifier and Type | Method and Description |
---|---|
String |
addChannelLink(SessionConfig sessionConfig,
ChannelTemplateLinkConfig channelTemplateLinkConfig,
ITransaction transaction)
Add a channel's link.
|
void |
deleteChannelLink(SessionConfig sessionConfig,
String channelLinkId,
ITransaction transaction)
Delete a specific channel's link by pass channelLinkId.
|
void |
deleteChannelLinks(SessionConfig sessionConfig,
String channelId,
ITransaction transaction)
Delete all channel's links by pass channelId.
|
String |
deserializeChannelTemplateLink(SessionConfig sessionConfig,
DeserializationConfig deserializationConfig,
Node linkNode,
ITransaction transaction)
Deserializes the channel template link in the given node.
|
void |
disconnectFromTemplate(SessionConfig sessionConfig,
String channelId,
ITransaction transaction)
This method disconnects the specific channel from the channel's template.
|
ChannelTemplateLinkConfig |
getChannelLinkBySourceId(SessionConfig sessionConfig,
String channelId,
String sourceId,
boolean getLinkedElementsOnly,
ITransaction transaction)
This method return the channel's link by pass the channelId and the
sourceId parameters.
|
List<ChannelTemplateLinkConfig> |
getChannelLinks(SessionConfig sessionConfig,
String channelId,
boolean getLinkedElementsOnly,
ITransaction transaction)
This method return channel's links by pass the channelId parameter.
|
void |
serializeChannelTemplateLinks(SessionConfig sessionConfig,
String channelId,
OutputStream outputStream,
ITransaction transaction)
Serializes the channel template links of a single channel.
|
void |
updateChannelStructureFromTemplate(SessionConfig sessionConfig,
String channelId,
ITransaction transaction)
This method updates the channel's structure from the channel template.
|
protected void |
updateChannelStructureFromTemplate(SessionConfig sessionConfig,
String channelId,
String channelTemplateId,
Document templateDocument,
ITransaction transaction)
Updates a channel structure using the given template document.
|
public void updateChannelStructureFromTemplate(SessionConfig sessionConfig, String channelId, ITransaction transaction) throws ManagerException, PortalException
IChannelTemplateManager
updateChannelStructureFromTemplate
in interface IChannelTemplateManager
ManagerException
PortalException
protected void updateChannelStructureFromTemplate(SessionConfig sessionConfig, String channelId, String channelTemplateId, Document templateDocument, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- a session configurationchannelId
- the channel to be updatedchannelTemplateId
- the channel templatetemplateDocument
- the serialized channel template documenttransaction
- a transactionManagerException
PortalException
public void disconnectFromTemplate(SessionConfig sessionConfig, String channelId, ITransaction transaction) throws ManagerException, PortalException
IChannelTemplateManager
disconnectFromTemplate
in interface IChannelTemplateManager
ManagerException
PortalException
public List<ChannelTemplateLinkConfig> getChannelLinks(SessionConfig sessionConfig, String channelId, boolean getLinkedElementsOnly, ITransaction transaction) throws ManagerException, PortalException
IChannelTemplateManager
getChannelLinks
in interface IChannelTemplateManager
ManagerException
PortalException
public ChannelTemplateLinkConfig getChannelLinkBySourceId(SessionConfig sessionConfig, String channelId, String sourceId, boolean getLinkedElementsOnly, ITransaction transaction) throws ManagerException, PortalException
IChannelTemplateManager
getChannelLinkBySourceId
in interface IChannelTemplateManager
ManagerException
PortalException
public String addChannelLink(SessionConfig sessionConfig, ChannelTemplateLinkConfig channelTemplateLinkConfig, ITransaction transaction) throws ManagerException, PortalException
IChannelTemplateManager
addChannelLink
in interface IChannelTemplateManager
ManagerException
PortalException
public void deleteChannelLink(SessionConfig sessionConfig, String channelLinkId, ITransaction transaction) throws ManagerException, PortalException
IChannelTemplateManager
deleteChannelLink
in interface IChannelTemplateManager
ManagerException
PortalException
public void deleteChannelLinks(SessionConfig sessionConfig, String channelId, ITransaction transaction) throws ManagerException, PortalException
IChannelTemplateManager
deleteChannelLinks
in interface IChannelTemplateManager
ManagerException
PortalException
public void serializeChannelTemplateLinks(SessionConfig sessionConfig, String channelId, OutputStream outputStream, ITransaction transaction) throws ManagerException, PortalException
IChannelTemplateManager
serializeChannelTemplateLinks
in interface IChannelTemplateManager
sessionConfig
- the user session information.channelId
- the channel id.outputStream
- the outputstream to serialize the data to.transaction
- the transaction for persistence access.ManagerException
PortalException
public String deserializeChannelTemplateLink(SessionConfig sessionConfig, DeserializationConfig deserializationConfig, Node linkNode, ITransaction transaction) throws ManagerException, PortalException
IChannelTemplateManager
deserializeChannelTemplateLink
in interface IChannelTemplateManager
sessionConfig
- the user session information.deserializationConfig
- deserialization configuration.linkNode
- the node containing the channel template link information.transaction
- the transaction for persistence access.ManagerException
PortalException
LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.