Class Advertiser

java.lang.Object
com.alpaca.entity.Advertiser

@Entity public class Advertiser extends Object
Represents an Advertiser entity in the system. This entity is mapped to the "advertisers" table in the database and stores details about businesses or individuals promoting content. It includes information about their title, description, location, and verification status.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private String
    URL of the Advertiser's avatar image.
    private String
    URL of the banner image associated with the Advertiser.
    private String
    A brief description of the Advertiser.
    private UUID
    Unique identifier for the Advertiser.
    private boolean
    Indicates whether the Advertiser is indexed for public search.
    private boolean
    Indicates whether the Advertiser has a paid subscription or promotion.
    private String
    Publicly visible location of the Advertiser.
    private String
    URL link to the Advertiser's public location.
    private String
    The title or name of the Advertiser.
    private User
    The User associated with the Advertiser entity.
    private boolean
    Indicates whether the Advertiser is verified.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Advertiser(String title, String description, String bannerUrl, String avatarUrl, String publicLocation, String publicUrlLocation, boolean indexed, boolean paid, boolean verified, User user)
    Constructs an instance of a new Advertiser object with the specified attributes.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
     
    int
     

    Methods inherited from class java.lang.Object

    clone, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • id

      private UUID id
      Unique identifier for the Advertiser. This value is automatically generated using a UUID strategy.
    • title

      private String title
      The title or name of the Advertiser. This field cannot be null.
    • description

      private String description
      A brief description of the Advertiser. This field cannot be null.
    • bannerUrl

      private String bannerUrl
      URL of the banner image associated with the Advertiser. This field cannot be null.
    • avatarUrl

      private String avatarUrl
      URL of the Advertiser's avatar image. This field cannot be null.
    • publicLocation

      private String publicLocation
      Publicly visible location of the Advertiser. This field cannot be null.
    • publicUrlLocation

      private String publicUrlLocation
      URL link to the Advertiser's public location. This field cannot be null.
    • indexed

      private boolean indexed
      Indicates whether the Advertiser is indexed for public search.
    • verified

      private boolean verified
      Indicates whether the Advertiser is verified.
    • user

      private User user
      The User associated with the Advertiser entity. A one-to-one relationship exists between User and Advertiser.
  • Constructor Details

    • Advertiser

      public Advertiser(String title, String description, String bannerUrl, String avatarUrl, String publicLocation, String publicUrlLocation, boolean indexed, boolean paid, boolean verified, User user)
      Constructs an instance of a new Advertiser object with the specified attributes. The generated object is ready to be used and stored in the database.
      Parameters:
      title - Title name - must not be null
      description - Short description of the Advertiser - must not be null
      bannerUrl - URL of the Advertiser's banner image - must not be null
      avatarUrl - URL of the Advertiser's avatar image - must not be null
      publicLocation - Publicly visible location - must not be null
      publicUrlLocation - URL of the public location - must not be null
      indexed - indicates whether the Advertiser is indexed for public search
      paid - indicates whether the Advertiser has a paid subscription
      verified - indicates whether the Advertiser is verified
      user - the User associated with this Advertiser - must not be null
  • Method Details