Class Group

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    public class Group
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Cloneable
    Group model.

    Documentation in this class focus synchronization behavior. About the use behind the fields in the portal, see GroupConfig.

    Since:
    6.2.0
    Version:
    $Revision$ $Date$
    See Also:
    GroupConfig, Serialized Form
    • Constructor Detail

      • Group

        public Group()
    • Method Detail

      • getId

        public java.lang.String getId()
      • getAlias

        public java.lang.String getAlias()
      • getChannel

        public Channel getChannel()
      • setChannel

        public void setChannel​(Channel channel)
      • getChannelId

        public java.lang.String getChannelId()
      • getPortalPermissions

        public Group.GroupPortalPermissions getPortalPermissions()
        Returns the portal permissions this group has.
        Returns:
        if the version of the structure file containing this group is before the support of synchronizing portal permissions, this method will return null, otherwise it will return an object with the allow and deny permissions this group has in the portal ACL.
        Since:
        17.0.0
      • setPortalPermissions

        public void setPortalPermissions​(java.util.Collection<AccessControlEntry> entries)
        Sets the PortalPermissions of this group. This method is to be called during syncOut as these values are not automatically read by this entity for optimization purposes, so the portal ACL entries can be read only once and reused.
        Parameters:
        entries - the entries of the portal ACL.
        Since:
        17.0.0
      • cloneAndPostponeDependencies

        public Group cloneAndPostponeDependencies​(java.util.Queue<AccessControlEntry> entriesToAdd,
                                                  java.util.Queue<ParallelExecutor.IDatabaseTask> channelTemplateLinksToAdd)
        Creates a clone of this group, without dependencies (which are postponed for add).
        Parameters:
        entriesToAdd - the queue for the ACL entries to add.
        channelTemplateLinksToAdd - the queue for Channel Template Links to add.
        Returns:
        the clone.
        Since:
        6.2.0
      • clone

        protected Group clone()
        Returns a shallow clone of this group.
        Overrides:
        clone in class java.lang.Object
        Returns:
        the clone.
      • applyChannelTemplateLinkInfo

        public void applyChannelTemplateLinkInfo​(ChannelTemplateLinkInfo channelTemplateLinkInfo)