Class Sponsor

java.lang.Object
cz.metacentrum.perun.core.api.Sponsor

public class Sponsor extends Object
Class representing a Sponsor for some specific member. This object contains information about the validity of this sponsorship for the specific member. It also contains additional information about the sponsor so it can be obtained in one API call.
Author:
Vojtech Sassmann <vojtech.sassmann@gmail.com>
  • Constructor Details

    • Sponsor

      public Sponsor(User user)
    • Sponsor

      public Sponsor(RichUser user)
  • Method Details

    • getValidityTo

      public LocalDate getValidityTo()
    • setValidityTo

      public void setValidityTo(LocalDate validityTo)
    • isActive

      public boolean isActive()
    • setActive

      public void setActive(boolean active)
    • getUserExtSources

      public List<UserExtSource> getUserExtSources()
    • setUserExtSources

      public void setUserExtSources(List<UserExtSource> userExtSources)
    • getUserAttributes

      public List<Attribute> getUserAttributes()
    • setUserAttributes

      public void setUserAttributes(List<Attribute> userAttributes)
    • getUser

      public User getUser()
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object