Class ProjectSubscription

  • All Implemented Interfaces:
    IridaThing, Timestamped<java.lang.Long>

    @Entity
    public class ProjectSubscription
    extends java.lang.Object
    implements IridaThing
    Class for storing email subscriptions to Projects for Users .
    • Constructor Detail

      • ProjectSubscription

        public ProjectSubscription()
        Construct an instance of ProjectSubscription with no properties set.
      • ProjectSubscription

        public ProjectSubscription​(User user,
                                   Project project,
                                   boolean emailSubscription)
        Construct an instance of ProjectSubscription with all properties set.
        Parameters:
        user - the User
        project - the Project
        emailSubscription - whether the subscription is activate or not
    • Method Detail

      • getId

        public java.lang.Long getId()
        Description copied from interface: IridaThing
        Get the numerical identifier for this object
        Specified by:
        getId in interface IridaThing
        Specified by:
        getId in interface Timestamped<java.lang.Long>
        Returns:
        the numerical identifier for the object
      • getLabel

        public java.lang.String getLabel()
        Description copied from interface: IridaThing
        Get a human readable label for this object.
        Specified by:
        getLabel in interface IridaThing
        Returns:
        a human-readable label for the object.
      • getUser

        public User getUser()
      • setUser

        public void setUser​(User user)
      • getProject

        public Project getProject()
      • setProject

        public void setProject​(Project project)
      • isEmailSubscription

        public boolean isEmailSubscription()
      • setEmailSubscription

        public void setEmailSubscription​(boolean emailSubscription)
      • getCreatedDate

        public java.util.Date getCreatedDate()
        Description copied from interface: Timestamped
        Get the created date of the object
        Specified by:
        getCreatedDate in interface Timestamped<java.lang.Long>
        Returns:
        A Date object of the created date
      • setCreatedDate

        public void setCreatedDate​(java.util.Date createdDate)