Class Authorship

java.lang.Object
cz.metacentrum.perun.core.api.PerunBean
cz.metacentrum.perun.cabinet.model.Authorship
All Implemented Interfaces:
Serializable, Comparable<PerunBean>

public class Authorship extends PerunBean
Class represents Authorship = connection between publication and its author.
Author:
Jiri Harazim <harazim@mail.muni.cz>, Pavel Zlamal <256627@mail.muni.cz>
See Also:
  • Constructor Details

    • Authorship

      public Authorship()
  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class PerunBean
    • getCreatedBy

      public String getCreatedBy()
    • setCreatedBy

      public void setCreatedBy(String createdBy)
    • getCreatedByUid

      public int getCreatedByUid()
    • setCreatedByUid

      public void setCreatedByUid(int createdByUid)
    • getCreatedDate

      public Date getCreatedDate()
    • setCreatedDate

      public void setCreatedDate(Date createdDate)
    • getPublicationId

      public int getPublicationId()
      Return ID of Publication this Authorship belongs to.
      Returns:
      the value of publicationId
    • setPublicationId

      public void setPublicationId(int publicationId)
      Set ID of Publication this Authorship belongs to.
      Parameters:
      publicationId - ID of Publication
    • getUserId

      public Integer getUserId()
      Return ID of User (Author) this Authorship belongs to.
      Returns:
      the value of userId
    • setUserId

      public void setUserId(int userId)
      Set ID of User (Author) this Authorship belongs to.
      Parameters:
      userId - ID of Uublication (Author)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class PerunBean
    • serializeToString

      public String serializeToString()
      Overrides:
      serializeToString in class PerunBean
    • toString

      public String toString()
      Overrides:
      toString in class PerunBean