Class OfBizDirectoryDao

java.lang.Object
com.atlassian.jira.crowd.embedded.ofbiz.OfBizDirectoryDao
All Implemented Interfaces:
com.atlassian.crowd.embedded.spi.DirectoryDao

public class OfBizDirectoryDao extends Object implements com.atlassian.crowd.embedded.spi.DirectoryDao
  • Field Details

  • Constructor Details

  • Method Details

    • findById

      public com.atlassian.crowd.embedded.api.Directory findById(long id) throws com.atlassian.crowd.exception.DirectoryNotFoundException
      Specified by:
      findById in interface com.atlassian.crowd.embedded.spi.DirectoryDao
      Throws:
      com.atlassian.crowd.exception.DirectoryNotFoundException
    • findByName

      public com.atlassian.crowd.embedded.api.Directory findByName(String name) throws com.atlassian.crowd.exception.DirectoryNotFoundException
      Specified by:
      findByName in interface com.atlassian.crowd.embedded.spi.DirectoryDao
      Throws:
      com.atlassian.crowd.exception.DirectoryNotFoundException
    • findAll

      public List<com.atlassian.crowd.embedded.api.Directory> findAll()
      Specified by:
      findAll in interface com.atlassian.crowd.embedded.spi.DirectoryDao
    • add

      public com.atlassian.crowd.embedded.api.Directory add(com.atlassian.crowd.embedded.api.Directory directory)
      Specified by:
      add in interface com.atlassian.crowd.embedded.spi.DirectoryDao
    • update

      public com.atlassian.crowd.embedded.api.Directory update(com.atlassian.crowd.embedded.api.Directory directory) throws com.atlassian.crowd.exception.DirectoryNotFoundException
      Specified by:
      update in interface com.atlassian.crowd.embedded.spi.DirectoryDao
      Throws:
      com.atlassian.crowd.exception.DirectoryNotFoundException
    • remove

      public void remove(com.atlassian.crowd.embedded.api.Directory directory) throws com.atlassian.crowd.exception.DirectoryNotFoundException
      Specified by:
      remove in interface com.atlassian.crowd.embedded.spi.DirectoryDao
      Throws:
      com.atlassian.crowd.exception.DirectoryNotFoundException
    • search

      public List<com.atlassian.crowd.embedded.api.Directory> search(com.atlassian.crowd.search.query.entity.EntityQuery<com.atlassian.crowd.embedded.api.Directory> query)
      Specified by:
      search in interface com.atlassian.crowd.embedded.spi.DirectoryDao
    • flushCache

      public void flushCache()
      Invoked by OfBizCacheFlushingManager to ensure caches are being flushed in the right order on XMLRestoreFinishedEvent
    • updateDirectoryPosition

      public void updateDirectoryPosition(long directoryId, int position) throws com.atlassian.crowd.exception.DirectoryNotFoundException
      Throws:
      com.atlassian.crowd.exception.DirectoryNotFoundException