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.SnapshotgetSnapshotWithAttributes(Snapshot snapshot)Deprecated.this does nothing, please do not useVariableListSetgetVariableListsOfUserWithNameLikeAndDescLike(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.VariableListgetVariableListWithName(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:QuerySnapshotDataServiceGets a variableList identified by its name or null if the name is not found- Specified by:
getVariableListWithNamein 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:QuerySnapshotDataServiceGets a List of VariableList objects belonging to the given user, and with the list name and description matching the given patterns. % = wildcard.- Specified by:
getVariableListsOfUserWithNameLikeAndDescLikein 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:QuerySnapshotDataServiceGet user snapshots with the given criteria.- Specified by:
getSnapshotsForin 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:QuerySnapshotDataServiceGets the attributes for the given snapshot- Specified by:
getSnapshotWithAttributesin interfaceQuerySnapshotDataService- Parameters:
snapshot- - the Snapshot to get attributes for this can be found at Snapshot- Returns:
- the snapshot with database id set.
-
-