Class AuthScopeService

java.lang.Object
systems.dennis.shared.utils.ApplicationContext
systems.dennis.shared.service.AbstractPaginationService<DB_TYPE,Long>
systems.dennis.shared.postgres.service.PaginationService<systems.dennis.shared.scopes.model.ScopeModel>
systems.dennis.shared.scopes.service.ScopeService
systems.dennis.auth.service.AuthScopeService
All Implemented Interfaces:
systems.dennis.shared.service.AbstractService<systems.dennis.shared.scopes.model.ScopeModel,Long>, systems.dennis.shared.service.DeleteObject<systems.dennis.shared.scopes.model.ScopeModel,Long>

@Service @Primary public class AuthScopeService extends systems.dennis.shared.scopes.service.ScopeService
  • Field Summary

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

    CREATED_FIELDS_MAP
  • Constructor Summary

    Constructors
    Constructor
    Description
    AuthScopeService(systems.dennis.shared.config.WebContext holder, systems.dennis.shared.scopes.repository.ScopeRepo scopeRepo)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    systems.dennis.shared.repository.AbstractDataFilter<systems.dennis.shared.scopes.model.ScopeModel>
     
    systems.dennis.shared.scopes.model.ScopeModel
    afterAdd(systems.dennis.shared.scopes.model.ScopeModel object)
     
    void
    checkRegistrationAllowed(systems.dennis.shared.scopes.model.ScopeModel scope)
     
    systems.dennis.shared.scopes.model.ScopeModel
     
    systems.dennis.shared.repository.AbstractDataFilter<systems.dennis.shared.scopes.model.ScopeModel>
     
    systems.dennis.shared.scopes.model.ScopeModel
    getScopeFromRequest(jakarta.servlet.http.HttpServletRequest req, Long userId, boolean fullAccess)
     
    systems.dennis.shared.scopes.model.ScopeModel
    preAdd(systems.dennis.shared.scopes.model.ScopeModel object)
     

    Methods inherited from class systems.dennis.shared.scopes.service.ScopeService

    findByName

    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, getRepository, 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

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

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

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

    • AuthScopeService

      public AuthScopeService(systems.dennis.shared.config.WebContext holder, systems.dennis.shared.scopes.repository.ScopeRepo scopeRepo)
  • Method Details

    • preAdd

      public systems.dennis.shared.scopes.model.ScopeModel preAdd(systems.dennis.shared.scopes.model.ScopeModel object) throws systems.dennis.shared.exceptions.ItemForAddContainsIdException
      Specified by:
      preAdd in interface systems.dennis.shared.service.AbstractService<systems.dennis.shared.scopes.model.ScopeModel,Long>
      Overrides:
      preAdd in class systems.dennis.shared.scopes.service.ScopeService
      Throws:
      systems.dennis.shared.exceptions.ItemForAddContainsIdException
    • afterAdd

      public systems.dennis.shared.scopes.model.ScopeModel afterAdd(systems.dennis.shared.scopes.model.ScopeModel object)
    • getScopeFromRequest

      public systems.dennis.shared.scopes.model.ScopeModel getScopeFromRequest(jakarta.servlet.http.HttpServletRequest req, Long userId, boolean fullAccess)
    • addSelfSpecWithUserScopes

      public systems.dennis.shared.repository.AbstractDataFilter<systems.dennis.shared.scopes.model.ScopeModel> addSelfSpecWithUserScopes(Long userData)
      Overrides:
      addSelfSpecWithUserScopes in class systems.dennis.shared.scopes.service.ScopeService
    • getAdditionalSpecification

      public systems.dennis.shared.repository.AbstractDataFilter<systems.dennis.shared.scopes.model.ScopeModel> getAdditionalSpecification()
    • generateAndSaveUserScope

      public systems.dennis.shared.scopes.model.ScopeModel generateAndSaveUserScope(UserData userData)
    • checkRegistrationAllowed

      public void checkRegistrationAllowed(systems.dennis.shared.scopes.model.ScopeModel scope)