Interface InternalGroupDao<T extends com.atlassian.crowd.model.group.InternalGroup>

  • All Superinterfaces:
    com.atlassian.crowd.embedded.spi.GroupDao
    All Known Implementing Classes:
    CachedCrowdGroupDao, HibernateGroupDao

    public interface InternalGroupDao<T extends com.atlassian.crowd.model.group.InternalGroup>
    extends com.atlassian.crowd.embedded.spi.GroupDao
    Private-ish interface for methods that should only be called by other DAOs. If you are calling anything on this interface from outside this package, you are Doing It Wrong.
    Since:
    7.20.0
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      T add​(com.atlassian.crowd.model.group.Group group)  
      T addLocal​(com.atlassian.crowd.model.group.Group group)  
      com.atlassian.crowd.model.group.InternalGroup internalFindByGroup​(com.atlassian.crowd.model.group.Group group)
      Find the persistent group object that corresponds to the provided group.
      com.atlassian.crowd.model.group.InternalGroup internalFindByName​(long directoryId, String groupName)
      Find a persistent group object from a given directory and group name
      void removeAllGroups​(long directoryId)
      Remove all groups from a particular directory (used when deleting an internal directory)
      • Methods inherited from interface com.atlassian.crowd.embedded.spi.GroupDao

        addAll, findByExternalIds, findByName, findByNameWithAttributes, findExternalIdsByNames, getAllExternalIds, getExternalGroupCount, getGroupCount, getLocalGroupNames, remove, removeAllGroups, removeAttribute, rename, search, storeAttributes, update
    • Method Detail

      • internalFindByName

        com.atlassian.crowd.model.group.InternalGroup internalFindByName​(long directoryId,
                                                                         String groupName)
                                                                  throws com.atlassian.crowd.exception.GroupNotFoundException
        Find a persistent group object from a given directory and group name
        Throws:
        com.atlassian.crowd.exception.GroupNotFoundException
      • internalFindByGroup

        com.atlassian.crowd.model.group.InternalGroup internalFindByGroup​(com.atlassian.crowd.model.group.Group group)
                                                                   throws com.atlassian.crowd.exception.GroupNotFoundException
        Find the persistent group object that corresponds to the provided group.
        Throws:
        com.atlassian.crowd.exception.GroupNotFoundException
      • removeAllGroups

        void removeAllGroups​(long directoryId)
        Remove all groups from a particular directory (used when deleting an internal directory)
      • add

        T add​(com.atlassian.crowd.model.group.Group group)
        throws com.atlassian.crowd.exception.DirectoryNotFoundException,
              com.atlassian.crowd.exception.InvalidGroupException
        Specified by:
        add in interface com.atlassian.crowd.embedded.spi.GroupDao
        Throws:
        com.atlassian.crowd.exception.DirectoryNotFoundException
        com.atlassian.crowd.exception.InvalidGroupException
      • addLocal

        T addLocal​(com.atlassian.crowd.model.group.Group group)
            throws com.atlassian.crowd.exception.DirectoryNotFoundException,
                   com.atlassian.crowd.exception.InvalidGroupException
        Specified by:
        addLocal in interface com.atlassian.crowd.embedded.spi.GroupDao
        Throws:
        com.atlassian.crowd.exception.DirectoryNotFoundException
        com.atlassian.crowd.exception.InvalidGroupException