public class DbReadOnlyIdentityServiceProvider extends AbstractManager implements ReadOnlyIdentityProvider
Read only implementation of DB-backed identity service
Constructor and Description |
---|
DbReadOnlyIdentityServiceProvider() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkAuthorization(Permission permission,
Resource resource,
String resourceId) |
boolean |
checkPassword(String userId,
String password) |
protected void |
configureQuery(AbstractQuery query,
Resource resource) |
GroupQuery |
createGroupQuery() |
GroupQuery |
createGroupQuery(CommandContext commandContext) |
UserQuery |
createUserQuery() |
UserQueryImpl |
createUserQuery(CommandContext commandContext) |
GroupEntity |
findGroupById(String groupId) |
List<Group> |
findGroupByQueryCriteria(DbGroupQueryImpl query) |
long |
findGroupCountByQueryCriteria(DbGroupQueryImpl query) |
UserEntity |
findUserById(String userId) |
List<User> |
findUserByQueryCriteria(DbUserQueryImpl query) |
long |
findUserCountByQueryCriteria(DbUserQueryImpl query) |
protected boolean |
matchPassword(String password,
User user) |
close, delete, deleteAuthorizations, deleteDefaultAuthorizations, flush, getAttachmentManager, getAuthorizationManager, getByteArrayManager, getCaseDefinitionManager, getCaseExecutionManager, getCaseInstanceManager, getCommandContext, getCurrentAuthentication, getDbEntityManager, getDbSqlSession, getDeploymentManager, getEventSubscriptionManager, getHistoricActivityInstanceManager, getHistoricCaseActivityInstanceManager, getHistoricCaseInstanceManager, getHistoricDetailManager, getHistoricIncidentManager, getHistoricJobLogManager, getHistoricProcessInstanceManager, getHistoricTaskInstanceManager, getHistoricVariableInstanceManager, getIdentityInfoManager, getIdentityLinkManager, getJobDefinitionManager, getJobManager, getProcessDefinitionManager, getProcessInstanceManager, getResourceAuthorizationProvider, getResourceManager, getSession, getTaskManager, 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 long findUserCountByQueryCriteria(DbUserQueryImpl query)
public List<User> findUserByQueryCriteria(DbUserQueryImpl query)
public boolean checkPassword(String userId, String password)
checkPassword
in interface ReadOnlyIdentityProvider
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)
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 © 2018. All rights reserved.