Class GroupWrapper

    • Constructor Detail

      • GroupWrapper

        public GroupWrapper​(GroupData group)
        Constructor of the class GroupWrapper.
        Parameters:
        group - The GroupData to wrap in the GroupWrapper.
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns the name of the group.
        Specified by:
        getName in interface Group
        Returns:
        See above.
      • setName

        public void setName​(java.lang.String name)
        Sets the name of the group.
        Specified by:
        setName in interface Group
        Parameters:
        name - The name of the group. Mustn't be null.
        Throws:
        java.lang.IllegalArgumentException - If the name is null.
      • getDescription

        public java.lang.String getDescription()
        Returns the description of the group.
        Specified by:
        getDescription in interface Group
        Returns:
        See above.
      • setDescription

        public void setDescription​(java.lang.String description)
        Sets the description of the group.
        Specified by:
        setDescription in interface Group
        Parameters:
        description - The description of the group. Mustn't be null.
        Throws:
        java.lang.IllegalArgumentException - If the name is null.
      • getLeaders

        public java.util.List<Experimenter> getLeaders()
        Returns the leaders of this group.
        Specified by:
        getLeaders in interface Group
        Returns:
        See above.
      • getExperimenters

        public java.util.List<Experimenter> getExperimenters()
        Returns the experimenters contained in this group.
        Specified by:
        getExperimenters in interface Group
        Returns:
        See above.
      • getMembersOnly

        public java.util.List<Experimenter> getMembersOnly()
        Returns the list of experimenters that are not owners of the group.
        Specified by:
        getMembersOnly in interface Group
        Returns:
        See above.
      • getPermissionsLevel

        public int getPermissionsLevel()
        Returns the permissions level.
        Specified by:
        getPermissionsLevel in interface Group
        Returns:
        See above.