Interface NetworkPathRegistry


  • public interface NetworkPathRegistry
    Keeps a registry of all paths from any entity path to it's corresponding network
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void applyNetworkFilter​(com.querydsl.core.FilteredClause<?> clause, com.querydsl.core.types.EntityPath<?> entity, Network network)
      Applies the network filter for a given DML clause
      void applyNetworkFilter​(DBQuery<?> query, com.querydsl.core.types.EntityPath<?> entityPath, Network network)
      Applies a condition to the query, regarding the given network and entity
      String getNetworkPath​(Class<? extends NetworkedEntity> entityType)
      It returns the path to the network for the specified entity class.
      void register​(QNetwork networkPath)
      Registers a path to get the for the network, using a network-only visibility
      void register​(QNetwork networkPath, boolean showGlobals)
      Registers a path to get the for the network, optionally allowing global (true) or network-only (false) data to be visible
      QNetwork resolve​(com.querydsl.core.types.EntityPath<?> entityPath)
      Resolves the network path for the given entity path
      boolean showGlobals​(Class<? extends NetworkedEntity> entityType)
      Returns whether the global entities of the given type should be visible when in a network (true) or only network-specific data (false)
    • Method Detail

      • applyNetworkFilter

        void applyNetworkFilter​(DBQuery<?> query,
                                com.querydsl.core.types.EntityPath<?> entityPath,
                                Network network)
        Applies a condition to the query, regarding the given network and entity
      • applyNetworkFilter

        void applyNetworkFilter​(com.querydsl.core.FilteredClause<?> clause,
                                com.querydsl.core.types.EntityPath<?> entity,
                                Network network)
        Applies the network filter for a given DML clause
      • getNetworkPath

        String getNetworkPath​(Class<? extends NetworkedEntity> entityType)
        It returns the path to the network for the specified entity class.
      • register

        void register​(QNetwork networkPath)
        Registers a path to get the for the network, using a network-only visibility
      • register

        void register​(QNetwork networkPath,
                      boolean showGlobals)
        Registers a path to get the for the network, optionally allowing global (true) or network-only (false) data to be visible
      • resolve

        QNetwork resolve​(com.querydsl.core.types.EntityPath<?> entityPath)
        Resolves the network path for the given entity path
      • showGlobals

        boolean showGlobals​(Class<? extends NetworkedEntity> entityType)
        Returns whether the global entities of the given type should be visible when in a network (true) or only network-specific data (false)