Class ProjectRepositoryImpl
java.lang.Object
org.qubership.atp.environments.repo.impl.AbstractRepository
org.qubership.atp.environments.repo.impl.ProjectRepositoryImpl
- All Implemented Interfaces:
ProjectionRepository<Project>
@Repository
public class ProjectRepositoryImpl
extends AbstractRepository
implements ProjectionRepository<Project>
-
Field Summary
Fields inherited from class org.qubership.atp.environments.repo.impl.AbstractRepository
ALERT_EVENTS, ALERTS, CONNECTIONS, DATABASE_DIRECTORY, ENVIRONMENT_CATEGORIES, ENVIRONMENT_SYSTEMS, ENVIRONMENTS, JV_COMMIT, JV_COMMIT_PROPERTY, JV_GLOBAL_ID, JV_SNAPSHOT, PROJECTS, SUBSCRIBERS, SUBSCRIPTIONS, SYSTEM_CATEGORIES, SYSTEMS, UPDATE_EVENTS, USER_SETTINGS -
Constructor Summary
ConstructorsConstructorDescriptionProjectRepositoryImpl(com.querydsl.sql.SQLQueryFactory queryFactory, javax.inject.Provider<EnvironmentRepositoryImpl> environmentRepo, javax.inject.Provider<SystemRepositoryImpl> systemRepo, ContextRepository repository, KafkaService kafkaService) Constructor of ProjectRepository. -
Method Summary
Modifier and TypeMethodDescriptionTODO Make javadoc documentation for this method.Creates project on Env side by id, name, shortName, description.voidbooleanexistsById(UUID id) getAll()Getting project by id.javax.inject.Provider<EnvironmentRepositoryImpl> com.querydsl.core.types.MappingProjection<Project> getLazyById(UUID id) Get lazy project by ID.com.querydsl.core.types.MappingProjection<Project> getProjectsByRequest(ProjectSearchRequest request, List<UUID> projectIdWithAccess) Get projects by request and list pf accessed project ids.getShortById(UUID id) Getting short project by id.getShortByName(String name) Getting short project by name.com.querydsl.core.types.MappingProjection<Project> Updates project on Env side.TODO Make javadoc documentation for this method.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.qubership.atp.environments.repo.impl.ProjectionRepository
resolveProjection
-
Constructor Details
-
ProjectRepositoryImpl
@Autowired public ProjectRepositoryImpl(com.querydsl.sql.SQLQueryFactory queryFactory, javax.inject.Provider<EnvironmentRepositoryImpl> environmentRepo, javax.inject.Provider<SystemRepositoryImpl> systemRepo, ContextRepository repository, KafkaService kafkaService) Constructor of ProjectRepository.
-
-
Method Details
-
getEnvironmentRepo
-
getById
Getting project by id. -
getShortById
Getting short project by id. -
getShortByName
Getting short project by name. -
existsById
-
getAll
-
getAllShort
-
create
@Nonnull public Project create(@Nonnull UUID id, @Nonnull String name, @Nullable String shortName, String description, Long created) Creates project on Env side by id, name, shortName, description.- Parameters:
id- - project idname- - project nameshortName- - aliasdescription- - project descriptioncreated- - created time- Returns:
- - project entity
-
create
@Nonnull public Project create(@Nonnull String name, @Nullable String shortName, String description, Long created) TODO Make javadoc documentation for this method. -
update
@Nonnull public Project update(@Nonnull UUID projectId, @Nonnull String name, @Nullable String shortName, String description, Long modified) TODO Make javadoc documentation for this method. -
update
@Nonnull public Project update(@Nonnull UUID projectId, @Nonnull String name, @Nullable String shortName, Long modified) Updates project on Env side.- Parameters:
projectId- - project idname- - project nameshortName- - aliasmodified- - time- Returns:
- - updated entity
-
delete
-
getByIds
-
getLazyById
Get lazy project by ID.- Parameters:
id- project id- Returns:
Projectinstance
-
getContext
- Specified by:
getContextin interfaceProjectionRepository<Project>
-
getFullProjection
- Specified by:
getFullProjectionin interfaceProjectionRepository<Project>
-
getLazyProjection
- Specified by:
getLazyProjectionin interfaceProjectionRepository<Project>
-
getShortProjection
- Specified by:
getShortProjectionin interfaceProjectionRepository<Project>
-
getProjectsByRequest
public List<Project> getProjectsByRequest(ProjectSearchRequest request, List<UUID> projectIdWithAccess) Get projects by request and list pf accessed project ids.- Parameters:
request- for getting projects.projectIdWithAccess- list of the accessed project ids.- Returns:
- list of the projects
-