org.camunda.bpm.engine.impl.identity.db
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
Methods inherited from class org.camunda.bpm.engine.impl.persistence.AbstractManager |
close, delete, deleteAuthorizations, flush, getAttachmentManager, getByteArrayManager, getCaseDefinitionManager, getCaseExecutionManager, getCaseInstanceManager, getDbEntityManager, getDbSqlSession, getDeploymentManager, getHistoricActivityInstanceManager, getHistoricCaseActivityInstanceManager, getHistoricCaseInstanceManager, getHistoricDetailManager, getHistoricProcessInstanceManager, getHistoricTaskInstanceManager, getIdentityInfoManager, getIdentityLinkManager, getProcessDefinitionManager, getProcessInstanceManager, getResourceAuthorizationProvider, getResourceManager, getSession, getTaskManager, getVariableInstanceManager, insert, saveDefaultAuthorizations |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.camunda.bpm.engine.impl.interceptor.Session |
close, flush |
DbReadOnlyIdentityServiceProvider
public DbReadOnlyIdentityServiceProvider()
findUserById
public UserEntity findUserById(String userId)
- Specified by:
findUserById
in interface ReadOnlyIdentityProvider
- Returns:
- a
User
object for the given user id or null if no such user exists.
createUserQuery
public UserQuery createUserQuery()
- Specified by:
createUserQuery
in interface ReadOnlyIdentityProvider
- Returns:
- a
UserQuery
object which can be used for querying for users.
createUserQuery
public UserQueryImpl createUserQuery(CommandContext commandContext)
- Specified by:
createUserQuery
in interface ReadOnlyIdentityProvider
- Returns:
- a
UserQuery
object which can be used in the current command context
findUserCountByQueryCriteria
public long findUserCountByQueryCriteria(DbUserQueryImpl query)
findUserByQueryCriteria
public List<User> findUserByQueryCriteria(DbUserQueryImpl query)
checkPassword
public boolean checkPassword(String userId,
String password)
- Specified by:
checkPassword
in interface ReadOnlyIdentityProvider
- Returns:
- 'true' if the password matches the
matchPassword
protected boolean matchPassword(String password,
User user)
findGroupById
public GroupEntity findGroupById(String groupId)
- Specified by:
findGroupById
in interface ReadOnlyIdentityProvider
- Returns:
- a
Group
object for the given group id or null if no such group exists.
createGroupQuery
public GroupQuery createGroupQuery()
- Specified by:
createGroupQuery
in interface ReadOnlyIdentityProvider
- Returns:
- a
GroupQuery
object which can be used for querying for groups.
createGroupQuery
public GroupQuery createGroupQuery(CommandContext commandContext)
- Specified by:
createGroupQuery
in interface ReadOnlyIdentityProvider
- Returns:
- a
GroupQuery
object which can be used for querying for groups and can be reused in the current command context.
findGroupCountByQueryCriteria
public long findGroupCountByQueryCriteria(DbGroupQueryImpl query)
findGroupByQueryCriteria
public List<Group> findGroupByQueryCriteria(DbGroupQueryImpl query)
configureQuery
protected void configureQuery(AbstractQuery query,
Resource resource)
- Overrides:
configureQuery
in class AbstractManager
checkAuthorization
protected void checkAuthorization(Permission permission,
Resource resource,
String resourceId)
- Overrides:
checkAuthorization
in class AbstractManager
Copyright © 2014 camunda services GmbH. All rights reserved.