Class Author

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

public class Author extends PerunBean
Class representing author. Author it's not stored in cabinet DB. It's identified by his userId (~id) and always manually created from User.

Other author's params are optional, therefore can be null or empty when not requested by original SQL query.

E.g. Authors used inside PublicationForGUI object usually contains only base User's params like name. But authors used when "listing all of them" contains also their logins, all authorships etc.

Author:
Jiri Harazim invalid input: '<'harazim@mail.muni.cz>, Pavel Zlamal invalid input: '<'256627@mail.muni.cz>
See Also:
  • Constructor Details

    • Author

      public Author()
    • Author

      public Author(int id, String firstName, String lastName, String middleName, String titleBefore, String titleAfter)
  • Method Details

    • equals

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

      public List<Attribute> getAttributes()
    • setAttributes

      public void setAttributes(List<Attribute> attributes)
    • getAuthorships

      public List<Authorship> getAuthorships()
    • setAuthorships

      public void setAuthorships(List<Authorship> authorships)
    • getFirstName

      public String getFirstName()
    • setFirstName

      public void setFirstName(String firstName)
    • getLastName

      public String getLastName()
    • setLastName

      public void setLastName(String lastName)
    • getMiddleName

      public String getMiddleName()
    • setMiddleName

      public void setMiddleName(String middleName)
    • getTitleAfter

      public String getTitleAfter()
    • setTitleAfter

      public void setTitleAfter(String titleAfter)
    • getTitleBefore

      public String getTitleBefore()
    • setTitleBefore

      public void setTitleBefore(String titleBefore)
    • hashCode

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

      public String toString()
      Overrides:
      toString in class PerunBean