com.atlassian.crowd.embedded.hibernate2
Class HibernateInternalMembershipDao
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate.support.HibernateDaoSupport
com.atlassian.crowd.embedded.hibernate2.HibernateInternalMembershipDao
- All Implemented Interfaces:
- InternalMembershipDao, org.springframework.beans.factory.InitializingBean
public final class HibernateInternalMembershipDao
- extends org.springframework.orm.hibernate.support.HibernateDaoSupport
- implements InternalMembershipDao
Allows bulk membership changes via database IDs rather than by name.
- See Also:
HibernateMembershipDao
Fields inherited from class org.springframework.dao.support.DaoSupport |
logger |
Method Summary |
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(java.lang.String oldUsername,
com.atlassian.crowd.model.user.InternalUser user)
Make required changes to memberships when user is renamed. |
Methods inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport |
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory |
Methods inherited from class org.springframework.dao.support.DaoSupport |
afterPropertiesSet, initDao |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HibernateInternalMembershipDao
public HibernateInternalMembershipDao()
removeAllGroupRelationships
public void removeAllGroupRelationships(com.atlassian.crowd.model.group.InternalGroup group)
- Description copied from interface:
InternalMembershipDao
- Remove all memberships that rely on the existence of a particular group. For example, if the group is
about to be deleted.
- Specified by:
removeAllGroupRelationships
in interface InternalMembershipDao
- Parameters:
group
- the group to remove all memberships for.
removeAllUserRelationships
public void removeAllUserRelationships(com.atlassian.crowd.model.user.InternalUser user)
- Description copied from interface:
InternalMembershipDao
- Remove all memberships that rely on the existence of a particular user.
- Specified by:
removeAllUserRelationships
in interface InternalMembershipDao
- Parameters:
user
- the user to remove all memberships for
removeAllRelationships
public void removeAllRelationships(com.atlassian.crowd.embedded.api.Directory directory)
- Description copied from interface:
InternalMembershipDao
- Remove all memberships related to a particular directory. This is necessary when deleting
an internal directory.
- Specified by:
removeAllRelationships
in interface InternalMembershipDao
rename
public void rename(java.lang.String oldUsername,
com.atlassian.crowd.model.user.InternalUser user)
- Description copied from interface:
InternalMembershipDao
- Make required changes to memberships when user is renamed.
- Specified by:
rename
in interface InternalMembershipDao
- Parameters:
oldUsername
- previous username of the useruser
- user that has been renamed
Copyright © 2003-2013 Atlassian. All Rights Reserved.