Interface NetworkPathRegistry
-
- All Known Implementing Classes:
NetworkPathRegistryImpl
public interface NetworkPathRegistryKeeps 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 voidapplyNetworkFilter(com.querydsl.core.FilteredClause<?> clause, com.querydsl.core.types.EntityPath<?> entity, Network network)Applies the network filter for a given DML clausevoidapplyNetworkFilter(DBQuery<?> query, com.querydsl.core.types.EntityPath<?> entityPath, Network network)Applies a condition to the query, regarding the given network and entityStringgetNetworkPath(Class<? extends NetworkedEntity> entityType)It returns the path to the network for the specified entity class.voidregister(QNetwork networkPath)Registers a path to get the for the network, using a network-only visibilityvoidregister(QNetwork networkPath, boolean showGlobals)Registers a path to get the for the network, optionally allowing global (true) or network-only (false) data to be visibleQNetworkresolve(com.querydsl.core.types.EntityPath<?> entityPath)Resolves the network path for the given entity pathbooleanshowGlobals(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)
-
-