Class RoleServiceImpl

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

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

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

    CREATED_FIELDS_MAP
  • Constructor Summary

    Constructors
    Constructor
    Description
    RoleServiceImpl(systems.dennis.shared.config.WebContext context, RoleToUserService roleToUserService)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    applyRolesToUser(LoginPassword lp, systems.dennis.shared.scopes.model.ScopeModel scope)
     
    assignRole(Long roleId, String login)
     
    boolean
    deAssignRole(Long roleId, Long passwordId)
     
    boolean
    deAssignRole(Long roleId, String login)
     
    boolean
     
     
    generateAdminRole(systems.dennis.shared.scopes.model.ScopeModel scope)
     
    systems.dennis.shared.repository.AbstractDataFilter<UserRole>
     
    getMyRoles(systems.dennis.shared.scopes.model.ScopeModel scope)
     
     
    boolean
    isRelationExist(String role, systems.dennis.shared.scopes.model.ScopeModel scope)
     
    usersByRole(Long roleId)
     

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

    • RoleServiceImpl

      public RoleServiceImpl(systems.dennis.shared.config.WebContext context, RoleToUserService roleToUserService)
  • Method Details

    • existsByName

      public boolean existsByName(String value)
    • findFirstByName

      public UserRole findFirstByName(String value, Long id)
    • applyRolesToUser

      public void applyRolesToUser(LoginPassword lp, systems.dennis.shared.scopes.model.ScopeModel scope)
    • getRepository

      public UserRoleRepo getRepository()
      Specified by:
      getRepository in interface systems.dennis.shared.service.AbstractService<UserRole,Long>
      Overrides:
      getRepository in class systems.dennis.shared.service.AbstractPaginationService<UserRole,Long>
    • getMyRoles

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

      public boolean deAssignRole(Long roleId, Long passwordId)
    • deAssignRole

      public boolean deAssignRole(Long roleId, String login)
    • usersByRole

      public List<UserData> usersByRole(Long roleId)
    • assignRole

      public Boolean assignRole(Long roleId, String login)
    • generateAdminRole

      public UserRole generateAdminRole(systems.dennis.shared.scopes.model.ScopeModel scope)
    • isRelationExist

      public boolean isRelationExist(String role, systems.dennis.shared.scopes.model.ScopeModel scope)
    • getAdditionalSpecification

      public systems.dennis.shared.repository.AbstractDataFilter<UserRole> getAdditionalSpecification()