Class ProfilePageService

java.lang.Object
systems.dennis.shared.utils.ApplicationContext
systems.dennis.shared.service.AbstractPaginationService<DB_TYPE,Long>
systems.dennis.shared.postgres.service.PaginationService<UserData>
systems.dennis.auth.service.ProfilePageService
All Implemented Interfaces:
systems.dennis.shared.service.AbstractService<UserData,Long>, systems.dennis.shared.service.DeleteObject<UserData,Long>

@Service public class ProfilePageService extends systems.dennis.shared.postgres.service.PaginationService<UserData>
  • Field Summary

    Fields inherited from class systems.dennis.shared.utils.ApplicationContext

    CREATED_FIELDS_MAP
  • Constructor Summary

    Constructors
    Constructor
    Description
    ProfilePageService(systems.dennis.shared.config.WebContext context)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    checkMy(UserData object)
     
    void
    checkVerifiedUser(UserData user, systems.dennis.shared.scopes.model.ScopeModel scope)
     
     
     
     
     
    myRoles(systems.dennis.shared.scopes.model.ScopeModel scope)
     
    preAdd(UserData object)
     
    preEdit(UserData object, UserData original)
     
    savePhoto(Long profileId, String url)
     

    Methods inherited from class systems.dennis.shared.postgres.service.PaginationService

    updateId, updateIds

    Methods inherited from class systems.dennis.shared.service.AbstractPaginationService

    afterEdit, deleteItems, edit, editField, exists, find, find, getAdditionalCases, getLogger, getUtils, isIdSet, preFetchOriginal, save

    Methods inherited from class systems.dennis.shared.utils.ApplicationContext

    canEqual, equals, getBean, getContext, getCurrentUser, getDefaultLogger, hashCode, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface systems.dennis.shared.service.AbstractService

    afterAdd, afterDelete, count, count, createFromRequest, delete, download, exists, find, find, findById, findById, findById, findByIdClone, findByIdOrThrow, getAdditionalSpecification, getByIdAndUserDataId, getContext, getFieldOrder, getFilterImpl, getForm, getInterNalResource, getItemFavoriteType, getModel, getSearchRequestAbstractDataFilter, getSelfCreatedItems, getSelfCreatedItems, getSelfCreatedItemsQuery, getSelfCreatedItemsQuery, isEmpty, isEmpty, isIdSet, isObjectDeleted, isPublicSearchEnabled, modifyQuery, preDelete, prepareAbstractDataFilter, preSearch, saveVersionIfRequired, search, search

    Methods inherited from interface systems.dennis.shared.service.DeleteObject

    delete, getDeleteField, getDeleteStrategy, getNotDeletedQuery, getSelfOnly, getStoreHistoryRequired, saveDeleteHistoryIfRequired
  • Constructor Details

    • ProfilePageService

      public ProfilePageService(systems.dennis.shared.config.WebContext context)
  • Method Details

    • preAdd

      public UserData preAdd(UserData object) throws systems.dennis.shared.exceptions.ItemForAddContainsIdException
      Throws:
      systems.dennis.shared.exceptions.ItemForAddContainsIdException
    • preEdit

      public UserData preEdit(UserData object, UserData original) throws systems.dennis.shared.exceptions.UnmodifiedItemSaveAttemptException, systems.dennis.shared.exceptions.ItemNotFoundException
      Throws:
      systems.dennis.shared.exceptions.UnmodifiedItemSaveAttemptException
      systems.dennis.shared.exceptions.ItemNotFoundException
    • findByLogin

      public Optional<UserData> findByLogin(String login)
    • findByEmail

      public Optional<UserData> findByEmail(String email)
    • getRepository

      public UserDataRepository getRepository()
      Specified by:
      getRepository in interface systems.dennis.shared.service.AbstractService<UserData,Long>
      Overrides:
      getRepository in class systems.dennis.shared.service.AbstractPaginationService<UserData,Long>
    • savePhoto

      public UserData savePhoto(Long profileId, String url)
    • getCurrentUserImage

      public String getCurrentUserImage()
    • myRoles

      public List<UserRole> myRoles(systems.dennis.shared.scopes.model.ScopeModel scope)
    • checkMy

      public void checkMy(UserData object)
    • checkVerifiedUser

      public void checkVerifiedUser(UserData user, systems.dennis.shared.scopes.model.ScopeModel scope)