Class Channel
- java.lang.Object
-
- lumis.portal.structure.sync.model.channel.Channel
-
- All Implemented Interfaces:
Serializable
,Cloneable
,IFileElement
,IFileStructureElement
public class Channel extends Object implements IFileStructureElement, Serializable, Cloneable
Channel model.Documentation in this class focus synchronization behavior. About the use behind the fields in the portal, see
ChannelConfig
.- Since:
- 6.2.0
- Version:
- $Revision: 23770 $ $Date: 2020-04-16 18:29:05 -0300 (Thu, 16 Apr 2020) $
- See Also:
ChannelConfig
, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Channel.CenterPage
static class
Channel.ChannelType
Enum for thetype
field.static class
Channel.GroupOrderComparator
Comparator used to ordergroups
.static class
Channel.LayoutPageType
static class
Channel.LogPathType
Enum for thefriendlyPathType
field.static class
Channel.PageWebResourceDataProviderType
static class
Channel.Protocol
-
Constructor Summary
Constructors Constructor Description Channel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Channel
clone()
Returns a shallow clone of this channel.Channel
cloneAndPostponeDependencies(Queue<AccessControlEntry> entriesToAdd, Queue<ParallelExecutor.IDatabaseTask> channelTemplateLinksToAdd)
Creates a clone of this channel, without dependencies (which are postponed for add).AccessControlList
getAccessControlList()
ChannelTemplateLink
getChannelTemplateLink()
List<ChannelCss>
getCsss()
String
getDirectoryChannelId()
Returns the identifier of the channel that corresponds to the directory this element's file resides in.SortedSet<Group>
getGroups()
String
getId()
Returns the element's identifier.List<MetaTag>
getMetaTags()
String
getName()
String
getParentId()
String
getParentTemplateId()
PropertyBag
getPropertyBag()
String
getStructureFileName()
Returns the name of the structure file for this element.boolean
isImplicitForeignKeysSet()
Indicates whether the implicit foreign keys, set bysetImplicitForeignKeys(String, String, String, String)
, have been set.void
setFriendlyId(String friendlyId)
Sets the friendly identifier for this structure element.void
setImplicitForeignKeys(String accessControlListId, String parentAccessControlListId, String propertyBagId, String parentPropertyBagId)
Sets the implicit foreign keys in this channel.void
setParentId(String parentId)
void
setParentTemplateId(String parentTemplateId)
-
-
-
Method Detail
-
getCsss
public List<ChannelCss> getCsss()
-
getPropertyBag
public PropertyBag getPropertyBag()
-
getAccessControlList
public AccessControlList getAccessControlList()
-
getParentId
public String getParentId()
-
setParentId
public void setParentId(String parentId)
-
getParentTemplateId
public String getParentTemplateId()
-
setParentTemplateId
public void setParentTemplateId(String parentTemplateId)
-
getName
public String getName()
-
getChannelTemplateLink
public ChannelTemplateLink getChannelTemplateLink()
-
cloneAndPostponeDependencies
public Channel cloneAndPostponeDependencies(Queue<AccessControlEntry> entriesToAdd, Queue<ParallelExecutor.IDatabaseTask> channelTemplateLinksToAdd)
Creates a clone of this channel, without dependencies (which are postponed for add).- Parameters:
entriesToAdd
- the queue for the ACL entries to add.channelTemplateLinksToAdd
- the queue for the Channel Template Links to add.- Returns:
- the clone.
- Since:
- 6.2.0
-
clone
protected Channel clone()
Returns a shallow clone of this channel.
-
isImplicitForeignKeysSet
public boolean isImplicitForeignKeysSet()
Indicates whether the implicit foreign keys, set bysetImplicitForeignKeys(String, String, String, String)
, have been set.- Returns:
- true if the implicit foreign keys are set, false otherwise.
- Since:
- 6.2.0
-
setImplicitForeignKeys
public void setImplicitForeignKeys(String accessControlListId, String parentAccessControlListId, String propertyBagId, String parentPropertyBagId)
Sets the implicit foreign keys in this channel. Required before it can be properly persisted to the database.- Parameters:
accessControlListId
- the identifier for this channel's ACL. Must benull
if the channel will be added (will be auto-generated).parentAccessControlListId
- the identifier of the parent of this channel's ACL.propertyBagId
- the identifier for this channel's property bag. Must benull
if the channel will be added. (will be auto-generated).parentPropertyBagId
- the identifier for the parent of this channel's property bag.- Since:
- 6.2.0
-
getId
public String getId()
Description copied from interface:IFileStructureElement
Returns the element's identifier.- Specified by:
getId
in interfaceIFileStructureElement
- Returns:
- the element's identifier.
-
getDirectoryChannelId
public String getDirectoryChannelId()
Description copied from interface:IFileStructureElement
Returns the identifier of the channel that corresponds to the directory this element's file resides in.- Specified by:
getDirectoryChannelId
in interfaceIFileStructureElement
- Returns:
- the identifier of the channel.
-
getStructureFileName
public String getStructureFileName()
Description copied from interface:IFileStructureElement
Returns the name of the structure file for this element.- Specified by:
getStructureFileName
in interfaceIFileStructureElement
- Returns:
- the structure file name (only the file's name, does not include any path).
-
setFriendlyId
public void setFriendlyId(String friendlyId)
Description copied from interface:IFileStructureElement
Sets the friendly identifier for this structure element.- Specified by:
setFriendlyId
in interfaceIFileStructureElement
- Parameters:
friendlyId
- the friendly identifier.
-
-