public interface AgentAssignmentDao
Modifier and Type | Method and Description |
---|---|
@NotNull List<AgentAssignment> |
findAll() |
@Nullable AgentAssignment |
getAgentAssignment(long agentAssignmentId)
Get a single agent assignment by id
|
@NotNull List<AgentAssignment> |
getAssignmentsForAgent(long agentId)
Get all assignments directly referencing and agent
|
@NotNull List<AgentAssignment> |
getAssignmentsForEnvironment(long environmentId)
Get all assignments directly reference an environment
|
@NotNull List<AgentAssignment> |
getAssignmentsForExecutable(long executableId,
@NotNull AgentAssignment.ExecutableType executableType)
Get all assignments that directly reference a specific Executable (Environment, ob etc)
|
@NotNull List<AgentAssignment> |
getAssignmentsForExecutor(long executorId,
@NotNull AgentAssignment.ExecutorType executorType)
Get all assignments that directly reference a specific Executor (Agent, Image etc)
|
@NotNull List<AgentAssignment> |
getAssignmentsForImage(long imageConfigurationId)
Get all assignments directly reference to an image
|
void |
removeAll(@NotNull Iterable<? extends BambooIdProvider> agentAssignments)
Remove a list of agent assignments
|
@NotNull AgentAssignment |
save(@NotNull AgentAssignment agentAssignment)
Save an agent assignment
|
@NotNull @NotNull AgentAssignment save(@NotNull @NotNull AgentAssignment agentAssignment)
agentAssignment
- to savevoid removeAll(@NotNull @NotNull Iterable<? extends BambooIdProvider> agentAssignments)
agentAssignments
- to be removed@Nullable @Nullable AgentAssignment getAgentAssignment(long agentAssignmentId)
agentAssignmentId
- of assignment to retrieve@NotNull @NotNull List<AgentAssignment> getAssignmentsForAgent(long agentId)
agentId
- that would be referenced@NotNull @NotNull List<AgentAssignment> getAssignmentsForImage(long imageConfigurationId)
imageConfigurationId
- that would be referenced@NotNull @NotNull List<AgentAssignment> getAssignmentsForEnvironment(long environmentId)
environmentId
- that would be referenced@NotNull @NotNull List<AgentAssignment> getAssignmentsForExecutor(long executorId, @NotNull @NotNull AgentAssignment.ExecutorType executorType)
executorId
- id of the executorexecutorType
- type of the executor@NotNull @NotNull List<AgentAssignment> getAssignmentsForExecutable(long executableId, @NotNull @NotNull AgentAssignment.ExecutableType executableType)
executableId
- id of the executableexecutableType
- type of the executable@NotNull @NotNull List<AgentAssignment> findAll()
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.