当前页面:
在线文档首页 >
JBoss JBPM 3.0.4 identity management component 英文版文档
IdentitySession (jbpm-identity-3.0.4) - JBoss JBPM 3.0.4 identity management component 英文版文档
org.jbpm.identity.hibernate
Class IdentitySession
java.lang.Object
org.jbpm.identity.hibernate.IdentitySession
- All Implemented Interfaces:
- ExpressionSession, IdentityService
- public class IdentitySession
- extends java.lang.Object
- implements IdentityService, ExpressionSession
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IdentitySession
public IdentitySession(org.hibernate.Session session)
IdentitySession
public IdentitySession()
verify
public java.lang.Object verify(java.lang.String userName,
java.lang.String pwd)
- Description copied from interface:
IdentityService
- verifies if the userName matches the password and
in case of success, returns the userId. the userId can be
an implementation specific id.
- Specified by:
verify
in interface IdentityService
- Returns:
- userId if verification succeeded or null otherwise.
getUserById
public User getUserById(java.lang.Object userId)
- Specified by:
getUserById
in interface IdentityService
getSession
public org.hibernate.Session getSession()
getTransaction
public org.hibernate.Transaction getTransaction()
beginTransaction
public void beginTransaction()
commitTransaction
public void commitTransaction()
rollbackTransaction
public void rollbackTransaction()
commitTransactionAndClose
public void commitTransactionAndClose()
rollbackTransactionAndClose
public void rollbackTransactionAndClose()
close
public void close()
saveUser
public void saveUser(User user)
saveGroup
public void saveGroup(Group group)
saveEntity
public void saveEntity(Entity entity)
loadUser
public User loadUser(long userId)
loadGroup
public Group loadGroup(long groupId)
getUserByName
public User getUserByName(java.lang.String userName)
- Description copied from interface:
ExpressionSession
- retrieves a user from the user datastore including the membership relations.
- Specified by:
getUserByName
in interface ExpressionSession
getGroupByName
public Group getGroupByName(java.lang.String groupName)
- Description copied from interface:
ExpressionSession
- retrieves a group from the user datastore including the membership relations.
- Specified by:
getGroupByName
in interface ExpressionSession
getUsers
public java.util.List getUsers()
Version : jbpm-identity-3.0.4