public class DbReadOnlyIdentityServiceProvider extends AbstractManager implements ReadOnlyIdentityProvider
Read only implementation of DB-backed identity service
| Constructor and Description |
|---|
DbReadOnlyIdentityServiceProvider() |
close, delete, deleteAuthorizations, deleteAuthorizationsForGroup, deleteAuthorizationsForUser, deleteDefaultAuthorizations, flush, getAttachmentManager, getAuthorizationManager, getBatchManager, getByteArrayManager, getCaseDefinitionManager, getCaseExecutionManager, getCaseInstanceManager, getCommandContext, getCurrentAuthentication, getDbEntityManager, getDbSqlSession, getDecisionDefinitionManager, getDecisionRequirementsDefinitionManager, getDeploymentManager, getEventSubscriptionManager, getHistoricActivityInstanceManager, getHistoricBatchManager, getHistoricCaseActivityInstanceManager, getHistoricCaseInstanceManager, getHistoricDecisionInstanceManager, getHistoricDetailManager, getHistoricExternalTaskLogManager, getHistoricIdentityLinkManager, getHistoricIncidentManager, getHistoricJobLogManager, getHistoricProcessInstanceManager, getHistoricReportManager, getHistoricTaskInstanceManager, getHistoricVariableInstanceManager, getIdentityInfoManager, getIdentityLinkManager, getJobDefinitionManager, getJobManager, getProcessDefinitionManager, getProcessInstanceManager, getResourceAuthorizationProvider, getResourceManager, getSession, getTaskManager, getTaskReportManager, getTenantManager, getUserOperationLogManager, getVariableInstanceManager, insert, isAuthorizationEnabled, saveDefaultAuthorizationspublic UserEntity findUserById(String userId)
findUserById in interface ReadOnlyIdentityProviderUser object for the given user id or null if no such user exists.public UserQuery createUserQuery()
createUserQuery in interface ReadOnlyIdentityProviderUserQuery object which can be used for querying for users.public UserQueryImpl createUserQuery(CommandContext commandContext)
createUserQuery in interface ReadOnlyIdentityProviderUserQuery object which can be used in the current command contextpublic NativeUserQuery createNativeUserQuery()
ReadOnlyIdentityProviderNativeUserQuery that allows to select users with native queries.createNativeUserQuery in interface ReadOnlyIdentityProviderpublic long findUserCountByQueryCriteria(DbUserQueryImpl query)
public List<User> findUserByQueryCriteria(DbUserQueryImpl query)
public List<User> findUserByNativeQuery(Map<String,Object> parameterMap, int firstResult, int maxResults)
public boolean checkPassword(String userId, String password)
checkPassword in interface ReadOnlyIdentityProviderprotected boolean matchPassword(String password, UserEntity user)
public GroupEntity findGroupById(String groupId)
findGroupById in interface ReadOnlyIdentityProviderGroup object for the given group id or null if no such group exists.public GroupQuery createGroupQuery()
createGroupQuery in interface ReadOnlyIdentityProviderGroupQuery object which can be used for querying for groups.public GroupQuery createGroupQuery(CommandContext commandContext)
createGroupQuery in interface ReadOnlyIdentityProviderGroupQuery object which can be used for querying for groups and can be reused in the current command context.public long findGroupCountByQueryCriteria(DbGroupQueryImpl query)
public List<Group> findGroupByQueryCriteria(DbGroupQueryImpl query)
public TenantEntity findTenantById(String tenantId)
findTenantById in interface ReadOnlyIdentityProviderTenant object for the given id or null if no such tenant
exists.public TenantQuery createTenantQuery()
createTenantQuery in interface ReadOnlyIdentityProviderTenantQuery object which can be used for querying for
tenants.public TenantQuery createTenantQuery(CommandContext commandContext)
createTenantQuery in interface ReadOnlyIdentityProviderTenantQuery object which can be used for querying for
tenants and can be reused in the current command context.public long findTenantCountByQueryCriteria(DbTenantQueryImpl query)
public List<Tenant> findTenantByQueryCriteria(DbTenantQueryImpl query)
protected boolean existsTenantMembership(String tenantId, String userId, String groupId)
protected void configureQuery(AbstractQuery query, Resource resource)
configureQuery in class AbstractManagerprotected void checkAuthorization(Permission permission, Resource resource, String resourceId)
checkAuthorization in class AbstractManagerCopyright © 2022. All rights reserved.