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