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, flush, getAttachmentManager, getByteArrayManager, getDbSqlSession, getDeploymentManager, getHistoricActivityInstanceManager, getHistoricDetailManager, getHistoricProcessInstanceManager, getHistoricTaskInstanceManager, getIdentityInfoManager, getIdentityLinkManager, getProcessDefinitionManager, getProcessInstanceManager, getResourceManager, getSession, getTaskManager, getVariableInstanceManager, insert
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)
protected void checkAuthorization(Permission permission, Resource resource, String resourceId)
Copyright © 2015. All rights reserved.