Package systems.dennis.auth.service
Class LoginPasswordService
java.lang.Object
systems.dennis.shared.utils.ApplicationContext
systems.dennis.shared.service.AbstractPaginationService<DB_TYPE,Long>
systems.dennis.shared.postgres.service.PaginationService<LoginPassword>
systems.dennis.auth.service.LoginPasswordService
- All Implemented Interfaces:
systems.dennis.shared.service.AbstractService<LoginPassword,,Long> systems.dennis.shared.service.DeleteObject<LoginPassword,Long>
@Service
public class LoginPasswordService
extends systems.dennis.shared.postgres.service.PaginationService<LoginPassword>
-
Field Summary
Fields inherited from class systems.dennis.shared.utils.ApplicationContext
CREATED_FIELDS_MAP -
Constructor Summary
ConstructorsConstructorDescriptionLoginPasswordService(systems.dennis.shared.config.WebContext context, LoginPasswordRepo repo, UserDataRepository userDataRepository, RoleServiceImpl roleService, PasswordService passwordService, RoleToUserService roleToUserService) -
Method Summary
Modifier and TypeMethodDescriptionassignUser(String userLogin, Long roleId) findById(Serializable id) findOrThrow(LoginPassword loginPassword) findOrThrow(LoginPassword loginPassword, boolean real) findUserAssigment(String user, Long roleId) findUserByLogin(String login) findUsersByLogin(String text) formToPojo(RegistrationForm form) systems.dennis.shared.postgres.repository.PaginationRepository<LoginPassword>booleanpreAdd(LoginPassword object) saveUserData(RegistrationForm form) voidsaveUserRoles(LoginPassword lp, systems.dennis.shared.scopes.model.ScopeModel scope) org.springframework.data.domain.Page<LoginPassword>search(systems.dennis.shared.controller.items.magic.MagicRequest request) Methods inherited from class systems.dennis.shared.postgres.service.PaginationService
updateId, updateIdsMethods inherited from class systems.dennis.shared.service.AbstractPaginationService
afterEdit, deleteItems, edit, editField, exists, find, find, getAdditionalCases, getLogger, getUtils, isIdSet, preFetchOriginal, saveMethods inherited from class systems.dennis.shared.utils.ApplicationContext
canEqual, equals, getBean, getContext, getCurrentUser, getDefaultLogger, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface systems.dennis.shared.service.AbstractService
afterAdd, afterDelete, checkMy, count, count, createFromRequest, delete, download, exists, find, find, 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, preEdit, prepareAbstractDataFilter, preSearch, saveVersionIfRequired, searchMethods inherited from interface systems.dennis.shared.service.DeleteObject
delete, getDeleteField, getDeleteStrategy, getNotDeletedQuery, getSelfOnly, getStoreHistoryRequired, saveDeleteHistoryIfRequired
-
Constructor Details
-
Method Details
-
getRepository
public systems.dennis.shared.postgres.repository.PaginationRepository<LoginPassword> getRepository()- Specified by:
getRepositoryin interfacesystems.dennis.shared.service.AbstractService<LoginPassword,Long> - Overrides:
getRepositoryin classsystems.dennis.shared.service.AbstractPaginationService<LoginPassword,Long>
-
saveUserData
-
formToPojo
-
preAdd
public LoginPassword preAdd(LoginPassword object) throws systems.dennis.shared.exceptions.ItemForAddContainsIdException - Throws:
systems.dennis.shared.exceptions.ItemForAddContainsIdException
-
findUsersByLogin
-
findUserByLogin
-
findUserAssigment
public Optional<RolesToUser> findUserAssigment(String user, Long roleId) throws systems.dennis.shared.exceptions.ItemNotFoundException - Throws:
systems.dennis.shared.exceptions.ItemNotFoundException
-
assignUser
-
findById
-
findOrThrow
-
login
-
findOrThrow
-
isOnlyOne
public boolean isOnlyOne()
-