Class WorkflowNamedParametersServiceImpl
- java.lang.Object
-
- ca.corefacility.bioinformatics.irida.service.impl.CRUDServiceImpl<java.lang.Long,IridaWorkflowNamedParameters>
-
- ca.corefacility.bioinformatics.irida.service.impl.workflow.WorkflowNamedParametersServiceImpl
-
- All Implemented Interfaces:
CRUDService<java.lang.Long,IridaWorkflowNamedParameters>
,WorkflowNamedParametersService
@Service public class WorkflowNamedParametersServiceImpl extends CRUDServiceImpl<java.lang.Long,IridaWorkflowNamedParameters> implements WorkflowNamedParametersService
Service for interacting with named parameter sets.
-
-
Field Summary
-
Fields inherited from class ca.corefacility.bioinformatics.irida.service.impl.CRUDServiceImpl
CREATED_DATE_SORT_PROPERTY, validator, valueType
-
-
Constructor Summary
Constructors Constructor Description WorkflowNamedParametersServiceImpl(WorkflowNamedParametersRepository repository, javax.validation.Validator validator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IridaWorkflowNamedParameters
create(IridaWorkflowNamedParameters parameters)
Create a new object in the persistence store.java.lang.Iterable<IridaWorkflowNamedParameters>
findAll()
List all objects ofType
in the database.java.util.List<IridaWorkflowNamedParameters>
findNamedParametersForWorkflow(java.util.UUID workflowId)
Get the named parameters saved for the specified workflow.IridaWorkflowNamedParameters
read(java.lang.Long id)
Read the object type by unique identifier.IridaWorkflowNamedParameters
updateFields(java.lang.Long id, java.util.Map<java.lang.String,java.lang.Object> properties)
Update properties of the given object by given fields.-
Methods inherited from class ca.corefacility.bioinformatics.irida.service.impl.CRUDServiceImpl
count, delete, exists, findRevisions, findRevisions, list, list, list, readMultiple, search, search, update, updateMultiple
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ca.corefacility.bioinformatics.irida.service.CRUDService
count, delete, exists, findRevisions, findRevisions, list, list, list, readMultiple, search, search, update, updateMultiple
-
-
-
-
Constructor Detail
-
WorkflowNamedParametersServiceImpl
@Autowired public WorkflowNamedParametersServiceImpl(WorkflowNamedParametersRepository repository, javax.validation.Validator validator)
-
-
Method Detail
-
create
@PreAuthorize("hasRole(\'ROLE_USER\')") public IridaWorkflowNamedParameters create(IridaWorkflowNamedParameters parameters)
Create a new object in the persistence store.- Specified by:
create
in interfaceCRUDService<java.lang.Long,IridaWorkflowNamedParameters>
- Overrides:
create
in classCRUDServiceImpl<java.lang.Long,IridaWorkflowNamedParameters>
- Parameters:
parameters
- The object to persist.- Returns:
- The object as it was persisted in the database. May modify the identifier of the object when returned.
-
read
@PreAuthorize("hasRole(\'ROLE_USER\')") public IridaWorkflowNamedParameters read(java.lang.Long id)
Read the object type by unique identifier.- Specified by:
read
in interfaceCRUDService<java.lang.Long,IridaWorkflowNamedParameters>
- Overrides:
read
in classCRUDServiceImpl<java.lang.Long,IridaWorkflowNamedParameters>
- Parameters:
id
- The unique identifier for this object.- Returns:
- The object corresponding to the unique identifier.
-
findAll
@PreAuthorize("hasRole(\'ROLE_ADMIN\')") public java.lang.Iterable<IridaWorkflowNamedParameters> findAll()
List all objects ofType
in the database.- Specified by:
findAll
in interfaceCRUDService<java.lang.Long,IridaWorkflowNamedParameters>
- Overrides:
findAll
in classCRUDServiceImpl<java.lang.Long,IridaWorkflowNamedParameters>
- Returns:
- All objects of the specified
Type
in the database.
-
findNamedParametersForWorkflow
@PreAuthorize("hasRole(\'ROLE_USER\')") public java.util.List<IridaWorkflowNamedParameters> findNamedParametersForWorkflow(java.util.UUID workflowId)
Get the named parameters saved for the specified workflow.- Specified by:
findNamedParametersForWorkflow
in interfaceWorkflowNamedParametersService
- Parameters:
workflowId
- the workflow ID to load parameters for.- Returns:
- the collection of named workflow parameter sets for the specified workflow.
-
updateFields
public IridaWorkflowNamedParameters updateFields(java.lang.Long id, java.util.Map<java.lang.String,java.lang.Object> properties)
Update properties of the given object by given fields. The object must have a valid identifier prior to being passed to this method.- Specified by:
updateFields
in interfaceCRUDService<java.lang.Long,IridaWorkflowNamedParameters>
- Overrides:
updateFields
in classCRUDServiceImpl<java.lang.Long,IridaWorkflowNamedParameters>
- Parameters:
id
- The identifier of the object to update.properties
- the object properties that should be updated.- Returns:
- The object as it was persisted in the database. May modify the identifier of the object when returned.
-
-