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, saveDefaultAuthorizations
public UserEntity findUserById(String userId)
findUserById
in interface ReadOnlyIdentityProvider
User
object for the given user id or null if no such user exists.public UserQuery createUserQuery()
createUserQuery
in interface ReadOnlyIdentityProvider
UserQuery
object which can be used for querying for users.public UserQueryImpl createUserQuery(CommandContext commandContext)
createUserQuery
in interface ReadOnlyIdentityProvider
UserQuery
object which can be used in the current command contextpublic NativeUserQuery createNativeUserQuery()
ReadOnlyIdentityProvider
NativeUserQuery
that allows to select users with native queries.createNativeUserQuery
in interface ReadOnlyIdentityProvider
public 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 ReadOnlyIdentityProvider
protected boolean matchPassword(String password, UserEntity user)
public GroupEntity findGroupById(String groupId)
findGroupById
in interface ReadOnlyIdentityProvider
Group
object for the given group id or null if no such group exists.public GroupQuery createGroupQuery()
createGroupQuery
in interface ReadOnlyIdentityProvider
GroupQuery
object which can be used for querying for groups.public GroupQuery createGroupQuery(CommandContext commandContext)
createGroupQuery
in interface ReadOnlyIdentityProvider
GroupQuery
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 ReadOnlyIdentityProvider
Tenant
object for the given id or null if no such tenant
exists.public TenantQuery createTenantQuery()
createTenantQuery
in interface ReadOnlyIdentityProvider
TenantQuery
object which can be used for querying for
tenants.public TenantQuery createTenantQuery(CommandContext commandContext)
createTenantQuery
in interface ReadOnlyIdentityProvider
TenantQuery
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 void configureQuery(AbstractQuery query, Resource resource)
configureQuery
in class AbstractManager
protected void checkAuthorization(Permission permission, Resource resource, String resourceId)
checkAuthorization
in class AbstractManager
Copyright © 2019. All rights reserved.