Package org.qubership.atp.dataset.db
Class VisibilityAreaRepository
java.lang.Object
org.qubership.atp.dataset.db.AbstractRepository
org.qubership.atp.dataset.db.VisibilityAreaRepository
-
Field Summary
Fields inherited from class org.qubership.atp.dataset.db.AbstractRepository
AK, ATTR, DS, DSL, DSLABEL, DSLLABEL, FILTER_DS_LABELS, FILTER_DSL_LABELS, FILTERS, LABEL, LV, PARAM, TEST_PLAN, VA -
Constructor Summary
ConstructorsConstructorDescriptionVisibilityAreaRepository(com.querydsl.sql.SQLQueryFactory queryFactory, javax.inject.Provider<DataSetListRepository> dslRepo, CacheRepository cacheRepo, javax.inject.Provider<FilterRepository> filtersRepo, javax.inject.Provider<TestPlanRepository> testPlanRepo) visibility area repository. -
Method Summary
Modifier and TypeMethodDescriptionCreates visibility area with name.Creates visibility area with name and id.booleanDelete Visibility area and all entities under it.booleanexistsById(UUID id) getAll()booleanprotected com.querydsl.sql.SQLQuery<VisibilityArea> select(com.querydsl.core.types.Predicate predicate)
-
Constructor Details
-
VisibilityAreaRepository
@Autowired public VisibilityAreaRepository(@Nonnull com.querydsl.sql.SQLQueryFactory queryFactory, @Nonnull javax.inject.Provider<DataSetListRepository> dslRepo, @Nonnull CacheRepository cacheRepo, @Nonnull javax.inject.Provider<FilterRepository> filtersRepo, @Nonnull javax.inject.Provider<TestPlanRepository> testPlanRepo) visibility area repository.- Parameters:
queryFactory- is used for creating sql queries.filtersRepo- repository for deleting filters;
-
-
Method Details
-
create
Creates visibility area with name. -
create
Creates visibility area with name and id. -
getById
-
existsById
-
select
@Nonnull protected com.querydsl.sql.SQLQuery<VisibilityArea> select(@Nonnull com.querydsl.core.types.Predicate predicate) -
getAll
-
getAllSorted
-
rename
-
delete
Delete Visibility area and all entities under it.- Parameters:
id- - target visibility area ID.- Returns:
- true if deleted successfully and false if nothing deleted.
-