|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jbpm.identity.hibernate.IdentitySession
public class IdentitySession
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 |
---|
public IdentitySession(org.hibernate.Session session)
public IdentitySession()
Method Detail |
---|
public java.lang.Object verify(java.lang.String userName, java.lang.String pwd)
IdentityService
verify
in interface IdentityService
public User getUserById(java.lang.Object userId)
getUserById
in interface IdentityService
public org.hibernate.Session getSession()
public org.hibernate.Transaction getTransaction()
public void beginTransaction()
public void commitTransaction()
public void rollbackTransaction()
public void commitTransactionAndClose()
public void rollbackTransactionAndClose()
public void close()
public void saveUser(User user)
public void saveGroup(Group group)
public void saveEntity(Entity entity)
public User loadUser(long userId)
public Group loadGroup(long groupId)
public User getUserByName(java.lang.String userName)
ExpressionSession
getUserByName
in interface ExpressionSession
public Group getGroupByName(java.lang.String groupName)
ExpressionSession
getGroupByName
in interface ExpressionSession
public java.util.List getUsers()
public User getUserByGroupAndRole(java.lang.String groupName, java.lang.String role)
ExpressionSession
getUserByGroupAndRole
in interface ExpressionSession
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |