Class RelatedUserImpl

    • Constructor Detail

      • RelatedUserImpl

        public RelatedUserImpl()
    • Method Detail

      • setParticipant

        public void setParticipant​(Participant participant)
        Description copied from interface: RelatedUser
        Set the referred participant
        Specified by:
        setParticipant in interface RelatedUser
        Parameters:
        participant - Participant object
      • setFolderItem

        public void setFolderItem​(Item folderItem)
        Set the referred item
        Specified by:
        setFolderItem in interface RelatedUser
        Parameters:
        folderItem - item to refer
      • getRelation

        public String getRelation()
        Get the relation between user and participant
        Specified by:
        getRelation in interface RelatedUser
        Returns:
        relation, if null get the participant himself instead of searching related user
      • setRelation

        public void setRelation​(String relation)
        Set the relation between user and participant
        Specified by:
        setRelation in interface RelatedUser
        Parameters:
        relation - relation as a String
      • getRole

        public String getRole()
        Get the role to which the related user will be affected
        Specified by:
        getRole in interface RelatedUser
        Returns:
        the role name
      • setRole

        public void setRole​(String role)
        Set the role to which the related user will be affected
        Specified by:
        setRole in interface RelatedUser
        Parameters:
        role - role as a String
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object