All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.netgrif.application.engine.impersonation.service.interfaces.IImpersonationAuthorizationService Maven / Gradle / Ivy

Go to download

System provides workflow management functions including user, role and data management.

There is a newer version: 6.3.3
Show newest version
package com.netgrif.application.engine.impersonation.service.interfaces;

import com.netgrif.application.engine.auth.domain.Authority;
import com.netgrif.application.engine.auth.domain.IUser;
import com.netgrif.application.engine.auth.domain.LoggedUser;
import com.netgrif.application.engine.petrinet.domain.roles.ProcessRole;
import com.netgrif.application.engine.workflow.domain.Case;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.time.LocalDateTime;
import java.util.List;

public interface IImpersonationAuthorizationService {

    Page getConfiguredImpersonationUsers(String query, LoggedUser impersonator, Pageable pageable);

    boolean canImpersonate(LoggedUser loggedUser, String configId);

    boolean canImpersonateUser(LoggedUser impersonator, String userId);

    Page searchConfigs(String impersonatorId, Pageable pageable);

    List searchConfigs(String impersonatorId, String impersonatedId);

    List getAuthorities(List configs, IUser impersonated);

    List getRoles(List configs, IUser impersonated);

    Case getConfig(String configId);

    String getImpersonatedUserId(Case config);

    LocalDateTime getValidUntil(Case config);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy