Class QuerySnapshotDataServiceImpl
- java.lang.Object
-
- cern.nxcals.api.backport.client.service.QuerySnapshotDataServiceImpl
-
- All Implemented Interfaces:
QuerySnapshotDataService
public class QuerySnapshotDataServiceImpl extends java.lang.Object implements QuerySnapshotDataService
-
-
Constructor Summary
Constructors Constructor Description QuerySnapshotDataServiceImpl(@NonNull GroupService groupService)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.List<Snapshot>
getSnapshotsFor(SnapshotCriteria criteria)
Get user snapshots with the given criteria.Snapshot
getSnapshotWithAttributes(Snapshot snapshot)
Deprecated.this does nothing, please do not useVariableListSet
getVariableListsOfUserWithNameLikeAndDescLike(java.lang.String userName, java.lang.String listNamePattern, java.lang.String listDescriptionPattern)
Gets a List of VariableList objects belonging to the given user, and with the list name and description matching the given patterns.VariableList
getVariableListWithName(java.lang.String name)
Gets a variableList identified by its name or null if the name is not found
-
-
-
Constructor Detail
-
QuerySnapshotDataServiceImpl
public QuerySnapshotDataServiceImpl(@NonNull @NonNull GroupService groupService)
-
-
Method Detail
-
getVariableListWithName
public VariableList getVariableListWithName(java.lang.String name)
Description copied from interface:QuerySnapshotDataService
Gets a variableList identified by its name or null if the name is not found- Specified by:
getVariableListWithName
in interfaceQuerySnapshotDataService
- Parameters:
name
- the list name pattern- Returns:
- the variable list or null
-
getVariableListsOfUserWithNameLikeAndDescLike
public VariableListSet getVariableListsOfUserWithNameLikeAndDescLike(java.lang.String userName, java.lang.String listNamePattern, java.lang.String listDescriptionPattern)
Description copied from interface:QuerySnapshotDataService
Gets a List of VariableList objects belonging to the given user, and with the list name and description matching the given patterns. % = wildcard.- Specified by:
getVariableListsOfUserWithNameLikeAndDescLike
in interfaceQuerySnapshotDataService
- Parameters:
userName
- the user name of the userlistNamePattern
- the list name patternlistDescriptionPattern
- the list description pattern- Returns:
- the user variable lists
-
getSnapshotsFor
public java.util.List<Snapshot> getSnapshotsFor(SnapshotCriteria criteria)
Description copied from interface:QuerySnapshotDataService
Get user snapshots with the given criteria.- Specified by:
getSnapshotsFor
in interfaceQuerySnapshotDataService
- Parameters:
criteria
- - set of criteria to match snapshots against- Returns:
- returns the set of Snapshots
-
getSnapshotWithAttributes
@Deprecated public Snapshot getSnapshotWithAttributes(Snapshot snapshot)
Deprecated.this does nothing, please do not useDescription copied from interface:QuerySnapshotDataService
Gets the attributes for the given snapshot- Specified by:
getSnapshotWithAttributes
in interfaceQuerySnapshotDataService
- Parameters:
snapshot
- - the Snapshot to get attributes for this can be found at Snapshot- Returns:
- the snapshot with database id set.
-
-