public class AgentAssignmentDaoImpl extends StatelessSessionHibernateDaoSupport implements AgentAssignmentDao
Constructor and Description |
---|
AgentAssignmentDaoImpl(TransactionAndHibernateTemplate transactionTemplate) |
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> agentAssignmentIds)
Remove a list of agent assignments
|
AgentAssignment |
save(AgentAssignment agentAssignment)
Save an agent assignment
|
getCacheAwareHibernateTemplate
public AgentAssignmentDaoImpl(TransactionAndHibernateTemplate transactionTemplate)
@NotNull public AgentAssignment save(@NotNull AgentAssignment agentAssignment)
AgentAssignmentDao
save
in interface AgentAssignmentDao
agentAssignment
- to savepublic void removeAll(@NotNull Iterable<? extends BambooIdProvider> agentAssignmentIds)
AgentAssignmentDao
removeAll
in interface AgentAssignmentDao
agentAssignmentIds
- to be removedpublic AgentAssignment getAgentAssignment(long agentAssignmentId)
AgentAssignmentDao
getAgentAssignment
in interface AgentAssignmentDao
agentAssignmentId
- of assignment to retrieve@NotNull public List<AgentAssignment> getAssignmentsForAgent(long agentId)
AgentAssignmentDao
getAssignmentsForAgent
in interface AgentAssignmentDao
agentId
- that would be referenced@NotNull public List<AgentAssignment> getAssignmentsForImage(long imageConfigurationId)
AgentAssignmentDao
getAssignmentsForImage
in interface AgentAssignmentDao
imageConfigurationId
- that would be referenced@NotNull public List<AgentAssignment> getAssignmentsForEnvironment(long environmentId)
AgentAssignmentDao
getAssignmentsForEnvironment
in interface AgentAssignmentDao
environmentId
- that would be referenced@NotNull public List<AgentAssignment> getAssignmentsForExecutor(long executorId, @NotNull AgentAssignment.ExecutorType executorType)
AgentAssignmentDao
getAssignmentsForExecutor
in interface AgentAssignmentDao
executorId
- id of the executorexecutorType
- type of the executor@NotNull public List<AgentAssignment> getAssignmentsForExecutable(long executableId, @NotNull AgentAssignment.ExecutableType executableType)
AgentAssignmentDao
getAssignmentsForExecutable
in interface AgentAssignmentDao
executableId
- id of the executableexecutableType
- type of the executable@NotNull public List<AgentAssignment> findAll()
findAll
in interface AgentAssignmentDao
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.