public final class HibernateInternalMembershipDao extends Object implements InternalMembershipDao
HibernateMembershipDao
Constructor and Description |
---|
HibernateInternalMembershipDao(org.hibernate.SessionFactory sessionFactory) |
Modifier and Type | Method and Description |
---|---|
void |
removeAllGroupRelationships(com.atlassian.crowd.model.group.InternalGroup group)
Remove all memberships that rely on the existence of a particular group.
|
void |
removeAllRelationships(com.atlassian.crowd.embedded.api.Directory directory)
Remove all memberships related to a particular directory.
|
void |
removeAllUserRelationships(com.atlassian.crowd.model.user.InternalUser user)
Remove all memberships that rely on the existence of a particular user.
|
void |
rename(String oldUsername,
com.atlassian.crowd.model.user.InternalUser user)
Make required changes to memberships when user is renamed.
|
public HibernateInternalMembershipDao(org.hibernate.SessionFactory sessionFactory)
public void removeAllGroupRelationships(com.atlassian.crowd.model.group.InternalGroup group)
InternalMembershipDao
removeAllGroupRelationships
in interface InternalMembershipDao
group
- the group to remove all memberships for.public void removeAllUserRelationships(com.atlassian.crowd.model.user.InternalUser user)
InternalMembershipDao
removeAllUserRelationships
in interface InternalMembershipDao
user
- the user to remove all memberships forpublic void removeAllRelationships(com.atlassian.crowd.embedded.api.Directory directory)
InternalMembershipDao
removeAllRelationships
in interface InternalMembershipDao
public void rename(String oldUsername, com.atlassian.crowd.model.user.InternalUser user)
InternalMembershipDao
rename
in interface InternalMembershipDao
oldUsername
- previous username of the useruser
- user that has been renamedCopyright © 2003–2020 Atlassian. All rights reserved.