Class DbReadOnlyIdentityServiceProvider
java.lang.Object
org.camunda.bpm.engine.impl.persistence.AbstractManager
org.camunda.bpm.engine.impl.identity.db.DbReadOnlyIdentityServiceProvider
- All Implemented Interfaces:
ReadOnlyIdentityProvider
,Session
- Direct Known Subclasses:
DbIdentityServiceProvider
public class DbReadOnlyIdentityServiceProvider
extends AbstractManager
implements ReadOnlyIdentityProvider
Read only implementation of DB-backed identity service
- Author:
- Daniel Meyer, nico.rehwaldt
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkAuthorization
(Permission permission, Resource resource, String resourceId) boolean
checkPassword
(String userId, String password) protected void
configureQuery
(AbstractQuery query, Resource resource) createGroupQuery
(CommandContext commandContext) Creates aNativeUserQuery
that allows to select users with native queries.createTenantQuery
(CommandContext commandContext) createUserQuery
(CommandContext commandContext) protected boolean
existsMembership
(String userId, String groupId) protected boolean
existsTenantMembership
(String tenantId, String userId, String groupId) findGroupById
(String groupId) long
findTenantById
(String tenantId) long
findUserById
(String userId) findUserByNativeQuery
(Map<String, Object> parameterMap, int firstResult, int maxResults) long
findUserCountByNativeQuery
(Map<String, Object> parameterMap) long
protected boolean
matchPassword
(String password, UserEntity user) Methods inherited from class org.camunda.bpm.engine.impl.persistence.AbstractManager
close, delete, deleteAuthorizations, deleteAuthorizationsForGroup, deleteAuthorizationsForUser, deleteDefaultAuthorizations, flush, getAttachmentManager, getAuthorizationManager, getBatchManager, getByteArrayManager, getCamundaFormDefinitionManager, 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, saveDefaultAuthorizations
-
Constructor Details
-
DbReadOnlyIdentityServiceProvider
public DbReadOnlyIdentityServiceProvider()
-
-
Method Details
-
findUserById
- Specified by:
findUserById
in interfaceReadOnlyIdentityProvider
- Returns:
- a
User
object for the given user id or null if no such user exists.
-
createUserQuery
- Specified by:
createUserQuery
in interfaceReadOnlyIdentityProvider
- Returns:
- a
UserQuery
object which can be used for querying for users.
-
createUserQuery
- Specified by:
createUserQuery
in interfaceReadOnlyIdentityProvider
- Returns:
- a
UserQuery
object which can be used in the current command context
-
createNativeUserQuery
Description copied from interface:ReadOnlyIdentityProvider
Creates aNativeUserQuery
that allows to select users with native queries.- Specified by:
createNativeUserQuery
in interfaceReadOnlyIdentityProvider
- Returns:
- NativeUserQuery
-
findUserCountByQueryCriteria
-
findUserByQueryCriteria
-
findUserByNativeQuery
-
findUserCountByNativeQuery
-
checkPassword
- Specified by:
checkPassword
in interfaceReadOnlyIdentityProvider
- Returns:
- 'true' if the password matches the
-
matchPassword
-
findGroupById
- Specified by:
findGroupById
in interfaceReadOnlyIdentityProvider
- Returns:
- a
Group
object for the given group id or null if no such group exists.
-
createGroupQuery
- Specified by:
createGroupQuery
in interfaceReadOnlyIdentityProvider
- Returns:
- a
GroupQuery
object which can be used for querying for groups.
-
createGroupQuery
- Specified by:
createGroupQuery
in interfaceReadOnlyIdentityProvider
- Returns:
- a
GroupQuery
object which can be used for querying for groups and can be reused in the current command context.
-
findGroupCountByQueryCriteria
-
findGroupByQueryCriteria
-
findTenantById
- Specified by:
findTenantById
in interfaceReadOnlyIdentityProvider
- Returns:
- a
Tenant
object for the given id or null if no such tenant exists.
-
createTenantQuery
- Specified by:
createTenantQuery
in interfaceReadOnlyIdentityProvider
- Returns:
- a
TenantQuery
object which can be used for querying for tenants.
-
createTenantQuery
- Specified by:
createTenantQuery
in interfaceReadOnlyIdentityProvider
- Returns:
- a
TenantQuery
object which can be used for querying for tenants and can be reused in the current command context.
-
findTenantCountByQueryCriteria
-
findTenantByQueryCriteria
-
existsMembership
-
existsTenantMembership
-
configureQuery
- Overrides:
configureQuery
in classAbstractManager
-
checkAuthorization
- Overrides:
checkAuthorization
in classAbstractManager
-