站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss JBPM 3.1.3 identity management component 英文版文档

IdentitySession (jbpm-identity-3.1.3) - JBoss JBPM 3.1.3 identity management component 英文版文档


org.jbpm.identity.hibernate
Class IdentitySession

java.lang.Object
  extended by org.jbpm.identity.hibernate.IdentitySession
All Implemented Interfaces:
ExpressionSession, IdentityService

public class IdentitySession
extends java.lang.Object
implements IdentityService, ExpressionSession


Constructor Summary
IdentitySession()
           
IdentitySession(org.hibernate.Session session)
           
 
Method Summary
 void beginTransaction()
           
 void close()
           
 void commitTransaction()
           
 void commitTransactionAndClose()
           
 Group getGroupByName(java.lang.String groupName)
          retrieves a group from the user datastore including the membership relations.
 org.hibernate.Session getSession()
           
 org.hibernate.Transaction getTransaction()
           
 User getUserByGroupAndRole(java.lang.String groupName, java.lang.String role)
          retrieves a user from the user datastore including the membership relations.
 User getUserById(java.lang.Object userId)
           
 User getUserByName(java.lang.String userName)
          retrieves a user from the user datastore including the membership relations.
 java.util.List getUsers()
           
 Group loadGroup(long groupId)
           
 User loadUser(long userId)
           
 void rollbackTransaction()
           
 void rollbackTransactionAndClose()
           
 void saveEntity(Entity entity)
           
 void saveGroup(Group group)
           
 void saveUser(User user)
           
 java.lang.Object verify(java.lang.String userName, java.lang.String pwd)
          verifies if the userName matches the password and in case of success, returns the userId.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentitySession

public IdentitySession(org.hibernate.Session session)

IdentitySession

public IdentitySession()
Method Detail

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()

getUserByGroupAndRole

public User getUserByGroupAndRole(java.lang.String groupName,
                                  java.lang.String role)
Description copied from interface: ExpressionSession
retrieves a user from the user datastore including the membership relations.

Specified by:
getUserByGroupAndRole in interface ExpressionSession


Version : jbpm-identity-3.1.3