Class ExperimenterWrapper

    • Constructor Detail

      • ExperimenterWrapper

        public ExperimenterWrapper​(ExperimenterData experimenter)
        Constructor of the class ExperimenterWrapper.
        Parameters:
        experimenter - The ExperimenterData to wrap in the ExperimenterWrapper.
    • Method Detail

      • getFirstName

        public java.lang.String getFirstName()
        Returns the first name of the experimenter.
        Specified by:
        getFirstName in interface Experimenter
        Returns:
        see above.
      • setFirstName

        public void setFirstName​(java.lang.String firstName)
        Sets the first name of the experimenter.
        Specified by:
        setFirstName in interface Experimenter
        Parameters:
        firstName - The value to set.
      • getLastName

        public java.lang.String getLastName()
        Returns the last name of the experimenter.
        Specified by:
        getLastName in interface Experimenter
        Returns:
        see above.
      • setLastName

        public void setLastName​(java.lang.String lastName)
        Sets the last name of the experimenter.
        Specified by:
        setLastName in interface Experimenter
        Parameters:
        lastName - The value to set.
      • getUserName

        public java.lang.String getUserName()
        Returns the last name of the experimenter.
        Specified by:
        getUserName in interface Experimenter
        Returns:
        see above.
      • getEmail

        public java.lang.String getEmail()
        Returns the e-mail of the experimenter.
        Specified by:
        getEmail in interface Experimenter
        Returns:
        see above.
      • setEmail

        public void setEmail​(java.lang.String email)
        Sets the e-mail of the experimenter.
        Specified by:
        setEmail in interface Experimenter
        Parameters:
        email - The value to set.
      • getInstitution

        public java.lang.String getInstitution()
        Returns the institution where the experimenter works.
        Specified by:
        getInstitution in interface Experimenter
        Returns:
        see above.
      • setInstitution

        public void setInstitution​(java.lang.String institution)
        Sets the institution where the experimenter works.
        Specified by:
        setInstitution in interface Experimenter
        Parameters:
        institution - The value to set.
      • getGroups

        public java.util.List<Group> getGroups()
        Returns the groups the experimenter is a member of.
        Specified by:
        getGroups in interface Experimenter
        Returns:
        See above.
      • getDefaultGroup

        public Group getDefaultGroup()
        Returns the default Group for this Experimenter
        Specified by:
        getDefaultGroup in interface Experimenter
        Returns:
        See above.
      • getMiddleName

        public java.lang.String getMiddleName()
        Returns the middle name of the experimenter.
        Specified by:
        getMiddleName in interface Experimenter
        Returns:
        see above.
      • setMiddleName

        public void setMiddleName​(java.lang.String middleName)
        Sets the middle name of the experimenter.
        Specified by:
        setMiddleName in interface Experimenter
        Parameters:
        middleName - The value to set.
      • isActive

        public boolean isActive()
        Returns true if the experimenter is active, false otherwise.
        Specified by:
        isActive in interface Experimenter
        Returns:
        See above.
      • isMemberOfGroup

        public boolean isMemberOfGroup​(long groupId)
        Checks if supplied group id matches any group to which the current experimenter belongs to.
        Specified by:
        isMemberOfGroup in interface Experimenter
        Parameters:
        groupId - The ID of the group.
        Returns:
        boolean true/false depending on the matching id found
      • isLDAP

        public boolean isLDAP()
        Returns true if the user is connected via LDAP.
        Specified by:
        isLDAP in interface Experimenter
        Returns:
        See above.