Class CreatorPageFunctions

java.lang.Object
com.patreonshout.jpa.CreatorPageFunctions

@Component
public class CreatorPageFunctions
extends java.lang.Object
Component that contains functions for CreatorPage endpoints that allow interaction with the database
  • Field Summary

    Fields
    Modifier and Type Field Description
    (package private) CreatorPageRepository creatorPageRepository
    An autowired Spring repository that handles all database CRUD operations with the creator pages
  • Constructor Summary

    Constructors
    Constructor Description
    CreatorPageFunctions()  
  • Method Summary

    Modifier and Type Method Description
    void putCreatorPage​(int campaignId, java.lang.String vanity)
    puts a CreatorPage object into the database based on campaignId and vanity name

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • creatorPageRepository

      @Autowired CreatorPageRepository creatorPageRepository
      An autowired Spring repository that handles all database CRUD operations with the creator pages
  • Constructor Details

    • CreatorPageFunctions

      public CreatorPageFunctions()
  • Method Details

    • putCreatorPage

      public void putCreatorPage​(int campaignId, java.lang.String vanity)
      puts a CreatorPage object into the database based on campaignId and vanity name
      Parameters:
      campaignId - is the user's Patreon campaign id
      vanity - is the user's Patreon url name