com.netgrif.application.engine.auth.service.interfaces.IUserService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of application-engine Show documentation
Show all versions of application-engine Show documentation
System provides workflow management functions including user, role and data management.
package com.netgrif.application.engine.auth.service.interfaces;
import com.netgrif.application.engine.auth.domain.AnonymousUser;
import com.netgrif.application.engine.auth.domain.IUser;
import com.netgrif.application.engine.auth.domain.LoggedUser;
import com.netgrif.application.engine.auth.web.requestbodies.UpdateUserRequest;
import com.netgrif.application.engine.petrinet.domain.PetriNet;
import org.bson.types.ObjectId;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.security.core.Authentication;
import java.util.List;
import java.util.Set;
public interface IUserService {
IUser findByAuth(Authentication auth);
IUser save(IUser user);
IUser saveNewAndAuthenticate(IUser user);
IUser saveNew(IUser user);
AnonymousUser saveNewAnonymous(AnonymousUser user);
IUser update(IUser user, UpdateUserRequest updates);
IUser findById(String id, boolean small);
IUser resolveById(String id, boolean small);
IUser findByEmail(String email, boolean small);
IUser findAnonymousByEmail(String email, boolean small);
List findAll(boolean small);
Page findAllCoMembers(LoggedUser loggedUser, boolean small, Pageable pageable);
List findAllByIds(Set ids, boolean small);
Page findAllActiveByProcessRoles(Set roleIds, boolean small, Pageable pageable);
void addDefaultRole(IUser user);
List findAllByProcessRoles(Set roleIds, boolean small);
void addDefaultAuthorities(IUser user);
IUser assignAuthority(String userId, String authorityId);
IUser getLoggedOrSystem();
IUser getLoggedUser();
IUser getSystem();
LoggedUser getAnonymousLogged();
LoggedUser getLoggedUserFromContext();
IUser addRole(IUser user, String roleStringId);
Page searchAllCoMembers(String query, LoggedUser principal, Boolean small, Pageable pageable);
IUser removeRole(IUser user, String roleStringId);
void removeRoleOfDeletedPetriNet(PetriNet net);
void deleteUser(IUser user);
Page searchAllCoMembers(String query, List roles, List negateRoleIds, LoggedUser principal, Boolean small, Pageable pageable);
IUser createSystemUser();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy