Class Authorship
java.lang.Object
cz.metacentrum.perun.core.api.PerunBean
cz.metacentrum.perun.cabinet.model.Authorship
- All Implemented Interfaces:
Serializable
,Comparable<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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
int
Return ID of Publication this Authorship belongs to.Return ID of User (Author) this Authorship belongs to.int
hashCode()
void
setCreatedBy
(String createdBy) void
setCreatedByUid
(int createdByUid) void
setCreatedDate
(Date createdDate) void
setPublicationId
(int publicationId) Set ID of Publication this Authorship belongs to.void
setUserId
(int userId) Set ID of User (Author) this Authorship belongs to.toString()
Methods inherited from class cz.metacentrum.perun.core.api.PerunBean
compareTo, getBeanName, getId, setId
-
Constructor Details
-
Authorship
public Authorship()
-
-
Method Details
-
equals
-
getCreatedBy
-
setCreatedBy
-
getCreatedByUid
public int getCreatedByUid() -
setCreatedByUid
public void setCreatedByUid(int createdByUid) -
getCreatedDate
-
setCreatedDate
-
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
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() -
serializeToString
- Overrides:
serializeToString
in classPerunBean
-
toString
-