Class Channel
- java.lang.Object
-
- lumis.portal.structure.sync.model.channel.Channel
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,IFileElement
,IFileStructureElement
public class Channel extends java.lang.Object implements IFileStructureElement, java.io.Serializable, java.lang.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: 25303 $ $Date: 2022-10-22 22:48:02 -0300 (Sat, 22 Oct 2022) $
- 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(java.util.Queue<AccessControlEntry> entriesToAdd, java.util.Queue<ParallelExecutor.IDatabaseTask> channelTemplateLinksToAdd)
Creates a clone of this channel, without dependencies (which are postponed for add).AccessControlList
getAccessControlList()
ChannelTemplateLink
getChannelTemplateLink()
java.util.List<ChannelCss>
getCsss()
java.lang.String
getDirectoryChannelId()
Returns the identifier of the channel that corresponds to the directory this element's file resides in.java.util.SortedSet<Group>
getGroups()
java.lang.String
getId()
Returns the element's identifier.java.util.List<MetaTag>
getMetaTags()
java.lang.String
getName()
java.lang.String
getParentId()
java.lang.String
getParentTemplateId()
PropertyBag
getPropertyBag()
java.lang.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(java.lang.String friendlyId)
Sets the friendly identifier for this structure element.void
setImplicitForeignKeys(java.lang.String accessControlListId, java.lang.String parentAccessControlListId, java.lang.String propertyBagId, java.lang.String parentPropertyBagId)
Sets the implicit foreign keys in this channel.void
setParentId(java.lang.String parentId)
void
setParentTemplateId(java.lang.String parentTemplateId)
-
-
-
Method Detail
-
getMetaTags
public java.util.List<MetaTag> getMetaTags()
-
getCsss
public java.util.List<ChannelCss> getCsss()
-
getPropertyBag
public PropertyBag getPropertyBag()
-
getAccessControlList
public AccessControlList getAccessControlList()
-
getParentId
public java.lang.String getParentId()
-
setParentId
public void setParentId(java.lang.String parentId)
-
getParentTemplateId
public java.lang.String getParentTemplateId()
-
setParentTemplateId
public void setParentTemplateId(java.lang.String parentTemplateId)
-
getName
public java.lang.String getName()
-
getGroups
public java.util.SortedSet<Group> getGroups()
-
getChannelTemplateLink
public ChannelTemplateLink getChannelTemplateLink()
-
cloneAndPostponeDependencies
public Channel cloneAndPostponeDependencies(java.util.Queue<AccessControlEntry> entriesToAdd, java.util.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.- Overrides:
clone
in classjava.lang.Object
- Returns:
- the clone.
-
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(java.lang.String accessControlListId, java.lang.String parentAccessControlListId, java.lang.String propertyBagId, java.lang.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 java.lang.String getId()
Description copied from interface:IFileStructureElement
Returns the element's identifier.- Specified by:
getId
in interfaceIFileStructureElement
- Returns:
- the element's identifier.
-
getDirectoryChannelId
public java.lang.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 java.lang.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(java.lang.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.
-
-